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

Added build-grcov command #29

Closed disconnect3d closed 4 years ago

disconnect3d commented 4 years ago

This adds a build-grcov command described in https://github.com/rust-fuzz/honggfuzz-rs/issues/28.

Please note that this feature was hacked in a short time and there might be some better way to do that or there might be a better set of flags to get profiling.

I am happy to update this PR according to the comments.

This can also be further updated by e.g. adding a run-grcov which would run such built binary against all crashes and inputs and generate a zip with grcov profiling data (that can later be used to generate coverage report for given sources/package).

PaulGrandperrin commented 4 years ago

Thanks @disconnect3d ! (and sorry for answering lately) Would you mind very quickly explaining how you then use the resulting binary so that maybe I'll also create a run-grcov command too :-)