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 Lehmer64 implementation of next. #2912

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Conversation

Railroad6230
Copy link
Contributor

The implementation of [Lehmer64Rand::next] performs a mul on u128, which
is not checked against overflows. It leads to panic in debug mode.

The implementation of [`Lehmer64Rand::next`] performs a mul on `u128`, which
is not checked against overflows. It leads to panic in debug mode.


[`Lehmer64Rand`]: https://github.com/AFLplusplus/LibAFL/blob/fd6271fa356f3addda6db33f37db7e42a2c99bbc/libafl_bolts/src/rands/mod.rs#L373-L376
@tokatoka
Copy link
Member

thank you

@tokatoka tokatoka marked this pull request as ready for review January 30, 2025 07:52
@tokatoka tokatoka merged commit 5c5f6af into AFLplusplus:main Jan 30, 2025
106 checks passed
@Railroad6230 Railroad6230 deleted the pr2912 branch January 30, 2025 12:43
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