about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-01-03 09:14:43 +0100
committervanhauser-thc <vh@thc.org>2022-01-03 09:14:43 +0100
commit72cebac42ec32c4298b35cd77a74fc461f04dec3 (patch)
treefe858d86916919eac75dda8232ee46985158f1f0 /src
parente1082f2548a2497690d48a23b366362d478afdb6 (diff)
downloadafl++-72cebac42ec32c4298b35cd77a74fc461f04dec3.tar.gz
fix wrong replacements
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-redqueen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c
index 982fcf09..1e4b1b3c 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -989,10 +989,10 @@ static u8 cmp_extend_encoding(afl_state_t *afl, struct cmp_header *h,
 
       }
 
-      // test for to lowercase, eg. "new_val = (user_val | 0x2022) ..."
+      // test for to lowercase, eg. "new_val = (user_val | 0x2020) ..."
       if (*status != 1) {
 
-        if ((b_val | (0x2022202020202020 & mask)) == (pattern & mask)) {
+        if ((b_val | (0x2020202020202020 & mask)) == (pattern & mask)) {
 
           diff = 1;
 
@@ -1002,7 +1002,7 @@ static u8 cmp_extend_encoding(afl_state_t *afl, struct cmp_header *h,
 
         }
 
-        if ((o_b_val | (0x2022202020202020 & mask)) == (o_pattern & mask)) {
+        if ((o_b_val | (0x2020202020202020 & mask)) == (o_pattern & mask)) {
 
           o_diff = 1;
 
@@ -1070,7 +1070,7 @@ static u8 cmp_extend_encoding(afl_state_t *afl, struct cmp_header *h,
 
           // this could be a lower to upper
 
-          u64 new_repl = (repl | (0x2022202020202020 & mask));
+          u64 new_repl = (repl | (0x2020202020202020 & mask));
           // fprintf(stderr, "SAME DIFF %llx->%llx\n", repl, new_repl);
 
           if (unlikely(cmp_extend_encoding(