This commit is contained in:
Dominik Maier
2020-03-27 21:59:08 +01:00
parent 5a7d33330a
commit 14bd424d2a
4 changed files with 106 additions and 60 deletions

View File

@ -79,6 +79,8 @@ list_t afl_states = {.element_prealloc_count = 0};
void afl_state_init(afl_state_t *afl) {
/* thanks to this memset, growing vars like out_buf
and out_size are NULL/0 by default. */
memset(afl, 0, sizeof(afl_state_t));
afl->w_init = 0.9;