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(vm): clamp U256 conversions to <type>::MAX #338

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

Jon-Becker
Copy link
Owner

Motivation

Resolves #332

Solution

When converting EVM values from U256 to rust types usize and u128, we clamp the values to <type>::MAX rather than excepting. When symbolically executing a contract, we are bound to get huge and weird values, and we should support these cases without excepting.

Culprit: 0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC

@Jon-Becker Jon-Becker enabled auto-merge (squash) February 9, 2024 17:01
@Jon-Becker Jon-Becker merged commit fe2049c into main Feb 9, 2024
7 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.

bug: long-running integration tests failed
1 participant