-
Notifications
You must be signed in to change notification settings - Fork 181
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
fuzz: Add a fuzz-testing harness #774
Conversation
More context on this PR is in #775. If you aren't familiar with cargo-fuzz here is s brief intro on how to get started with this fuzzer;
The fuzzer will run indefinetely or until;
I'm happy to document this somewhere if you can point me to the correct location for this in your docs. |
Just as a note, I was quickly able to make the rhai parser panic using this fuzz-harness. Which would void the "Don’t Panic Guarantee" :P I'll open up a bug report once I've simplified the bug. |
Btw is there a way to know thr actual input that caused the failure? |
Also is it possible to run fuzzing on CI? Is that allowed on GitHub? |
Yeah, when the fuzzer finds a bug it'll print out a debug formatted version of the input that triggered the crash. e.g.
I used the debug output above to construct a main file in #776, but once you are comfortable with cargo-fuzz this shouldn't be necessary. You can just use the commands described below. It'll also save the raw fuzzed data that triggered the crash, with a description on how to reproduce the problem e.g.
Yeah so my plan looks something like this;
|
No description provided.