-
Notifications
You must be signed in to change notification settings - Fork 47
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
Introduce LLVMFuzzerInitialize support #128
Introduce LLVMFuzzerInitialize support #128
Conversation
- Added `example_init` to demonstrate the use of initialization code with the `fuzz_target!` macro. - Updated `fuzz_target!` macro to support an `init` parameter for executing initialization code before fuzzing. - Updated CI script to build and run the new example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this before I got around to it! Some questions/suggestions I had while skimming the diff. I'm not a maintainer, so this doesn't carry any weight one way or another, but I hope they're still useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Looks good to me with nitpick below addressed.
Co-authored-by: Nick Fitzgerald <[email protected]>
This reverts commit 8188902.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good modulo one final suggestion for the doc comment example
Co-authored-by: Nick Fitzgerald <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Rust fmt is my nemesis :( |
example_init
to demonstrate the use of initialization code with thefuzz_target!
macro.fuzz_target!
macro to support aninit
parameter for executing initialization code before fuzzing.Should I update any doc with init usage example?
Is the example good enough? Maybe an example using
static
would be more meaningful.Close after merge:
fuzz_target!
code #110