diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-one.c | 3 | ||||
-rw-r--r-- | src/afl-fuzz-queue.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c index a42bb0fc..1f0bf30e 100644 --- a/src/afl-fuzz-one.c +++ b/src/afl-fuzz-one.c @@ -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: diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index 56073b0a..38e95ac8 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -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); } |