about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-redqueen.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c
index bc83c9ed..03a25903 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -1955,10 +1955,10 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
     }
 
     // TODO: add attribute? not sure
-    if (hshape <= 8 && !hashmap_search_and_add(hshape - 1, o->v0) &&
-        !hashmap_search_and_add(hshape - 1, orig_o->v0) &&
-        !hashmap_search_and_add(hshape - 1, o->v1) &&
-        !hashmap_search_and_add(hshape - 1, orig_o->v1)) {
+    if (hshape <= 8 && hashmap_search_and_add(hshape - 1, o->v0) &&
+        hashmap_search_and_add(hshape - 1, orig_o->v0) &&
+        hashmap_search_and_add(hshape - 1, o->v1) &&
+        hashmap_search_and_add(hshape - 1, orig_o->v1)) {
 
       continue;
 
@@ -2775,10 +2775,10 @@ static u8 rtn_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
     fprintf(stderr, "\n");
 #endif
 
-    if (hshape <= 8 && !hashmap_search_and_add_ptr(hshape - 1, o->v0) &&
-        !hashmap_search_and_add_ptr(hshape - 1, orig_o->v0) &&
-        !hashmap_search_and_add_ptr(hshape - 1, o->v1) &&
-        !hashmap_search_and_add_ptr(hshape - 1, orig_o->v1)) {
+    if (hshape <= 8 && hashmap_search_and_add_ptr(hshape - 1, o->v0) &&
+        hashmap_search_and_add_ptr(hshape - 1, orig_o->v0) &&
+        hashmap_search_and_add_ptr(hshape - 1, o->v1) &&
+        hashmap_search_and_add_ptr(hshape - 1, orig_o->v1)) {
 
       continue;