From caa8fea8e2cf977ef565ea2bd9de2e606af1da49 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Fri, 28 Feb 2020 03:31:50 +0100 Subject: add env info to afl-showmap, in qemu_mode add forgotten MacOSX env var to afl-analyze, afl-fuzz, afl-tmin --- src/afl-fuzz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/afl-fuzz.c') diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index e81c7d9f..dc033713 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -717,7 +717,7 @@ int main(int argc, char** argv, char** envp) { if (getenv("LD_PRELOAD")) WARNF( - "LD_PRELOAD is set, are you sure that is want to you want to do " + "LD_PRELOAD is set, are you sure that is what to you want to do " "instead of using AFL_PRELOAD?"); if (getenv("AFL_PRELOAD")) { @@ -739,9 +739,9 @@ int main(int argc, char** argv, char** envp) { } 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); -- cgit 1.4.1