-
Notifications
You must be signed in to change notification settings - Fork 51
Avoid the "replace main" trick #46
Copy link
Copy link
Open
Labels
Description
The way libfuzzer works is that libfuzzer itself contains a main(), and you link in a binary that contains a hook but not main().
This is kind of awkward, ideally we can get rid of this requirement and instead have a system where you define main() and call libfuzzer::fuzz(|x: &[u8]| {...}) when ready.
Of course, this won't work without changes to libFuzzer itself. Ideally we can add a compile time flag that disables main() and routes everything through FuzzerDriver.
Reactions are currently unavailable