diff options
author | hexcoder- <heiko@hexco.de> | 2020-10-15 23:30:55 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-10-15 23:30:55 +0200 |
commit | fffe53136cae30316db1578b3d7f09fca3b5bc47 (patch) | |
tree | 164c459249735d1a259b4fe4578c19daeffb05b4 /src/afl-fuzz-state.c | |
parent | bded51e4eaaa4148516a407b68264e424d0fbbd5 (diff) | |
parent | 190a9cf1e4e6cd08f83acbb9d893688b5fb00f3d (diff) | |
download | afl++-fffe53136cae30316db1578b3d7f09fca3b5bc47.tar.gz |
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'src/afl-fuzz-state.c')
-rw-r--r-- | src/afl-fuzz-state.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c index a0a2795e..0824b77f 100644 --- a/src/afl-fuzz-state.c +++ b/src/afl-fuzz-state.c @@ -103,6 +103,7 @@ 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; #ifdef HAVE_AFFINITY afl->cpu_aff = -1; /* Selected CPU core */ @@ -353,6 +354,13 @@ void read_afl_environment(afl_state_t *afl, char **envp) { afl->afl_env.afl_forksrv_init_tmout = (u8 *)get_afl_env(afl_environment_variables[i]); + } else if (!strncmp(env, "AFL_TESTCACHE_SIZE", + + afl_environment_variable_len)) { + + afl->afl_env.afl_testcache_size = + (u8 *)get_afl_env(afl_environment_variables[i]); + } else if (!strncmp(env, "AFL_STATSD_HOST", afl_environment_variable_len)) { |