mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
set max testcache entries automated if not specified by the user
This commit is contained in:
@ -103,7 +103,8 @@ void afl_state_init(afl_state_t *afl, uint32_t map_size) {
|
||||
afl->stats_avg_exec = -1;
|
||||
afl->skip_deterministic = 1;
|
||||
afl->use_splicing = 1;
|
||||
afl->q_testcase_max_cache_size = TESTCASE_CACHE * 1024000;
|
||||
afl->q_testcase_max_cache_size = TESTCASE_CACHE_SIZE * 1048576UL;
|
||||
afl->q_testcase_max_cache_entries = 4096;
|
||||
|
||||
#ifdef HAVE_AFFINITY
|
||||
afl->cpu_aff = -1; /* Selected CPU core */
|
||||
@ -361,6 +362,13 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
|
||||
afl->afl_env.afl_testcache_size =
|
||||
(u8 *)get_afl_env(afl_environment_variables[i]);
|
||||
|
||||
} else if (!strncmp(env, "AFL_TESTCACHE_ENTRIES",
|
||||
|
||||
afl_environment_variable_len)) {
|
||||
|
||||
afl->afl_env.afl_testcache_entries =
|
||||
(u8 *)get_afl_env(afl_environment_variables[i]);
|
||||
|
||||
} else if (!strncmp(env, "AFL_STATSD_HOST",
|
||||
|
||||
afl_environment_variable_len)) {
|
||||
|
Reference in New Issue
Block a user