Skip to content

Test Baxos::init zero item count and bin count overflow - #22

Open
james-choncholas wants to merge 1 commit into
ladnir:mainfrom
james-choncholas:baxos-init-boundary-tests
Open

james-choncholas wants to merge 1 commit into
ladnir:mainfrom
james-choncholas:baxos-init-boundary-tests

Conversation

@james-choncholas

Copy link
Copy Markdown
Contributor

Baxos::init already rejects numItems == 0 and computes the bin count without numItems + binSize - 1 wrapping around, but neither case had a test. This adds both to Baxos_idxtype_sentinel_and_params_Test, including a solve/decode round trip with binSize == u64 max.

Follow-up to #14; test-only, no library changes.

Baxos::init already rejects numItems == 0 and computes mNumBins without numItems + binSize - 1 wrapping, but neither case was covered. Add both to Baxos_idxtype_sentinel_and_params_Test.
@james-choncholas
james-choncholas marked this pull request as ready for review November 19, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant