diff options
author | Kostya Serebryany <kcc@google.com> | 2019-06-14 22:56:50 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2019-06-14 22:56:50 +0000 |
commit | db88fc56b967da83a5fc1cb995cc765331a3e6cb (patch) | |
tree | 138e0ac9e41ad04ebc4149a5b3855b57b47b0253 /compiler-rt/lib/fuzzer/FuzzerDriver.cpp | |
parent | 2fa6838e5fe93c9eb492e8bc9d9b2295cc2f9fe2 (diff) | |
download | llvm-db88fc56b967da83a5fc1cb995cc765331a3e6cb.zip llvm-db88fc56b967da83a5fc1cb995cc765331a3e6cb.tar.gz llvm-db88fc56b967da83a5fc1cb995cc765331a3e6cb.tar.bz2 |
[libFuzzer] implement a better queue for the fork mode. Add an internal flag -stop_file to allow graceful shutdown of fuzzing. Enhance the logging in the fork mode
llvm-svn: 363470
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerDriver.cpp')
-rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerDriver.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp index 5458d6c..54c7ff0 100644 --- a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp @@ -709,6 +709,8 @@ int FuzzerDriver(int *argc, char ***argv, UserCallback Callback) { if (Flags.collect_data_flow) Options.CollectDataFlow = Flags.collect_data_flow; Options.LazyCounters = Flags.lazy_counters; + if (Flags.stop_file) + Options.StopFile = Flags.stop_file; unsigned Seed = Flags.seed; // Initialize Seed. |