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

c-ares / c-ares / 12519391526
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: bhouse.qnx
DEFAULT BRANCH: main
Ran 27 Dec 2024 06:29PM UTC
Jobs 1
Files 178
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

27 Dec 2024 06:26PM UTC coverage: 91.429% (+0.1%) from 91.301%
12519391526

push

github

bradh352
Localhost resolution can fail if only one address family is in /etc/hosts (#947)

Resolution of 'localhost' is required to be resolved locally as per
RFC6761, and c-ares implements fallback cases if `/etc/hosts` does not
contain an entry for `localhost` as is common for Windows. However, if
`/etc/hosts` does have an address entry for one family (e.g. ipv4) but
not the other (e.g. ipv6), the fallback wasn't being called since an
entry was found.

We need to enhance the logic to always fallback if an address family is
missing after reading `/etc/hosts`. We will also add specific test cases
for this scenario to ensure it doesn't regress in the future.

Fixes #946 
Signed-off-by: Brad House (@bradh352)

211 of 214 new or added lines in 10 files covered. (98.6%)

22369 of 24466 relevant lines covered (91.43%)

11998.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.31
1.22% src/lib/ares_addrinfo2hostent.c
2
96.88
-3.13% src/lib/ares_addrinfo_localhost.c
Jobs
ID Job ID Ran Files Coverage
1 12519391526.1 27 Dec 2024 06:29PM UTC 939
59.96
GitHub Action Run
Source Files on build 12519391526
  • Tree
  • List 178
  • Changed 129
  • Source Changed 0
  • Coverage Changed 65
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4028e25e on github
  • Prev Build on refs/tags/v1.34.4 (#12330817037)
  • Next Build on v1.34 (#12601796140)
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