about summary refs log tree commit diff
path: root/qemu_mode/libcompcov/README.compcov
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-08-21 00:40:12 -0700
committerGitHub <noreply@github.com>2019-08-21 00:40:12 -0700
commitfcc349467f41b2e7414f925d3ef3bbbdc61bac8a (patch)
tree161c52778d5e4943f2e106a2acf6667ceab3ba2e /qemu_mode/libcompcov/README.compcov
parentcc55e5c6d8ead610606649fa5aad39671f55bece (diff)
parentd6beac5235118b251deb18a6579aab85271eaa7b (diff)
downloadafl++-fcc349467f41b2e7414f925d3ef3bbbdc61bac8a.tar.gz
Merge pull request #47 from vanhauser-thc/immediates-compcov
compcov levels to enable the instrumentation of only comparisons with immediates
Diffstat (limited to 'qemu_mode/libcompcov/README.compcov')
-rw-r--r--qemu_mode/libcompcov/README.compcov8
1 files changed, 6 insertions, 2 deletions
diff --git a/qemu_mode/libcompcov/README.compcov b/qemu_mode/libcompcov/README.compcov
index 2a4a0ee5..9be13d88 100644
--- a/qemu_mode/libcompcov/README.compcov
+++ b/qemu_mode/libcompcov/README.compcov
@@ -18,15 +18,19 @@ For optimized binaries this is an issue, those functions are often inlined
 and this module is not capable to log the coverage in this case.
 
 If you have the source code of the fuzzing target you should nto use this
-library and QEMU but build ot with afl-clang-fast and the laf-intel options.
+library and QEMU but build it with afl-clang-fast and the laf-intel options.
 
 To use this library make sure to preload it with AFL_PRELOAD.
 
   export AFL_PRELOAD=/path/to/libcompcov.so
-  export AFL_QEMU_COMPCOV=1
+  export AFL_COMPCOV_LEVEL=1
   
   afl-fuzz -Q -i input -o output <your options> -- <target args>
 
+The AFL_COMPCOV_LEVEL tells to QEMU and libcompcov how to log comaprisons.
+Level 1 logs just comparison with immediates / read-only memory and level 2
+logs all the comparisons.
+
 The library make use of https://github.com/ouadev/proc_maps_parser and so it is
 Linux specific. However this is not a strict dependency, other UNIX operating
 systems can be supported simply replacing the code related to the