diff options
author | Kostya Serebryany <kcc@google.com> | 2017-11-15 16:42:52 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-11-15 16:42:52 +0000 |
commit | fcc081e71ac517e6f21e20144300f019ce88ecc4 (patch) | |
tree | 8fffa49c4fed76822ec08ee92c9a24b9745e86ac /lib | |
parent | 0066b15e48e7b40e43051c9241760e7066582a96 (diff) |
[libFuzzer] respect max_len during merge
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@318302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fuzzer/FuzzerMerge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuzzer/FuzzerMerge.cpp b/lib/fuzzer/FuzzerMerge.cpp index 9b21a0917..934871b15 100644 --- a/lib/fuzzer/FuzzerMerge.cpp +++ b/lib/fuzzer/FuzzerMerge.cpp @@ -379,7 +379,7 @@ void Fuzzer::CrashResistantMerge(const Vector<std::string> &Args, Printf("MERGE-OUTER: %zd new files with %zd new features added\n", NewFiles.size(), NumNewFeatures); for (auto &F: NewFiles) - WriteToOutputCorpus(FileToVector(F)); + WriteToOutputCorpus(FileToVector(F, MaxInputLen)); // We are done, delete the control file if it was a temporary one. if (!MergeControlFilePathOrNull) RemoveFile(CFPath); |