Closed PaulGrandperrin closed 6 years ago
panic=abort
should be able to work alongside plugins.
I know but it doesn't...
building a target fuzzing proc_macro2
with panic=abort
gives:
error: the linked panic runtime `panic_unwind` is not compiled with this crate's panic strategy `abort`
And anyway, it's still useful if the user overrides (accidentally or not) the panic strategy.
@nagisa , it's possible to fuzz proc_macro2
in the targets
repository because in this repository panic=abort
is not used : https://github.com/rust-fuzz/targets/blob/7b1c464276cca4c7b95080f7652bc8633315720f/cli.rs#L264
So it means that:
cargo-fuzz
, you can't fuzz things like proc_macro2
.targets
, the fuzzer can't tell bugs apart.
Please see the rational and example implementation in this honggfuzz-rs commit: https://github.com/rust-fuzz/honggfuzz-rs/commit/abe2b4c93121e6fdca498e7e1645f63c9d41369d