about summary refs log tree commit diff
path: root/src/afl-analyze.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-02-28 03:31:50 +0100
committerhexcoder- <heiko@hexco.de>2020-02-28 03:31:50 +0100
commitcaa8fea8e2cf977ef565ea2bd9de2e606af1da49 (patch)
treeedbf9eddf66b7e1de865a9f06a7be64b84b4a62d /src/afl-analyze.c
parent212e5d1a720cc52b8d7c674cb65586e4fe82a3b0 (diff)
downloadafl++-caa8fea8e2cf977ef565ea2bd9de2e606af1da49.tar.gz
add env info to afl-showmap, in qemu_mode add forgotten MacOSX env var to afl-analyze, afl-fuzz, afl-tmin
Diffstat (limited to 'src/afl-analyze.c')
-rw-r--r--src/afl-analyze.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-analyze.c b/src/afl-analyze.c
index 4b0b1a6a..f566d3fe 100644
--- a/src/afl-analyze.c
+++ b/src/afl-analyze.c
@@ -728,9 +728,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);
 
@@ -806,7 +806,7 @@ static void usage(u8* argv0) {
       "              (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_PRELOAD: LD_PRELOAD / DYLD_INSERT_LIBRARIES 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"