diff options
author | Kostya Serebryany <kcc@google.com> | 2019-02-13 04:04:45 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2019-02-13 04:04:45 +0000 |
commit | 92f7768ce940f6437b32ecc0985a1446cd040f7a (patch) | |
tree | 428a1721cd313ed4bc5a2358e7edb0212c4dd81c /lib/fuzzer/FuzzerMerge.cpp | |
parent | 2e6c8b4ca404aa9db6fc658c0feea74cbe105781 (diff) | |
download | compiler-rt-92f7768ce940f6437b32ecc0985a1446cd040f7a.tar.gz |
[libFuzzer] a bit of refactoring of the fork mode
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerMerge.cpp')
-rw-r--r-- | lib/fuzzer/FuzzerMerge.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fuzzer/FuzzerMerge.cpp b/lib/fuzzer/FuzzerMerge.cpp index 9a86512df..556a231f1 100644 --- a/lib/fuzzer/FuzzerMerge.cpp +++ b/lib/fuzzer/FuzzerMerge.cpp @@ -261,6 +261,7 @@ void CrashResistantMerge(const Vector<std::string> &Args, const Set<uint32_t> &InitialFeatures, Set<uint32_t> *NewFeatures, const std::string &CFPath, bool V /*Verbose*/) { + if (NewCorpus.empty() && OldCorpus.empty()) return; // Nothing to merge. size_t NumAttempts = 0; if (FileSize(CFPath)) { VPrintf(V, "MERGE-OUTER: non-empty control file provided: '%s'\n", |