mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
Merge pull request #526 from h1994st/dev
Prevent afl-fuzz from modifying stage_max during fuzzing
This commit is contained in:
@ -1767,20 +1767,24 @@ custom_mutator_stage:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we're finding new stuff, let's run for a bit longer, limits
|
if (!el->afl_custom_fuzz_count) {
|
||||||
permitting. */
|
|
||||||
|
|
||||||
if (afl->queued_paths != havoc_queued) {
|
/* If we're finding new stuff, let's run for a bit longer, limits
|
||||||
|
permitting. */
|
||||||
|
|
||||||
if (perf_score <= afl->havoc_max_mult * 100) {
|
if (afl->queued_paths != havoc_queued) {
|
||||||
|
|
||||||
afl->stage_max *= 2;
|
if (perf_score <= afl->havoc_max_mult * 100) {
|
||||||
perf_score *= 2;
|
|
||||||
|
afl->stage_max *= 2;
|
||||||
|
perf_score *= 2;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
havoc_queued = afl->queued_paths;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
havoc_queued = afl->queued_paths;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user