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/vm, params: ensure order of forks, prevent overflow #20

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

0x416e746f6e
Copy link

this PR ports upstream ethereum#29023:

This PR fixes an overflow which can could happen if inconsistent blockchain rules were configured. Additionally, it tries to prevent such inconsistencies from occurring by making sure that merge cannot be enabled unless previous fork(s) are also enabled.

Without this PR, it is possible to set the overrides on an eth_call over RPC and trigger a method-handler crash (not a full node crash).

Hat-tip to @pleasew8t for reporting this via the bounty via a very well-written submission.

@ferranbt ferranbt merged commit 389d537 into main Mar 14, 2024
3 of 4 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.

2 participants