commit | 078e984d8d8f05a525c3322a9adf49857d5b5f83 | [log] [tgz] |
---|---|---|
author | Kostya Serebryany <kcc@google.com> | Tue Feb 02 02:07:26 2016 +0000 |
committer | Kostya Serebryany <kcc@google.com> | Tue Feb 02 02:07:26 2016 +0000 |
tree | 37c82dbb3dcf03a7fa055458d74620634a868546 | |
parent | e67b402e4544dd6837db8f5b9cdaff3f60fb34c9 [diff] [blame] |
[libFuzzer] fail if the corpus dir does not exist llvm-svn: 259454
diff --git a/llvm/lib/Fuzzer/FuzzerIO.cpp b/llvm/lib/Fuzzer/FuzzerIO.cpp index 043fad3..cc65876 100644 --- a/llvm/lib/Fuzzer/FuzzerIO.cpp +++ b/llvm/lib/Fuzzer/FuzzerIO.cpp
@@ -32,7 +32,7 @@ std::vector<std::string> V; if (Epoch) { auto E = GetEpoch(Dir); - if (*Epoch >= E) return V; + if (E && *Epoch >= E) return V; *Epoch = E; } DIR *D = opendir(Dir.c_str());