aboutsummaryrefslogtreecommitdiff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index 3ea10d38..01e29d38 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -560,9 +560,9 @@ static void set_up_environment(void) {
}
if (qemu_preload)
- buf = alloc_printf("%s,LD_PRELOAD=%s", qemu_preload, afl_preload);
+ buf = alloc_printf("%s,LD_PRELOAD=%s,DYLD_INSERT_LIBRARIES=%s", qemu_preload, afl_preload, afl_preload);
else
- buf = alloc_printf("LD_PRELOAD=%s", afl_preload);
+ buf = alloc_printf("LD_PRELOAD=%s,DYLD_INSERT_LIBRARIES=%s", afl_preload, afl_preload);
setenv("QEMU_SET_ENV", buf, 1);
@@ -647,8 +647,15 @@ static void usage(u8* argv0) {
" -c - allow core dumps\n\n"
"This tool displays raw tuple data captured by AFL instrumentation.\n"
- "For additional help, consult %s/README.md.\n",
- argv0, MEM_LIMIT, doc_path);
+ "For additional help, consult %s/README.md.\n\n"
+
+ "Environment variables used:\n"
+ "AFL_PRELOAD: LD_PRELOAD / DYLD_INSERT_LIBRARIES settings for target\n"
+ "AFL_DEBUG: enable extra developer output\n"
+ "AFL_CMIN_CRASHES_ONLY: (cmin_mode) only write tuples for crashing inputs\n"
+ "AFL_CMIN_ALLOW_ANY: (cmin_mode) write tuples for crashing inputs also\n"
+ "LD_BIND_LAZY: do not set LD_BIND_NOW env var for target\n"
+ , argv0, MEM_LIMIT, doc_path);
exit(1);