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

Incorrect Integer Overflow Behavior #3637

Closed
chen-robert opened this issue Oct 4, 2023 · 0 comments · Fixed by #3639
Closed

Incorrect Integer Overflow Behavior #3637

chen-robert opened this issue Oct 4, 2023 · 0 comments · Fixed by #3639

Comments

@chen-robert
Copy link
Contributor

Version Information

Vyper has inconsistent behavior with numbers that exceed 2**256.

  1. These values may be temporarily valid in the IR. This might create complexities for later optimization steps.
  2. Sometimes values overflow and wrap around unexpectedly.
@external
def zzz(x: DynArray[uint256,36185027886661311069865932815214971204146870208012676262330495002472853012139]):
  y: uint256[7] = [0,0,0,0,0,0,0]

  y[6] = y[5]
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 a pull request may close this issue.

1 participant