mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 17:21:33 +00:00
expand havoc if not new findings in the last 5 seconds
This commit is contained in:
parent
5ee63a6e62
commit
fe705bb956
@ -1884,16 +1884,22 @@ havoc_stage:
|
||||
|
||||
u32 r_max, r;
|
||||
|
||||
r_max = 15 + ((afl->extras_cnt + afl->a_extras_cnt) ? 2 : 0);
|
||||
|
||||
if (unlikely(afl->expand_havoc)) {
|
||||
|
||||
/* add expensive havoc cases here, they are activated after a full
|
||||
cycle without finds happened */
|
||||
|
||||
r_max = 16 + ((afl->extras_cnt + afl->a_extras_cnt) ? 2 : 0);
|
||||
r_max += 1;
|
||||
|
||||
} else {
|
||||
}
|
||||
|
||||
if (unlikely(get_cur_time() - afl->last_path_time > 5000)) {
|
||||
|
||||
r_max = 15 + ((afl->extras_cnt + afl->a_extras_cnt) ? 2 : 0);
|
||||
/* add expensive havoc cases here if there is no findings in the last 5s */
|
||||
|
||||
r_max += 1;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user