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

c-ares / c-ares / 23720685326 / 1
92%
main: 92%

Build:
DEFAULT BRANCH: main
Ran 29 Mar 2026 10:36PM UTC
Files 935
Run time 23s
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

29 Mar 2026 10:33PM UTC coverage: 61.287% (-0.01%) from 61.297%
23720685326.1

push

github

web-flow
fix: prevent corrupt addrinfo nodes on sockaddr allocation failure (#1112)

ares_append_ai_node() appended a node to the linked list before
allocating its sockaddr. If the sockaddr malloc failed, the function
returned ARES_ENOMEM but left a node on the list with ai_addr=NULL and
ai_family=0. Callers iterating the list could then dereference the NULL
ai_addr.

Additionally, the two address-family blocks used independent if
statements rather than else-if, so an invalid aftype silently returned
ARES_SUCCESS with a broken node on the list.

Fix by allocating the sockaddr first, then appending the node only on
success. Reject invalid address families with ARES_EFORMERR. Also fix a
duplicate ai_addr assignment (copy-paste leftover).

Signed-off-by: David Hotham (@dimbleby)

24852 of 40550 relevant lines covered (61.29%)

7842.46 hits per line

Source Files on job 23720685326.1
  • Tree
  • List 935
  • Changed 56
  • Source Changed 0
  • Coverage Changed 56
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 23720685326
  • f668df90 on github
  • Prev Job for on main (#23715046345.1)
  • Next Job for on main (#23720746854.1)
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