Skip to content

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
Dr-Emann added a commit to Dr-Emann/roaring-rs that referenced this pull request Apr 16, 2025
Dr-Emann added a commit to Dr-Emann/roaring-rs that referenced this pull request Apr 17, 2025
Dr-Emann added a commit to Dr-Emann/roaring-rs that referenced this pull request Apr 19, 2025
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