diff options
author | Kostya Serebryany <kcc@google.com> | 2016-03-24 01:32:08 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-03-24 01:32:08 +0000 |
commit | 315167339eb5f146040033b555c00ee0671ac72a (patch) | |
tree | 3c8c21c4fb43ce69032d958a41261c4afd5413c8 /llvm/lib/Fuzzer/FuzzerLoop.cpp | |
parent | 37df19ebee81322aa018af65cae57eafde6c5350 (diff) | |
download | llvm-315167339eb5f146040033b555c00ee0671ac72a.zip llvm-315167339eb5f146040033b555c00ee0671ac72a.tar.gz llvm-315167339eb5f146040033b555c00ee0671ac72a.tar.bz2 |
[libFuzzer] don't report memory leaks if we are dying due to a timeout (just use _Exit instead of exit in the timeout callback)
llvm-svn: 264237
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerLoop.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerLoop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp index 7f3ffd0..f09ac05 100644 --- a/llvm/lib/Fuzzer/FuzzerLoop.cpp +++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp @@ -164,7 +164,7 @@ void Fuzzer::AlarmCallback() { __sanitizer_print_stack_trace(); Printf("SUMMARY: libFuzzer: timeout\n"); PrintFinalStats(); - exit(Options.TimeoutExitCode); + _Exit(Options.TimeoutExitCode); // Stop right now. } } |