[libFuzzer] tolerate missing files when loading the seed corpus

llvm-svn: 312269
This commit is contained in:
Kostya Serebryany 2017-08-31 19:17:15 +00:00
parent ea95dd7e3b
commit 082e9a7528
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ void Fuzzer::ReadAndExecuteSeedCorpora(const Vector<std::string> &CorpusDirs) {
// 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();