forked from OSchip/llvm-project
[libFuzzer] tolerate missing files when loading the seed corpus
llvm-svn: 312269
This commit is contained in:
parent
ea95dd7e3b
commit
082e9a7528
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue