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: fixed a bug in the emulated field's _select function #392

Closed
wants to merge 1 commit into from

Conversation

kevjue
Copy link

@kevjue kevjue commented Nov 9, 2022

Gnark will throw an array access out of bounds error in the _select function if the a and b parameter has more than one limb.

@kevjue kevjue changed the title Fixed a bug in _select fix: fixed a bug in the emulated field's _select function Nov 9, 2022
@ivokub
Copy link
Collaborator

ivokub commented Nov 17, 2022

Thanks for the PR, @kevjue! I had also realised a problem with Select. There is actually slightly more complexity involved when the overflows and limb lengths are different. In PR #395 there is a rewrite of Select which works for any inputs. We will hopefully merge that soon.

@ivokub ivokub closed this Nov 17, 2022
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