mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 11:28:08 +00:00
minor opt
This commit is contained in:
@ -1866,7 +1866,6 @@ havoc_stage:
|
|||||||
cycle without finds happened */
|
cycle without finds happened */
|
||||||
|
|
||||||
r_max = 16 + ((afl->extras_cnt + afl->a_extras_cnt) ? 2 : 0);
|
r_max = 16 + ((afl->extras_cnt + afl->a_extras_cnt) ? 2 : 0);
|
||||||
/* + (afl->queue_cur->is_ascii ? AFL_TXT_BIAS : 0); */
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@ -1916,8 +1915,6 @@ havoc_stage:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// retry_havoc:
|
|
||||||
|
|
||||||
switch ((r = rand_below(afl, r_max))) {
|
switch ((r = rand_below(afl, r_max))) {
|
||||||
|
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -268,7 +268,8 @@ void add_to_queue(afl_state_t *afl, u8 *fname, u32 len, u8 passed_det) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
q->is_ascii = check_if_text(q);
|
/* only redqueen currently uses is_ascii */
|
||||||
|
if (afl->shm.cmplog_mode) q->is_ascii = check_if_text(q);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user