summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerFlags.def
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-04-20 00:24:21 +0000
committerKostya Serebryany <kcc@google.com>2016-04-20 00:24:21 +0000
commit1bfd583d82963cddf839fb0d8c9254cd3a967631 (patch)
tree59304c967c9b80d7de3e133f20de3311deb87dda /llvm/lib/Fuzzer/FuzzerFlags.def
parentea0b1e7c17eee8b514c026fbb30dc515bdf1c4bd (diff)
downloadbcm5719-llvm-1bfd583d82963cddf839fb0d8c9254cd3a967631.tar.gz
bcm5719-llvm-1bfd583d82963cddf839fb0d8c9254cd3a967631.zip
[libFuzzer] added -detect_leaks flag (0 by default for now). When enabled, it will help finding leaks while fuzzing
llvm-svn: 266838
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerFlags.def')
-rw-r--r--llvm/lib/Fuzzer/FuzzerFlags.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerFlags.def b/llvm/lib/Fuzzer/FuzzerFlags.def
index a9008fac6a6..261623277a4 100644
--- a/llvm/lib/Fuzzer/FuzzerFlags.def
+++ b/llvm/lib/Fuzzer/FuzzerFlags.def
@@ -79,6 +79,8 @@ FUZZER_FLAG_INT(handle_term, 1, "If 1, try to intercept SIGTERM.")
FUZZER_FLAG_INT(close_fd_mask, 0, "If 1, close stdout at startup; "
"if 2, close stderr; if 3, close both. "
"Be careful, this will also close e.g. asan's stderr/stdout.")
+FUZZER_FLAG_INT(detect_leaks, 0, "If 1, and if LeakSanitizer is enabled "
+ "try to detect memory leaks during fuzzing (i.e. not only at shut down).")
FUZZER_DEPRECATED_FLAG(exit_on_first)
FUZZER_DEPRECATED_FLAG(save_minimized_corpus)
OpenPOWER on IntegriCloud