We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RoaringBitmap::deserialize_from_impl()
There is an overflow in deserialize_from_impl() that can be reached if s + len overflow a u16.
s + len
The overflow is reachable as both s and len are decoded from user input.
s
len
Noting in release mode this will wrapping overflow and not cause a panic. However, a panic would occur in debug mode.
Use checked math and propagate the error.
The text was updated successfully, but these errors were encountered:
Closed by #271
Sorry, something went wrong.
No branches or pull requests
What is the issue
There is an overflow in deserialize_from_impl() that can be reached if
s + len
overflow a u16.The overflow is reachable as both
s
andlen
are decoded from user input.Noting in release mode this will wrapping overflow and not cause a panic. However, a panic would occur in debug mode.
What is the solution
Use checked math and propagate the error.
The text was updated successfully, but these errors were encountered: