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: do not pass limb width enforcement for consts in AssertIsEqual #550

Merged
merged 3 commits into from
Mar 9, 2023

Conversation

ivokub
Copy link
Collaborator

@ivokub ivokub commented Mar 9, 2023

Fixes the bugs found by the fuzzer. I also added logging to the fuzzer when it finds the inputs which create inconsistent result. Otherwise it is quite time-consuming to recreate the bug.

ivokub added 2 commits March 9, 2023 12:12
Previously we didn't conditionally enforce the width in the method as it was
done in the methods we called. However, there is a short path for constants and
in that case the check was omitted. Add width enforcement to the header of the
method to ensure it is also enforce for const inputs.
@ivokub ivokub added the bug Something isn't working label Mar 9, 2023
@ivokub ivokub added this to the v0.9.0 milestone Mar 9, 2023
@ivokub ivokub requested a review from gbotrel March 9, 2023 11:16
@ivokub ivokub self-assigned this Mar 9, 2023
@ivokub ivokub changed the base branch from master to develop March 9, 2023 11:16
@gbotrel gbotrel merged commit 28b29de into develop Mar 9, 2023
@gbotrel gbotrel deleted the fix/emulation-constwidth branch March 9, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants