mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
fix mopt random selection
This commit is contained in:
@ -4578,7 +4578,7 @@ pacemaker_fuzzing:
|
|||||||
|
|
||||||
u32 r_max, r;
|
u32 r_max, r;
|
||||||
|
|
||||||
r_max = 15 + ((afl->extras_cnt + afl->a_extras_cnt) ? 2 : 0);
|
r_max = 16 + ((afl->extras_cnt + afl->a_extras_cnt) ? 2 : 0);
|
||||||
|
|
||||||
if (unlikely(afl->expand_havoc && afl->ready_for_splicing_count > 1)) {
|
if (unlikely(afl->expand_havoc && afl->ready_for_splicing_count > 1)) {
|
||||||
|
|
||||||
@ -5033,7 +5033,7 @@ pacemaker_fuzzing:
|
|||||||
/* Values 16 and 17 can be selected only if there are any extras
|
/* Values 16 and 17 can be selected only if there are any extras
|
||||||
present in the dictionaries. */
|
present in the dictionaries. */
|
||||||
|
|
||||||
r -= 16;
|
r -= 15;
|
||||||
|
|
||||||
if (r == 0 && (afl->extras_cnt || afl->a_extras_cnt)) {
|
if (r == 0 && (afl->extras_cnt || afl->a_extras_cnt)) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user