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

Fix out of bounds read/writes #186

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

martint
Copy link
Member

@martint martint commented Feb 9, 2024

If the computed literal length was greater than Integer.MAX_VALUE, the value would overflow to a negative and cause a read before the beginning of the buffer.

Fix other assorted missing bounds checks.

@martint martint force-pushed the snappy-literal-overflow branch 5 times, most recently from be9d74f to 0ceca24 Compare February 9, 2024 18:27
If the computed literal or match length was greater than
Integer.MAX_VALUE, the value would overflow to a negative
and cause a read before the beginning of the buffer.
@martint martint changed the title Fix out of bounds read due to bad literal length Fix out of bounds read/writes Feb 13, 2024
@martint martint merged commit cf66151 into airlift:master Feb 13, 2024
3 checks passed
@martint martint deleted the snappy-literal-overflow branch February 13, 2024 16:10
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