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

Unchecked integer overflow of exponents in polynomial literal notation #712

Closed
brianhuffman opened this issue May 4, 2020 · 0 comments · Fixed by #777
Closed

Unchecked integer overflow of exponents in polynomial literal notation #712

brianhuffman opened this issue May 4, 2020 · 0 comments · Fixed by #777
Labels
bug Something not working correctly
Milestone

Comments

@brianhuffman
Copy link
Contributor

Cryptol silently does the wrong thing if you write a polynomial literal with an exponent that's too big to fit in an Int. For example:

Cryptol> :t <|x^^18446744073709551616|>
<| 1 |> : {n} (n >= 1, fin n) => [n]

This appears to be caused by an unsafe use of fromInteger (#637).

@atomb atomb added this to the 2.9.0 milestone May 5, 2020
@robdockins robdockins added the bug Something not working correctly label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something not working correctly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants