Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialization/validation unit tests #665

Merged
merged 3 commits into from
Sep 21, 2024

Conversation

Dr-Emann
Copy link
Member

@Dr-Emann Dr-Emann commented Sep 21, 2024

Add some unit tests for deserialization/validation.

This also does add a small fix to the ra_portable_deserialize_size function to not allow negative container counts.

Related to #662

Add tests to validate that deserialization and validation will catch invalid
bitmaps.
If we allow negative container counts, we can end up walking backwards before
the beginning of the buffer.
@lemire lemire merged commit 1d5eb99 into RoaringBitmap:master Sep 21, 2024
21 checks passed
@lemire
Copy link
Member

lemire commented Sep 21, 2024

I'll be issuing a patch release.

@Dr-Emann Dr-Emann deleted the push-nysyowqtqlyn branch September 21, 2024 13:21
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.

2 participants