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 possibility of infinite loop in BitOps #732

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

dvdplm
Copy link
Contributor

@dvdplm dvdplm commented Jan 9, 2025

Do not provide a default impl for bits_vartime so that implementors that do not provide a default impl end up in an infinite loop between bits_vartime and leading_zeros_vartime.

Fixes #729

@tarcieri tarcieri merged commit f26fcc4 into RustCrypto:master Jan 9, 2025
18 checks passed
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.

Infinite loop in BitOps::bits_vartime
2 participants