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

c-ares / c-ares / 28747214689
90%

Build:
DEFAULT BRANCH: main
Ran 05 Jul 2026 04:26PM UTC
Jobs 1
Files 176
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

05 Jul 2026 04:23PM UTC coverage: 89.898% (+0.007%) from 89.891%
28747214689

push

github

web-flow
Guard DNS record binary length overflow (#1168)

## Summary
- validate null-terminated DNS record binary allocation sizes before
adding the trailing NUL byte
- reject nonzero copy lengths with NULL input pointers in the public
binary/option setters
- add regression coverage for SIZE_MAX lengths across TXT ABINP, SIG
BINP, and OPT option paths

## Testing
- `/tmp/cmake-3.29.6-linux-x86_64/bin/cmake -S . -B build -G "Unix
Makefiles" -DCARES_BUILD_TESTS=OFF -DCARES_STATIC=ON -DCARES_SHARED=OFF`
- `/tmp/cmake-3.29.6-linux-x86_64/bin/cmake --build build -j2`
- `/tmp/cmake-3.29.6-linux-x86_64/bin/cmake -S . -B build-test -G "Unix
Makefiles" -DCARES_BUILD_TESTS=ON -DCARES_STATIC=ON -DCARES_SHARED=OFF
-DCMAKE_PREFIX_PATH=/tmp/googletest-cares-install`
- `/tmp/cmake-3.29.6-linux-x86_64/bin/cmake --build build-test -j2
--target arestest`
- `./build-test/bin/arestest
--gtest_filter=LibraryTest.DNSRecordRejectsInvalidBinaryInput`
- `./build-test/bin/arestest
--gtest_filter=LibraryTest.DNSRecord*:LibraryTest.DNSParseFlags`
- `./build-test/bin/arestest --gtest_filter=-*.Live*:*Live*` (1063 tests
passed)

Signed-off-by: @alb3e3

53 of 53 new or added lines in 2 files covered. (100.0%)

3 existing lines in 2 files now uncovered.

24144 of 26857 relevant lines covered (89.9%)

16136.68 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
68.41
-0.21% src/lib/record/ares_dns_mapping.c
1
88.5
0.12% src/lib/record/ares_dns_record.c
Jobs
ID Job ID Ran Files Coverage
1 28747214689.1 05 Jul 2026 04:26PM UTC 176
89.9
GitHub Action Run
Source Files on build 28747214689
  • Tree
  • List 176
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28747214689
  • 560c216f on github
  • Prev Build on main (#28745921153)
  • Next Build on main (#28748353435)
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