summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerLoop.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-08-31 19:17:15 +0000
committerKostya Serebryany <kcc@google.com>2017-08-31 19:17:15 +0000
commitfcb6aa26f41fd7544842e5d45ef4a125439a04af (patch)
tree342f731f7fc73178007662e596eebc57e1a7a445 /lib/fuzzer/FuzzerLoop.cpp
parent907e59854ac144ef0760d4c40ca3359481d511a1 (diff)
[libFuzzer] tolerate missing files when loading the seed corpus
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@312269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerLoop.cpp')
-rw-r--r--lib/fuzzer/FuzzerLoop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuzzer/FuzzerLoop.cpp b/lib/fuzzer/FuzzerLoop.cpp
index 97fc31cc8..0354fc86e 100644
--- a/lib/fuzzer/FuzzerLoop.cpp
+++ b/lib/fuzzer/FuzzerLoop.cpp
@@ -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();