about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-07-29 11:56:38 +0200
committervan Hauser <vh@thc.org>2020-07-29 11:56:38 +0200
commitf32811922ec8f363bdf46a019d984058dbeb06bf (patch)
tree9e683d35f517211d3f73227b0e54413087d1040b
parent6cfa27d78ab9fb178a1678bdcc36cb62a555f7a4 (diff)
downloadafl++-f32811922ec8f363bdf46a019d984058dbeb06bf.tar.gz
minor opt
-rw-r--r--src/afl-fuzz-one.c3
-rw-r--r--src/afl-fuzz-queue.c3
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);
 
 }