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

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

Build:
Build:
LAST BUILD BRANCH: overflow-safe-allocation
DEFAULT BRANCH: main
Repo Added 01 Nov 2021 07:55PM UTC
Files 177
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

LAST BUILD ON BRANCH v1.34
branch: v1.34
CHANGE BRANCH
x
Reset
  • v1.34
  • 1.34.6
  • 1.34.6-security
  • HEAD
  • adig
  • adig-ahost-exitcode
  • alpine-clang-19
  • ares-array-overflow-checks
  • array-size-overflow
  • autotools-update
  • b-mac-gcc
  • bagder/manpage-references
  • bagder/qnx
  • bhouse.qnx
  • bhouse.sonarcloud
  • bhouse.sonarcloud-2
  • ci-fixes
  • copyright
  • coverity_scan
  • defer-tcp-error-after-buffered-parse
  • dns-name-255-limit-parser
  • dns-validate-rr-counts
  • dohpath
  • fix-ares-dns-record-duplicate-docs
  • fix-ares_send-docs
  • fix-bind
  • fix-buf-ensure-overflow
  • fix-doc-typo
  • fix-inet-pton
  • fix-set-socket-callback
  • fix-setvbuf
  • fix-sortlist
  • fix/binstr-memleak
  • fix/buf-replace-null
  • fix/cookie-logic-bugs
  • fix/corrupt-addrinfo-nodes
  • fix/error-path-memory-leaks
  • fix/hash-idx-parens
  • fix/htable-dict-keys-leak
  • fix/htable-dict-memleak
  • fix/htable-malloc-zero
  • fix/ifa-netmask-null
  • fix/init-read-bytes
  • fix/llist-array-bugs
  • fix/multistring-buf-leak
  • fix/qcache-entry-memleak
  • fix/qnx-confstr-sizeof
  • fix/raw-rr-tostr
  • fix/raw-rr-zero-length
  • fix/unregister-wait-uaf
  • fix/usec-overflow
  • fix/win-sysconfig-null
  • fix/win32-iocp-null
  • fixci
  • fixwin
  • fuzzer_policy
  • hesiod
  • ignore_configchg_init_failures
  • improve/windows-sysconfig-safe-join
  • issue-993
  • leaks
  • live-failures
  • localhost
  • macios
  • main
  • memory
  • memory-leaks
  • more-const
  • more-record-types
  • newer_cmake
  • ntp-license
  • overflow-safe-allocation
  • pkgconfig
  • punycode
  • qnx
  • qnx-config
  • qnx-tests
  • refs/tags/v1.33.0
  • refs/tags/v1.33.1
  • refs/tags/v1.34.0
  • refs/tags/v1.34.1
  • refs/tags/v1.34.2
  • refs/tags/v1.34.3
  • refs/tags/v1.34.4
  • refs/tags/v1.34.5
  • refs/tags/v1.34.6
  • release-1.34.4
  • rnd-xor
  • server-rise-fall
  • service-strtoul-fix
  • size-overflow
  • sockopt
  • staticlib-name
  • strict-rdlength-validation
  • tomf/probe-pending
  • typo
  • ubuntu-latest
  • ubuntu-rolling
  • v1.23
  • v1.24
  • v1.25
  • v1.26
  • v1.27
  • v1.28
  • v1.29
  • v1.30
  • v1.31
  • v1.32
  • v1.33
  • validate-port-parsing
  • wait_on_monotonic
  • win-hosts-path
  • windns-fix
  • winxp
  • winxp-eventloop

12 Apr 2026 06:24PM UTC coverage: 91.726% (-0.002%) from 91.728%
24313359540

push

github

bradh352
Fix zero-length RAW_RR losing type metadata during parsing (#1129)

ares_dns_parse_rr_raw_rr() returned early when rdlength==0 without
setting ARES_RR_RAW_RR_TYPE, so the record's type was lost (left as 0).
Move the type assignment to the top of the function so it is set
unconditionally, before the zero-length early return.

Add test with a hand-crafted DNS packet containing a zero-length RAW_RR
with type 65432, verifying the type survives the parse.

---------

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

14 of 15 new or added lines in 2 files covered. (93.33%)

4 existing lines in 4 files now uncovered.

22793 of 24849 relevant lines covered (91.73%)

12950.38 hits per line

Relevant lines Covered
Build:
Build:
24849 RELEVANT LINES 22793 COVERED LINES
12950.38 HITS PER LINE
Source Files on v1.34
  • Tree
  • List 177
  • Changed 60
  • Source Changed 0
  • Coverage Changed 60
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
24313359540 v1.34 Fix zero-length RAW_RR losing type metadata during parsing (#1129) ares_dns_parse_rr_raw_rr() returned early when rdlength==0 without setting ARES_RR_RAW_RR_TYPE, so the record's type was lost (left as 0). Move the type assignment to the top of t... push 12 Apr 2026 06:35PM UTC bradh352 github
91.73
24313324764 v1.34 Fix/ifa netmask null (#1120) The first commit handles the possibility that `ifa->ifa_netmask` is null, by defaulting netmask to zero. Then I got worried about whether that was a good default - and discovered that no caller ever asks for the netm... push 12 Apr 2026 06:27PM UTC bradh352 github
91.73
24313296147 v1.34 validate RR counts before preallocation to reject malformed packets early (#1134) ## Summary Validate DNS RR counts before preallocation to reject malformed packets early. ## What’s the issue? The parser currently trusts RR counts from the DNS... push 12 Apr 2026 06:27PM UTC bradh352 github
91.73
24308203117 v1.34 Fix RAW_RR type tostr/fromstr roundtrip mismatch (#1123) ares_dns_rec_type_tostr() returned "RAWRR" but ares_dns_rec_type_fromstr() expected "RAW_RR", so a roundtrip through tostr then fromstr would fail. Fix tostr to return "RAW_RR" to match the... push 12 Apr 2026 01:51PM UTC bradh352 github
91.75
20034736264 v1.34 backport 714bf56 from main (#1053) push 08 Dec 2025 04:16PM UTC web-flow github
91.75
20034746880 v1.34 1.34.6 release prep (#1052) push 08 Dec 2025 04:16PM UTC web-flow github
91.75
20033508817 v1.34 CI/CD fixes (#1051) push 08 Dec 2025 03:36PM UTC bradh352 github
91.74
20032328766 v1.34 Ignore Windows IDN search domains (#1034) If a Windows search domain isn't already punycoded and therefore isn't ascii, ignore it for now. The real fix will come with #1031, but that code change wouldn't be suitable for backport. Fixes #1016 S... push 08 Dec 2025 02:57PM UTC bradh352 github
91.72
16100055510 v1.34 CI: add Fedora release for gcc 15 and other bleeding edge testing (#1006) We want to build with GCC 15 and other bleeding edge stuff to catch issues early. Inspired by #990 Signed-off-by: Brad House (@bradh352) push 06 Jul 2025 02:35PM UTC bradh352 github
91.66
14332616558 v1.34 Test: build fix (#980) push 08 Apr 2025 11:49AM UTC bradh352 github
91.55
See All Builds (2039)
  • Repo on GitHub
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