Closed Manishearth closed 4 years ago
If folks like this approach I'll go ahead and try to upstream the libfuzzer patch.
Does this only get called when a bug is found?
Yep.
Fuzzer::DumpCurrentUnit
is what libfuzzer uses to dump out the failing test string at the end, in multiple formats (bytestring, list of hex bytes, base64, and to a file).
Upstreaming at https://reviews.llvm.org/D70738
We did an alternative implementation in #53
Fixes https://github.com/rust-fuzz/libfuzzer-sys/issues/47
This is really a proof of concept. Ideally we can upstream LLVMFuzzerCustomOutput, and also we can make this work so that it is able to turn itself off for types that don't implement Debug.
Thoughts? @nagisa @fitzgen