-
Notifications
You must be signed in to change notification settings - Fork 120
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
runtime bytecode ignored #5
Comments
Look out. There is only 1 function in evm. And it starts at 0. The create_func should then assert you are creating it at address zero. Also there is no guarantee that the init bytecode will contain the runtime bytecode in the clear. |
i'm not sure about this. while yes, technically there is strictly 1 function, beginning at 0x0 in EVM bytecode, it would still be useful to manually disassemble at an arbitrary offset |
So looking at that particular example, the sub_1e is doing what it's supposed to do, but the jump destination is invalid. That's why you're not seeing anything more. Creating an arbitrary function should work correctly otherwise |
It is a common use case to analyze a file that contains contract init and runtime (rt) bytecode. If you give this to ethersplay, it only analyzes the init bytecode, which is not very useful. if it is possible, ethersplay should detect runtime bytecode and disassemble it also.
at the very least, ethersplay should allow the use to click "create function here" at the location of the rt bytecode. currently, this seems broken.
here is an example bytecode file with both init and rt code
x.bytecode.zip
The text was updated successfully, but these errors were encountered: