]> granicus.if.org Git - llvm/commitdiff
[libFuzzer] add a flag -malloc_limit_mb
authorKostya Serebryany <kcc@google.com>
Fri, 1 Dec 2017 22:12:04 +0000 (22:12 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 1 Dec 2017 22:12:04 +0000 (22:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319590 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LibFuzzer.rst

index a2198f2b5a816e3fa0b63faa8af03ee044187869..7a105e5ed129a2e822d0eca4d1a158f32519191e 100644 (file)
@@ -246,6 +246,10 @@ The most important command line options are:
   the process is treated as a failure case.
   The limit is checked in a separate thread every second.
   If running w/o ASAN/MSAN, you may use 'ulimit -v' instead.
+``-malloc_limit_mb``
+  If non-zero, the fuzzer will exit if the target tries to allocate this
+  number of Mb with one malloc call.
+  If zero (default) same limit as rss_limit_mb is applied.
 ``-timeout_exitcode``
   Exit code (default 77) used if libFuzzer reports a timeout.
 ``-error_exitcode``