about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-01-19 15:59:57 +0100
committervanhauser-thc <vh@thc.org>2023-01-19 15:59:57 +0100
commit86d3c65559209ce12452e18daf96946222c19b46 (patch)
tree5b30d1456367570d0f8f33cad3f2b9c2b146e33d
parentafff6f642c77e4986fdb8a4e9799c1a52e80ce32 (diff)
downloadafl++-86d3c65559209ce12452e18daf96946222c19b46.tar.gz
nit
-rw-r--r--custom_mutators/autotokens/autotokens.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/custom_mutators/autotokens/autotokens.cpp b/custom_mutators/autotokens/autotokens.cpp
index 149ae430..f4b96c7b 100644
--- a/custom_mutators/autotokens/autotokens.cpp
+++ b/custom_mutators/autotokens/autotokens.cpp
@@ -121,8 +121,7 @@ extern "C" size_t afl_custom_fuzz(my_mutator_t *data, u8 *buf, size_t buf_size,
     switch (rand_below(afl_ptr, max_rand)) {
 
       /* CHANGE/MUTATE single item */
-      case 0 ... 9:
-      {
+      case 0 ... 9: {
 
         pos = rand_below(afl_ptr, m_size);
         u32 cur_item = m[pos];
@@ -438,8 +437,9 @@ extern "C" unsigned char afl_custom_queue_get(void                *data,
 
   if (likely(!debug)) {
 
-    if ((afl_ptr->shm.cmplog_mode && !afl_ptr->queue_cur->is_ascii) ||
-        (only_fav && !afl_ptr->queue_cur->favored)) {
+    if (unlikely(!afl_ptr->custom_only) &&
+        ((afl_ptr->shm.cmplog_mode && !afl_ptr->queue_cur->is_ascii) ||
+         (only_fav && !afl_ptr->queue_cur->favored))) {
 
       s = NULL;
       DEBUGF(stderr, "cmplog not ascii or only_fav and not favorite\n");