This is an archive of the discontinued LLVM Phabricator instance.

[LibFuzzer] Do not write crash unit file for single input
ClosedPublic

Authored by aizatsky on Oct 14 2015, 3:55 PM.

Details

Reviewers
kcc
Summary

When -test_single_input crashes the test it is not necessary to write crash-file because input is already known to the user.

Diff Detail

Event Timeline

aizatsky updated this revision to Diff 37415.Oct 14 2015, 3:55 PM
aizatsky retitled this revision from to Do not write crash report for single input.
aizatsky updated this object.
aizatsky retitled this revision from Do not write crash report for single input to [LibFuzzer] Do not write crash unit file for single input.Oct 14 2015, 3:57 PM
aizatsky updated this object.
aizatsky added a reviewer: kcc.
aizatsky added a subscriber: llvm-commits.
kcc edited edge metadata.Oct 14 2015, 4:55 PM

The logic is a bit complicated
Also, will this handle slow-unit and timeout-? Please test for those too.

Maybe test_single_unit simply disables the deatch callbacks and alarm?

Also, what happens when -test_single_unit=FILE_THAT_DOES_NOT_EXIST ?

aizatsky updated this revision to Diff 37639.Oct 16 2015, 1:59 PM
aizatsky edited edge metadata.
  • wip
  • moving option down the stack
aizatsky updated this revision to Diff 37640.Oct 16 2015, 2:06 PM
  • handling bad file

Reworked the logic and checking for bad file. PTAL

kcc accepted this revision.Oct 16 2015, 2:26 PM
kcc edited edge metadata.

LGTM, except for the variable name.
Let me commit this.

lib/Fuzzer/FuzzerDriver.cpp
280

SaveArtifacts

This revision is now accepted and ready to land.Oct 16 2015, 2:26 PM
kcc closed this revision.Oct 16 2015, 3:44 PM

r250564.