mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
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
|
||||
permitting. */
|
||||
if (!el->afl_custom_fuzz_count) {
|
||||
|
||||
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;
|
||||
perf_score *= 2;
|
||||
if (perf_score <= afl->havoc_max_mult * 100) {
|
||||
|
||||
afl->stage_max *= 2;
|
||||
perf_score *= 2;
|
||||
|
||||
}
|
||||
|
||||
havoc_queued = afl->queued_paths;
|
||||
|
||||
}
|
||||
|
||||
havoc_queued = afl->queued_paths;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user