[llvm] r257560 - [libFuzzer] make sure to update CurrentUnit when drilling
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 12 17:58:27 PST 2016
Author: kcc
Date: Tue Jan 12 19:58:27 2016
New Revision: 257560
URL: http://llvm.org/viewvc/llvm-project?rev=257560&view=rev
Log:
[libFuzzer] make sure to update CurrentUnit when drilling
Modified:
llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
Modified: llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp?rev=257560&r1=257559&r2=257560&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp Tue Jan 12 19:58:27 2016
@@ -455,12 +455,15 @@ void Fuzzer::Drill() {
PrintStats("REINIT");
SavedOutputCorpusPath.swap(Options.OutputCorpus);
- for (auto &U : SavedCorpus)
+ for (auto &U : SavedCorpus) {
+ CurrentUnit = U;
RunOne(U);
+ }
PrintStats("MERGE ");
Options.PrintNEW = true;
size_t NumMerged = 0;
for (auto &U : Corpus) {
+ CurrentUnit = U;
if (RunOne(U)) {
PrintStatusForNewUnit(U);
NumMerged++;
More information about the llvm-commits
mailing list