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

c-ares / c-ares / 17530642883
92%

Build:
DEFAULT BRANCH: main
Ran 07 Sep 2025 03:50PM UTC
Jobs 1
Files 177
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

07 Sep 2025 03:47PM UTC coverage: 91.688% (+0.05%) from 91.636%
17530642883

push

github

web-flow
fix conversion of invalid service to port number in ares_getaddrinfo() (#1029)

**Problem Description:**

ares_getaddrinfo() does not return ARES_ESERVICE as it is supposed to
for unknown or invalid *service* parameters.
It returns port 0 instead.


**Causes:**
- strtoul() returns 0 and no error if the string does not contain a
number.
- strtoul() returns no error if the string begins with a number followed
by other characters.
- strtoul(..., 0) accepts hexadecimal and octal port numbers, which
POSIX getaddrinfo() does not.

Signed-off-by: Uwe Salomon @nixblik

18 of 21 new or added lines in 2 files covered. (85.71%)

22601 of 24650 relevant lines covered (91.69%)

11821.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
92.95
2.38% src/lib/ares_getaddrinfo.c
Jobs
ID Job ID Ran Files Coverage
1 17530642883.1 07 Sep 2025 03:49PM UTC 935
61.16
GitHub Action Run
Source Files on build 17530642883
  • Tree
  • List 177
  • Changed 58
  • Source Changed 0
  • Coverage Changed 58
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 58f05b52 on github
  • Prev Build on main (#16582426800)
  • Next Build on main (#17530939590)
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

© 2026 Coveralls, Inc