add env info to afl-showmap, in qemu_mode add forgotten MacOSX env var to afl-analyze, afl-fuzz, afl-tmin

This commit is contained in:
hexcoder-
2020-02-28 03:31:50 +01:00
parent 212e5d1a72
commit caa8fea8e2
4 changed files with 20 additions and 13 deletions

View File

@ -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);