-
Notifications
You must be signed in to change notification settings - Fork 781
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
evm: ensure modexp right-pads input data #3206
Conversation
Codecov Report
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
c55eb46
to
05b70b0
Compare
Rebased this via UI |
Tests failing, not sure what happened (simply haven’t looked). |
Hmm the modexp tests on blockchain/state are failing so that's interesting, I thought this fix would be somewhat trivial 🤔 |
…umjs-monorepo into fix-precompiles-inputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Verified that the data length gets appropriately set
Closes #3204
I have reviewed EVM to see if there are more cases of doing "not-safe-slices" of any input. The only other candidate which could have impact which I could find are the ECMUL and ECADD precompiles. We should investigate this. (To be addressed in another PR).