rust-fuzz / libfuzzer

Rust bindings and utilities for LLVM’s libFuzzer
Apache License 2.0
208 stars 44 forks source link

Document setting RUSTFLAGS in the readme #21

Open frewsxcv opened 7 years ago

frewsxcv commented 7 years ago

https://github.com/rust-fuzz/targets/pull/1#issuecomment-283541104

Manishearth commented 7 years ago

So you don't always want to set rustflags -- if the code you want fuzzed is in the same crate cargo rustc will work too. But usually you write a separate tiny fuzz script and link to the crate, in which case you need the actual crate to be instrumented.