[llvm] r319590 - [libFuzzer] add a flag -malloc_limit_mb
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 14:12:04 PST 2017
Author: kcc
Date: Fri Dec 1 14:12:04 2017
New Revision: 319590
URL: http://llvm.org/viewvc/llvm-project?rev=319590&view=rev
Log:
[libFuzzer] add a flag -malloc_limit_mb
Modified:
llvm/trunk/docs/LibFuzzer.rst
Modified: llvm/trunk/docs/LibFuzzer.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LibFuzzer.rst?rev=319590&r1=319589&r2=319590&view=diff
==============================================================================
--- llvm/trunk/docs/LibFuzzer.rst (original)
+++ llvm/trunk/docs/LibFuzzer.rst Fri Dec 1 14:12:04 2017
@@ -246,6 +246,10 @@ The most important command line options
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``
More information about the llvm-commits
mailing list