projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21b2bb4
)
[libFuzzer] be more robust when dealing with files on disk (e.g. don't crash if a...
author
Kostya Serebryany
<kcc@google.com>
Tue, 8 Sep 2015 20:36:33 +0000
(20:36 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Tue, 8 Sep 2015 20:36:33 +0000
(20:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247066
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Fuzzer/FuzzerIO.cpp
patch
|
blob
|
history
diff --git
a/lib/Fuzzer/FuzzerIO.cpp
b/lib/Fuzzer/FuzzerIO.cpp
index a68c6c579bfb8b445fc74270200ce680c3927681..b6ffb752de310dd8afbf78c15d4ce8ee6316894f 100644
(file)
--- a/
lib/Fuzzer/FuzzerIO.cpp
+++ b/
lib/Fuzzer/FuzzerIO.cpp
@@
-21,10
+21,8
@@
namespace fuzzer {
static long GetEpoch(const std::string &Path) {
struct stat St;
- if (stat(Path.c_str(), &St)) {
- Printf("Can not stat: %s; exiting\n", Path.c_str());
- exit(1);
- }
+ if (stat(Path.c_str(), &St))
+ return 0; // Can't stat, be conservative.
return St.st_mtime;
}