about summary refs log tree commit diff
path: root/docs/fuzzing_in_depth.md
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-12-30 10:38:10 +0100
committerGitHub <noreply@github.com>2021-12-30 10:38:10 +0100
commitcda84594cccf3f6d2d674d4eb99d449d205fa4ab (patch)
treede891256529cb5143923e1db9da60239b6868a33 /docs/fuzzing_in_depth.md
parentfd9f61a8c5c4df80a313945f323e12749470f88b (diff)
parent8b75680c7a142bfea0f4147aaa5bef9997b47d6c (diff)
downloadafl++-cda84594cccf3f6d2d674d4eb99d449d205fa4ab.tar.gz
Merge pull request #1237 from MegaManSec/dev
Fix LeakSanitizer Usage.
Diffstat (limited to 'docs/fuzzing_in_depth.md')
-rw-r--r--docs/fuzzing_in_depth.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/fuzzing_in_depth.md b/docs/fuzzing_in_depth.md
index 760d780e..65a6de3d 100644
--- a/docs/fuzzing_in_depth.md
+++ b/docs/fuzzing_in_depth.md
@@ -201,7 +201,10 @@ The following sanitizers have built-in support in AFL++:
   security issue, but for developers this can be very valuable. Note that unlike
   the other sanitizers above this needs `__AFL_LEAK_CHECK();` added to all areas
   of the target source code where you find a leak check necessary! Enabled with
-  `export AFL_USE_LSAN=1` before compiling.
+  `export AFL_USE_LSAN=1` before compiling. To ignore the memory-leaking check
+  for certain allocations, `__AFL_LSAN_OFF();` can be used before memory is 
+  allocated, and `__AFL_LSAN_OFF;` afterwards. Memory allocated between these
+  two macros will not be checked for memory leaks.
 
 It is possible to further modify the behavior of the sanitizers at run-time by
 setting `ASAN_OPTIONS=...`, `LSAN_OPTIONS` etc. - the available parameters can
@@ -890,4 +893,4 @@ covered.
 
 Note that there are also a lot of tools out there that help fuzzing with AFL++
 (some might be deprecated or unsupported), see
-[third_party_tools.md](third_party_tools.md).
\ No newline at end of file
+[third_party_tools.md](third_party_tools.md).