Patching and improving AFLFast schedules.

This commit is contained in:
Marcel Boehme
2020-09-29 11:53:27 +00:00
parent e69b25e34b
commit e87eca7fe8
6 changed files with 81 additions and 48 deletions

View File

@ -936,6 +936,13 @@ int main(int argc, char **argv_orig, char **envp) {
}
/* Dynamically allocate memory for AFLFast schedules */
if (afl->schedule >= FAST && afl->schedule <= RARE) {
afl->n_fuzz = ck_alloc(n_fuzz_size * sizeof(u32));
}
if (get_afl_env("AFL_NO_FORKSRV")) { afl->no_forkserver = 1; }
if (get_afl_env("AFL_NO_CPU_RED")) { afl->no_cpu_meter_red = 1; }
if (get_afl_env("AFL_NO_ARITH")) { afl->no_arith = 1; }