mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user