minor opt

This commit is contained in:
van Hauser
2020-07-29 11:56:38 +02:00
parent 6cfa27d78a
commit f32811922e
2 changed files with 2 additions and 4 deletions

View File

@ -1866,7 +1866,6 @@ havoc_stage:
cycle without finds happened */
r_max = 16 + ((afl->extras_cnt + afl->a_extras_cnt) ? 2 : 0);
/* + (afl->queue_cur->is_ascii ? AFL_TXT_BIAS : 0); */
} else {
@ -1916,8 +1915,6 @@ havoc_stage:
}
// retry_havoc:
switch ((r = rand_below(afl, r_max))) {
case 0:

View File

@ -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);
}