[compiler-rt] r312269 - [libFuzzer] tolerate missing files when loading the seed corpus
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 12:17:15 PDT 2017
Author: kcc
Date: Thu Aug 31 12:17:15 2017
New Revision: 312269
URL: http://llvm.org/viewvc/llvm-project?rev=312269&view=rev
Log:
[libFuzzer] tolerate missing files when loading the seed corpus
Modified:
compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp?rev=312269&r1=312268&r2=312269&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerLoop.cpp Thu Aug 31 12:17:15 2017
@@ -638,7 +638,7 @@ void Fuzzer::ReadAndExecuteSeedCorpora(c
// Load and execute inputs one by one.
for (auto &SF : SizedFiles) {
- auto U = FileToVector(SF.File, MaxInputLen);
+ auto U = FileToVector(SF.File, MaxInputLen, /*ExitOnError=*/false);
assert(U.size() <= MaxInputLen);
RunOne(U.data(), U.size());
CheckExitOnSrcPosOrItem();
More information about the llvm-commits
mailing list