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

core: align overflow checks in IntrinsicGas #30931

Conversation

Kourin1996
Copy link

Fixes #30880

This PR fixes calculations in the IntrinsicGas function that do not care abount overflow, ensuring they handle overflow in the same way as other computations in the same function

Copy link
Contributor

@jwasinger jwasinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking that any case where this could possibly overflow would have to be caused by an access list that is impossibly massive. So it doesn't appear worth it to increase the code complexity in order to handle a situation that can never arise.

@jwasinger
Copy link
Contributor

Similarly, auths from 7702 have sufficient size that the overflow checks this EIP adds can never realistically be triggered there either.

@palango
Copy link
Contributor

palango commented Dec 20, 2024

Similarly, auths from 7702 have sufficient size that the overflow checks this EIP adds can never realistically be triggered there either.

True, but it might make sense to align handling of those checks. See also this comment.

@palango
Copy link
Contributor

palango commented Jan 21, 2025

@rjl493456442 As you advocated for this in #30880 (comment) , it would be nice to either get a go or no-go. Feel free to close if there isn't consensus for this change.

@fjl
Copy link
Contributor

fjl commented Jan 21, 2025

We have made up our mind, and do not want to reduce the readability of the code for a case that cannot happen.

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.

Missing overflow check for AccessList cost addition in IntrinsicGas function
4 participants