mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-27 00:15:58 +00:00
[libFuzzer] don't crash when reporting a leak in test_single_input mode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea83f226ac
commit
45ac8bc6fc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user