-
Notifications
You must be signed in to change notification settings - Fork 293
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
Arithmetic overflow found on with_capacity()
#627
Comments
It seems like there should be an assertion prior to the |
That would resolve #626 as well. |
Thanks for detecting those! Would you like to submit a PR that uses an assertion or checked math? |
submitted on #628 |
seanmonstar
pushed a commit
that referenced
this issue
Nov 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I executed fuzz testing on
http-0.2.9
, and found some arithmetic overflow.Please note that overflow condition is different with #626 .
reproduce with :
If you input TOO big number on
with_capacity()
, #626 occurs before reaching tonext_power_of_two()
.The text was updated successfully, but these errors were encountered: