Fix potential endless loop in custom_mutator_stage

Co-authored-by: Ivan Gulakov <gulakov@ispras.ru>
This commit is contained in:
Vitalii Akolzin
2020-09-24 18:25:32 +03:00
parent 60ef1f7305
commit 888d63748a
4 changed files with 50 additions and 29 deletions

View File

@ -155,6 +155,8 @@ void afl_state_init(afl_state_t *afl, uint32_t map_size) {
afl->stats_last_execs = 0;
afl->stats_avg_exec = -1;
afl->ready_for_splicing_count = 0;
init_mopt_globals(afl);
list_append(&afl_states, afl);