OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea83f22
)
[libFuzzer] don't crash when reporting a leak in test_single_input mode
author
Kostya Serebryany
<kcc@google.com>
Sat, 21 Nov 2015 03:46:43 +0000
(
03:46
+0000)
committer
Kostya Serebryany
<kcc@google.com>
Sat, 21 Nov 2015 03:46:43 +0000
(
03:46
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253761
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Fuzzer/FuzzerDriver.cpp
patch
|
blob
|
history
diff --git
a/lib/Fuzzer/FuzzerDriver.cpp
b/lib/Fuzzer/FuzzerDriver.cpp
index
c4cfc06
..
0897f9c
100644
(file)
--- a/
lib/Fuzzer/FuzzerDriver.cpp
+++ b/
lib/Fuzzer/FuzzerDriver.cpp
@@
-273,8
+273,10
@@
int FuzzerDriver(const std::vector<std::string> &Args,
if (Flags.timeout > 0)
SetTimer(Flags.timeout / 2 + 1);
- if (Flags.test_single_input)
- return RunOneTest(&F, Flags.test_single_input);
+ if (Flags.test_single_input) {
+ RunOneTest(&F, Flags.test_single_input);
+ exit(0);
+ }
if (Flags.merge) {
F.Merge(*Inputs);