summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2019-02-15 00:08:16 +0000
committerKostya Serebryany <kcc@google.com>2019-02-15 00:08:16 +0000
commit8c2791469deacae7e1a7a63ac9b1d3d5970ab681 (patch)
tree909a271aa0ba4fb9deb78aca2bbf6b0959676de9 /compiler-rt/lib/fuzzer/FuzzerDriver.cpp
parent87498153aa12c672335e7ddb79972042832b8a66 (diff)
downloadbcm5719-llvm-8c2791469deacae7e1a7a63ac9b1d3d5970ab681.tar.gz
bcm5719-llvm-8c2791469deacae7e1a7a63ac9b1d3d5970ab681.zip
[libFuzzer] when doing the merge, keep track of the coveraged edges, not just features
llvm-svn: 354087
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerDriver.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerDriver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
index 434c481287b..9f1621fcdb5 100644
--- a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
@@ -483,9 +483,9 @@ void Merge(Fuzzer *F, FuzzingOptions &Options, const Vector<std::string> &Args,
std::string CFPath = CFPathOrNull ? CFPathOrNull : TempPath(".txt");
Vector<std::string> NewFiles;
- Set<uint32_t> NewFeatures;
+ Set<uint32_t> NewFeatures, NewCov;
CrashResistantMerge(Args, OldCorpus, NewCorpus, &NewFiles, {}, &NewFeatures,
- CFPath, true);
+ {}, &NewCov, CFPath, true);
for (auto &Path : NewFiles)
F->WriteToOutputCorpus(FileToVector(Path, Options.MaxLen));
// We are done, delete the control file if it was a temporary one.
OpenPOWER on IntegriCloud