fix afl_preload issues on macos

This commit is contained in:
vanhauser-thc
2021-08-02 10:15:13 +02:00
parent 382439b58f
commit 8ad6e7c140
3 changed files with 5 additions and 3 deletions

View File

@ -1398,6 +1398,9 @@ int main(int argc, char **argv_orig, char **envp) {
afl->fsrv.use_fauxsrv = afl->non_instrumented_mode == 1 || afl->no_forkserver;
check_crash_handling();
check_cpu_governor(afl);
if (getenv("LD_PRELOAD")) {
WARNF(
@ -1498,8 +1501,6 @@ int main(int argc, char **argv_orig, char **envp) {
}
check_crash_handling();
check_cpu_governor(afl);
get_core_count(afl);