-
Notifications
You must be signed in to change notification settings - Fork 56
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
panic: runtime error: index out of range #487
Comments
Hint: the fuzz harness in question has a helper function that deploys a contract, it's called from the constructor to setup part of the fuzz target. The panic occurs if this fn is made public so the fuzzer can call it & replace this contract w one that has new params. No panic occurs if this function is private & only run in the constructor. |
Thanks @bohendo will take a look |
Just in case it helps someone else, I was getting this error too, but when I shortened the name of a test(with a really long name) and ran it again, it didn’t throw the error anymore. |
You can repro like so: Codebase: Just run |
Hey @JulissaDantes + @GalloDaSballo I'll merge a hot fix for this on master. I don't think it is related to the length of the test names but I will definitely investigate. |
I'm running medusa at commit
95f69b4c7224851cc200631f728965b7e2ac5ebb
.Issue #231 is closely related, although the PR fixing that one doesn't seem to do the job here.
Issue #299 is also related, the error message is the same at least, but this bug also occurs if
coverageEnabled
is false.The text was updated successfully, but these errors were encountered: