Prevent afl-fuzz from modifying stage_max during fuzzing

This commit is contained in:
h1994st
2020-08-27 00:32:53 -04:00
parent 3e8beaafc8
commit 9a6a32775f

View File

@ -1767,6 +1767,8 @@ custom_mutator_stage:
}
if (!el->afl_custom_fuzz_count) {
/* If we're finding new stuff, let's run for a bit longer, limits
permitting. */
@ -1785,6 +1787,8 @@ custom_mutator_stage:
}
}
/* `(afl->)out_buf` may have been changed by the call to custom_fuzz
*/
/* TODO: Only do this when `mutated_buf` == `out_buf`? Branch vs