This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Add -detect_exits flag.
AbandonedPublic

Authored by morehouse on Apr 17 2018, 11:42 AM.

Details

Reviewers
kcc
vitalybuka
Summary

Allows users to disable exit reports. Motivated by
https://github.com/google/oss-fuzz/pull/1314.

Event Timeline

morehouse created this revision.Apr 17 2018, 11:42 AM
  • Add documentation line.
kcc added a comment.Apr 17 2018, 9:08 PM

why is this needed?

In D45730#1070575, @kcc wrote:

why is this needed?

This was motivated by conversation regarding wget on OSS-Fuzz: https://github.com/google/oss-fuzz/pull/1314.

There, Tim Ruhsen mentioned he's getting exit reports and doesn't want them since wget calls exit frequently.

kcc added a comment.Apr 18 2018, 11:27 AM

libFuzzer is in-process fuzzer, exit is not a libFuzzer-friendly thing.
I am reluctant to allow exits even under a flag -- it will discourage people from making their APIs more fuzzable.
For legacy code that nobody is willing to change we have the out-of-process AFL

morehouse abandoned this revision.Apr 18 2018, 4:31 PM

All right. If that's the route we want to go, I'll abandon this patch.