-
Notifications
You must be signed in to change notification settings - Fork 140
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
Sha3 bypass panic #102
Comments
I'd also noticed that sha bypass makes almost any contract on BSC to hang on the step of infant testcases generation. |
Thanks for reporting. It seems there is some issues in revm leading to this DoS. If we don't count gas during execution, revm can control to create a really large array. |
cli --sha3-bypass --work-dir /bsc/0x9bd7cd81B1dDd0f5F0c77A22f541AF24653aD129 -c BSC --onchain --onchain-block-number 29625908 -f --target 0x9bd7cd81B1dDd0f5F0c77A22f541AF24653aD129
gives:
thread 'main' panicked at 'index out of bounds: the len is 4 but the index is 18446744073709551615', /ityfuzz/src/evm/middlewares/sha3_bypass.rs:216:39
I guess it has connection to heimdall decompilation.
When running this without sha3-bypass, execution ends with:
memory allocation of 54043195528446112 bytes failed
The text was updated successfully, but these errors were encountered: