rust-fuzz / honggfuzz-rs

Fuzz your Rust code with Google-developed Honggfuzz !
https://crates.io/crates/honggfuzz
Apache License 2.0
449 stars 40 forks source link

Build with profiling #28

Closed disconnect3d closed 4 years ago

disconnect3d commented 4 years ago

It would be nice to have a build-grcov command that would build honggfuzz-rs with profiling support, so the fuzzed binary can later be run with all fuzzing-generated inputs and crashes to get the coverage data, e.g. through Mozilla's grcov.

This, more or less requires the build to use the following flags:

CARGO_INCREMENTAL=0 RUSTFLAGS='-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads'
PaulGrandperrin commented 4 years ago

closed by #29