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

schweikert / fping / 17188048742
88%
master: 80%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 24 Aug 2025 11:23AM UTC
Jobs 3
Files 4
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

24 Aug 2025 11:21AM UTC coverage: 86.235% (+0.1%) from 86.117%
17188048742

push

github

auerswal
prevent allocation size computation overflow

On systems where size_t is unsigned int, computing the size
of the resp_times array can overflow.  Add a check to prevent
this.

On a 64-bit x86_64 Ubuntu 22.04.5 LTS system, the overflow check
results in a compiler warning:

```
fping.c: In function ‘add_addr’:
fping.c:3444:20: warning: comparison is always false due to limited range of data type [-Wtype-limits]
 3444 |         if (trials > (SIZE_MAX / sizeof(int64_t)))
      |                    ^
```

Thus limit the check to systems with a size_t equal to (or less
than) unsigned int.

1560 of 1809 relevant lines covered (86.24%)

339.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ubuntu-22.04 - 17188048742.1 24 Aug 2025 11:23AM UTC 4
83.59
GitHub Action Run
2 macos - 17188048742.2 24 Aug 2025 11:23AM UTC 4
73.78
GitHub Action Run
3 ubuntu-24.04 - 17188048742.3 24 Aug 2025 11:24AM UTC 4
83.59
GitHub Action Run
Source Files on build 17188048742
  • Tree
  • List 4
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a54fb46b on github
  • Prev Build on develop (#17147925380)
  • Next Build on develop (#17201760384)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc