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
Unexpected runcode fail #386
Comments
With the extensive code example you provide this is not really possible to recreate. Will close this for now, if you really think this is a bug please try extract a more straight forward and simpler code example which can then be traced and analyzed. Thanks! |
@holgerd77 This is about to get a lot hotter.
Does this even make sense? |
This library is not consensus-critical so it's not a big issue. |
For giving some context for people coming from the outside and reading this: This library is not used to run the Ethereum network. Its current purpose is to serve as a developer simulation tool, it e.g. runs within the online IDE Remix and library execution is triggered when developers test their code. Even on assuming for a moment that the above filed issue is an exploitable bug, the worst "denial-of-service" attack which could be done in this context is to disturb a single separately-targeted developer in his/her online developer experience. That said: one can very confidently say after first analysis that the described behavior is not a bug (see also comment above) but just normal runtime behavior. |
@dynamicAna did you file the original CVE? |
I am using ethereumjs-vm
vm.runCode
function to run my contract bytecode, and I use thestep
event for trace output.When I set the runcode attribute
code: Buffer.from(my_code, 'hex')
, and tried to run it, I got the output of REVERT opcode, It means runcode was failed.REVERT output
{"pc":44,"op":253,"gas":"0xffffb0a7","gasCost":"0x0","stack":["0x1","0x0","0x0"],"depth":0,"opName":"REVERT"}
my_bytecode.zip
The text was updated successfully, but these errors were encountered: