about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-02-25 20:54:08 +0100
committerhexcoder- <heiko@hexco.de>2020-02-25 20:54:08 +0100
commit4bd736e1a79ada95ae4266be72c331106e580075 (patch)
treeafd1955f38985a93fa4a22123dd09eceb11d14e4 /src
parentd39830a4dc822b2ee0d6846587a3089259f5447f (diff)
downloadafl++-4bd736e1a79ada95ae4266be72c331106e580075.tar.gz
more env info for afl-plot and afl-analyze
Diffstat (limited to 'src')
-rw-r--r--src/afl-analyze.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/afl-analyze.c b/src/afl-analyze.c
index 3b91285c..2f9b0550 100644
--- a/src/afl-analyze.c
+++ b/src/afl-analyze.c
@@ -798,9 +798,19 @@ static void usage(u8* argv0) {
 
       "  -e            - look for edge coverage only, ignore hit counts\n\n"
 
-      "For additional tips, please consult %s/README.md.\n\n",
-
-      argv0, EXEC_TIMEOUT, MEM_LIMIT, doc_path);
+      "For additional tips, please consult %s/README.md.\n\n"
+
+      "Environment variables used:\n"
+      "TMPDIR: directory to use for temporary input files\n"
+      "ASAN_OPTIONS: custom settings for ASAN\n"
+      "              (must contain abort_on_error=1 and symbolize=0)\n"
+      "MSAN_OPTIONS: custom settings for MSAN\n"
+      "              (must contain exitcode="STRINGIFY(MSAN_ERROR)" and symbolize=0)\n"
+      "AFL_PRELOAD: LD_PRELOAD settings for target\n"
+      "AFL_ANALYZE_HEX: print file offsets in hexadecimal instead of decimal\n"
+      "AFL_SKIP_BIN_CHECK: skip checking the location of and the target\n"
+
+      , argv0, EXEC_TIMEOUT, MEM_LIMIT, doc_path);
 
   exit(1);