mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 09:11:34 +00:00
only allocate SAND memory if enabled
This commit is contained in:
parent
c6a2cf88bf
commit
57fa87ce5e
@ -1756,8 +1756,21 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
}
|
||||
|
||||
afl->n_fuzz_dup = ck_alloc(N_FUZZ_SIZE_BITMAP * sizeof(u8));
|
||||
afl->simplified_n_fuzz = ck_alloc(N_FUZZ_SIZE_BITMAP * sizeof(u8));
|
||||
if (afl->san_binary_length) {
|
||||
|
||||
if (afl->san_abstraction == UNIQUE_TRACE) {
|
||||
|
||||
afl->n_fuzz_dup = ck_alloc(N_FUZZ_SIZE_BITMAP * sizeof(u8));
|
||||
|
||||
}
|
||||
|
||||
if (afl->san_abstraction == SIMPLIFY_TRACE) {
|
||||
|
||||
afl->simplified_n_fuzz = ck_alloc(N_FUZZ_SIZE_BITMAP * sizeof(u8));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
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; }
|
||||
@ -3616,6 +3629,10 @@ stop_fuzzing:
|
||||
|
||||
}
|
||||
|
||||
ck_free(afl->n_fuzz);
|
||||
ck_free(afl->n_fuzz_dup);
|
||||
ck_free(afl->simplified_n_fuzz);
|
||||
|
||||
if (afl->orig_cmdline) { ck_free(afl->orig_cmdline); }
|
||||
ck_free(afl->fsrv.target_path);
|
||||
ck_free(afl->fsrv.out_file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user