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

Jump destination validity #16

Open
obatirou opened this issue Dec 8, 2022 · 0 comments
Open

Jump destination validity #16

obatirou opened this issue Dec 8, 2022 · 0 comments

Comments

@obatirou
Copy link
Contributor

obatirou commented Dec 8, 2022

At this time, op_jump only checks if the destination is equal to 0x5B (jumpdest). But this is not sufficient to validate that the destination is valid: 0x5B could be a value inside a PUSH. More checks need to be done.
In case checks consume too much gas, those could be made optional as not verifying them would not prevent correct bytecode to be correctly executed (for example if bytecode was compiled using solc or equivalent).

https://ethereum.org/en/developers/tutorials/yellow-paper-evm/#943-jump-dest-valid

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

No branches or pull requests

1 participant