From: Kostya Serebryany Date: Fri, 1 Dec 2017 22:12:04 +0000 (+0000) Subject: [libFuzzer] add a flag -malloc_limit_mb X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fe1bd128c218a113d2f16f3260122cadd949b91;p=llvm [libFuzzer] add a flag -malloc_limit_mb git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319590 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LibFuzzer.rst b/docs/LibFuzzer.rst index a2198f2b5a8..7a105e5ed12 100644 --- a/docs/LibFuzzer.rst +++ b/docs/LibFuzzer.rst @@ -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``