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
Please update line 114 of numberparse/correct.rs to wrapping add, this kept all tests passing plus eliminated the panic while fuzzing.
numberparse/correct.rs
while is_integer(get!(buf, idx)) { num = 10_u64.wrapping_mul(num) + u64::from(get!(buf, idx) - b'0'); idx += 1; }
to this:
while is_integer(get!(buf, idx)) { num = 10_u64.wrapping_mul(num).wrapping_add(u64::from(get!(buf, idx) - b'0')); idx += 1; }
The text was updated successfully, but these errors were encountered:
Fix #371 possible panic in fuzzing
f6161f4
Signed-off-by: Heinz Gies <[email protected]>
Thanks, good catch 👍
Sorry, something went wrong.
4e6115e
Successfully merging a pull request may close this issue.
Please update line 114 of
numberparse/correct.rs
to wrapping add, this kept all tests passing plus eliminated the panic while fuzzing.to this:
The text was updated successfully, but these errors were encountered: