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

c-ares / c-ares / 28591205316
90%

Build:
DEFAULT BRANCH: main
Ran 02 Jul 2026 12:59PM UTC
Jobs 1
Files 177
Run time 2min
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

02 Jul 2026 12:48PM UTC coverage: 91.714% (+0.005%) from 91.709%
28591205316

push

github

web-flow
ares_array: reset offset when array becomes empty (#1165)

ares_array_claim_at() removes the first element in O(1) by advancing
arr->offset instead of shifting. If every element is claimed from the
front, offset can climb to arr->alloc_cnt. Reusing the array afterwards
(appending while draining from the front) then made
ares_array_insert_at() compact via ares_array_move() with an
out-of-range source index, failing with ARES_EFORMERR.

Reset offset to 0 once the array is empty. There is nothing to preserve,
and this is provably the only case ares_array_move() could fail: the
invariant offset + cnt <= alloc_cnt holds everywhere, so offset can only
reach alloc_cnt when cnt == 0.

Add a regression test exercising interleaved front-claim and append.

---------

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

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

1 existing line in 1 file now uncovered.

23044 of 25126 relevant lines covered (91.71%)

12574.18 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
62.73
-0.11% src/lib/record/ares_dns_mapping.c
Jobs
ID Job ID Ran Files Coverage
1 28591205316.1 02 Jul 2026 12:58PM UTC 935
61.1
GitHub Action Run
Source Files on build 28591205316
  • Tree
  • List 177
  • Changed 56
  • Source Changed 0
  • Coverage Changed 56
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9c11ea4b on github
  • Prev Build on main (#28590907030)
  • Next Build on main (#28591372674)
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