diff options
author | Kostya Serebryany <kcc@google.com> | 2019-02-08 21:27:23 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2019-02-08 21:27:23 +0000 |
commit | 4bdfbe8883e81de78f806e2539c0718af49c02c7 (patch) | |
tree | 651a062dbf4de133b143ff6a04cfd257a14bf255 /lib/fuzzer/FuzzerLoop.cpp | |
parent | 8e0c46cc3803fdef212744f151cf34966ec64e14 (diff) | |
download | compiler-rt-4bdfbe8883e81de78f806e2539c0718af49c02c7.tar.gz |
[libFuzzer] introduce an experimental mode -fork=1, where fuzzing happens in a subprocess (still running multiple inputs per process), thus making the fuzzing more resilient to timeouts and OOMs. This is just a skeleton of the code, and some associated refactoring, not a fully working feature yet.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerLoop.cpp')
-rw-r--r-- | lib/fuzzer/FuzzerLoop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuzzer/FuzzerLoop.cpp b/lib/fuzzer/FuzzerLoop.cpp index 58fd5c3e9..3b5e20e68 100644 --- a/lib/fuzzer/FuzzerLoop.cpp +++ b/lib/fuzzer/FuzzerLoop.cpp @@ -256,9 +256,9 @@ void Fuzzer::ExitCallback() { } void Fuzzer::MaybeExitGracefully() { - if (!GracefulExitRequested) return; + if (!F->GracefulExitRequested) return; Printf("==%lu== INFO: libFuzzer: exiting as requested\n", GetPid()); - PrintFinalStats(); + F->PrintFinalStats(); _Exit(0); } |