This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Don't add leaking inputs to corpus.
ClosedPublic

Authored by morehouse on Nov 9 2017, 10:06 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

morehouse created this revision.Nov 9 2017, 10:06 AM
kcc edited edge metadata.Nov 9 2017, 10:33 AM

Code LG.
Please add a test.

morehouse updated this revision to Diff 122290.Nov 9 2017, 11:37 AM
  • Add test.
kcc added inline comments.Nov 9 2017, 11:45 AM
compiler-rt/test/fuzzer/fuzzer-leak.test
16 ↗(On Diff #122290)

This is too involved. I would just run the same test with -runs=0 on the corpus.
If there are leaky inputs in the corpus that will fail.

morehouse updated this revision to Diff 122296.Nov 9 2017, 11:49 AM
  • Simplify test logic.
kcc accepted this revision.Nov 9 2017, 12:14 PM

LGTM

This revision is now accepted and ready to land.Nov 9 2017, 12:14 PM
This revision was automatically updated to reflect the committed changes.