Fix macOS env optimization

This commit is contained in:
leedongha
2024-12-26 17:46:10 +09:00
parent eee4be90c1
commit 2e2a3a2718
5 changed files with 26 additions and 3 deletions

View File

@ -233,8 +233,9 @@ static void set_up_environment(afl_forkserver_t *fsrv) {
} else {
setenv("LD_PRELOAD", getenv("AFL_PRELOAD"), 1);
#ifdef __APPLE__
setenv("DYLD_INSERT_LIBRARIES", getenv("AFL_PRELOAD"), 1);
#endif
}
}