summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerDriver.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-10-05 22:56:21 +0000
committerKostya Serebryany <kcc@google.com>2016-10-05 22:56:21 +0000
commit1c73f1bf274edcadfcd4cc95f4adc89dff8cb5fb (patch)
treee13ce2de9795de3e90c1ee88707281ae25572d5a /llvm/lib/Fuzzer/FuzzerDriver.cpp
parentae34c56ee77ba6f9096dcec543d99d9ab87a6718 (diff)
downloadbcm5719-llvm-1c73f1bf274edcadfcd4cc95f4adc89dff8cb5fb.tar.gz
bcm5719-llvm-1c73f1bf274edcadfcd4cc95f4adc89dff8cb5fb.zip
[libFuzzer] refactoring to make -shrink=1 work for value profile, added a test.
llvm-svn: 283409
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerDriver.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerDriver.cpp b/llvm/lib/Fuzzer/FuzzerDriver.cpp
index d0de517920d..fd88d50cfa8 100644
--- a/llvm/lib/Fuzzer/FuzzerDriver.cpp
+++ b/llvm/lib/Fuzzer/FuzzerDriver.cpp
@@ -342,7 +342,7 @@ int MinimizeCrashInputInternalStep(Fuzzer *F, InputCorpus *Corpus) {
Unit U = FileToVector(InputFilePath);
assert(U.size() > 2);
Printf("INFO: Starting MinimizeCrashInputInternalStep: %zd\n", U.size());
- Corpus->AddToCorpus(U);
+ Corpus->AddToCorpus(U, 0);
F->SetMaxInputLen(U.size());
F->SetMaxMutationLen(U.size() - 1);
F->Loop();
OpenPOWER on IntegriCloud