Skip to content

Conversation

AlSchlo
Copy link

@AlSchlo AlSchlo commented Oct 18, 2025

As title: experienced through my usage of CRoaring w/ ASan.

Interestingly, other places in the code have it correct, but somehow this must have slipped through the cracks.

@AlSchlo AlSchlo changed the title BUG FIX: Fix buffer overflow due to arithmetic overflow in RLE decoding BUG FIX: Buffer overflow due to arithmetic overflow in RLE decoding Oct 18, 2025
@lemire
Copy link
Member

lemire commented Oct 18, 2025

@AlSchlo Do you have a reproducible test case we could use for testing ?

@AlSchlo
Copy link
Author

AlSchlo commented Oct 18, 2025

@lemire The bug has been found in our in-house fuzz suite. I will see how we can reproduce locally to avoid regressions.

@lemire
Copy link
Member

lemire commented Oct 19, 2025

@AlSchlo That would be much appreciated.

@AlSchlo
Copy link
Author

AlSchlo commented Oct 21, 2025

@lemire After investigation, it seems that this bug has already been fixed here! We were using an older version before the patch went life. Given that all other places in the code replaced uint16 with int, I thought that this was still broken here too. Will close this PR.

@AlSchlo AlSchlo closed this Oct 21, 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