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

Basic Fuzzing Support and a Fix for a uncovered Bug during decoding of dynamic arrays #221

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

f0rki
Copy link
Contributor

@f0rki f0rki commented Apr 26, 2021

I added a basic fuzzing harness to support fuzzing the decoder with cargo fuzz. After a small fuzzing run this uncovered another issue in the new decoder of v14. Similar to the issue with the dynamic tuples (see #203), there is an issue with dynamic arrays size leading to an out-of-bounds access, which causes rust to panic. The fix is quite the same as for the tuple issue.

Currently the current fuzzing harness uses a fixed ABI (res/big.abi), which contains a bunch of ABI definitions and parameters. In the future it might make sense to also generate the ABI at random (e.g., using the arbitrary crate).

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

Successfully merging this pull request may close these issues.

None yet

1 participant