-
Notifications
You must be signed in to change notification settings - Fork 17
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
reduce
command causes tool to crash
#137
Comments
@camshaft Is |
I think it may have been broken awhile back after upgrading libFuzzer versions... When I first integrated it I ran into problems so had to apply quite a few workarounds to get it working. But we should revisit to see what's wrong and have some tests in place to make sure it doesn't regress again. |
Hmm I see thank you! Out of curiosity, I just started this thread at libFuzzer upstream, because I feel like we could upstream part of the stuff currently in bolero and that could help. Do you think this could be related to the issue here? And if not, do you remember what kind of workarounds you had to apply, or a rough timeframe where I could look for commits in the git history? |
I just went through the commit history and didn't see any commit messages standing out, so it was either before the initial commit or just included as part of another. But all of the reduce logic is here: bolero/bin/cargo-bolero/src/libfuzzer.rs Lines 80 to 218 in c5edc8e
|
On the libFuzzer side, the control file parser logic (the part that's printing the error) is here |
Thank you for the information! It's been a while, but just to give an update: my dayjob has strayed farther away from fuzzing than it originally was, and so I haven't had much love to give bolero recently. If anyone wants to pick this up, please feel free! |
Wrote a simple bolero test like this one:
When I run
cargo bolero reduce function
it crashes:Looks like it's failing to parse a file.
The text was updated successfully, but these errors were encountered: