libfuzzer icon indicating copy to clipboard operation
libfuzzer copied to clipboard

Enable keep/reject inputs from the corpus

Open dacut opened this issue 3 years ago • 0 comments

This allows the fuzz target to indiciate whether an input was useful for the fuzz testing by returning Corpus::Keep or Corpus::Reject. Backwards compatibility is preserved by coercing the unit type () to Corpus::Keep.

This maps to 0 (Keep) and -1 (Reject) in the libFuzzer API: https://llvm.org/docs/LibFuzzer.html#rejecting-unwanted-inputs

dacut avatar Oct 01 '22 04:10 dacut