mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 17:21:33 +00:00
Merge pull request #526 from h1994st/dev
Prevent afl-fuzz from modifying stage_max during fuzzing
This commit is contained in:
commit
b44620f0b0
@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user