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

c-ares / c-ares / 28687671653
90%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2026 11:28PM 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

03 Jul 2026 11:25PM UTC coverage: 91.557% (+0.006%) from 91.551%
28687671653

push

github

web-flow
ares_dns_parse: reject responses with more than one OPT record (RFC 6891) (#1189)

RFC 6891 §6.1.1 states a message MUST NOT contain more than one OPT
resource record. The parser accepted any number of OPT RRs in the
additional section without complaint.

### Change
After parsing the additional section in `ares_dns_parse_buf`, count the
OPT records and return `ARES_EBADRESP` (format error) if more than one
is present.

### Tests
- `ParseSingleOpt` — a single OPT still parses successfully (regression
guard).
- `ParseMultipleOptRejected` — a response carrying two OPT records is
rejected with `ARES_EBADRESP`. (Verified the test fails without the
fix.)

Fixes #1137

Signed-off-by: Brad House <brad@brad-house.com>

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

3 existing lines in 2 files now uncovered.

23782 of 25975 relevant lines covered (91.56%)

12397.7 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
68.41
-0.31% src/lib/record/ares_dns_mapping.c
1
88.28
-0.09% src/lib/record/ares_dns_record.c
Jobs
ID Job ID Ran Files Coverage
1 28687671653.1 03 Jul 2026 11:27PM UTC 935
61.51
GitHub Action Run
Source Files on build 28687671653
  • Tree
  • List 177
  • Changed 58
  • Source Changed 0
  • Coverage Changed 58
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a756d325 on github
  • Prev Build on main (#28687659894)
  • Next Build on main (#28687754304)
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