• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

schweikert / fping / 45006839922
94%
master: 80%

Build:
Build:
LAST BUILD BRANCH: push-ykwtxzqskzsm
DEFAULT BRANCH: master
Ran 22 Nov 2026 09:20AM UTC
Jobs 5
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Nov 2026 09:17AM UTC coverage: 94.559% (+0.02%) from 94.543%
45006839922

push

github

schweikert
fping: prevent SIGFPE and int truncation in loop-mode event_storage_count

In -l mode, event_storage_count = 1 + opt.timeout / opt.perhost_interval
had two crash/overflow bugs:
- Passing -l -p 0 (as root) divided by zero (SIGFPE).
- Passing large -t with small -p (e.g. -l -p 10 -t 42949672950 as non-root)
  truncated 0x100000000LL to int 0, causing calloc(0, ...) + index % 0 SIGFPE.

Extract calc_loop_event_storage_count() to guard non-positive timeout and
interval values, account for the effective minimum interval
max(perhost_interval, interval), and cap at SEQMAP_MAXSEQ (65535), since
seqmap cannot track more than SEQMAP_MAXSEQ in-flight pings. Add unit tests
in src/fping_test.c.

10 of 10 new or added lines in 1 file covered. (100.0%)

1929 of 2040 relevant lines covered (94.56%)

698.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ubuntu-22.04 - 45006839922.1 22 Nov 2026 09:20AM UTC 8
92.82
GitHub Action Run
2 macos - 45006839922.2 22 Nov 2026 09:20AM UTC 8
83.73
GitHub Action Run
3 ubuntu-24.04 - 45006839922.3 22 Nov 2026 09:20AM UTC 8
92.82
GitHub Action Run
4 ubuntu-26.04-arm - 45006839922.4 22 Nov 2026 09:20AM UTC 8
92.82
GitHub Action Run
5 ubuntu-26.04 - 45006839922.5 22 Nov 2026 09:20AM UTC 8
92.82
GitHub Action Run
Source Files on build 45006839922
  • Tree
  • List 8
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45006839922
  • 4814b97a on github
  • Prev Build on develop (#44905204671)
  • Next Build on develop (#45008315238)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc