about summary refs log tree commit diff
diff options
context:
space:
mode:
authortl455047 <tl445047925@gmail.com>2021-11-07 20:28:03 +0800
committertl455047 <tl445047925@gmail.com>2021-11-07 20:28:03 +0800
commit92c91f25f0abc2eb4b8eccbe9b89f433a08eeaba (patch)
treebe0ec5055cb6f2bf5d7a3c0f46c9c2341cddde7c
parent9325a4fcbb8eb4ed1d71f93de5301bf1a9a68253 (diff)
downloadafl++-92c91f25f0abc2eb4b8eccbe9b89f433a08eeaba.tar.gz
Fix index of cmp_map->log[key].
-rw-r--r--src/afl-fuzz-redqueen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c
index f6a7f3e6..a1d6e021 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -1669,7 +1669,7 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
     for (j = 0; j < i; ++j) {
 
       if (afl->shm.cmp_map->log[key][j].v0 == o->v0 &&
-          afl->shm.cmp_map->log[key][i].v1 == o->v1) {
+          afl->shm.cmp_map->log[key][j].v1 == o->v1) {
 
         goto cmp_fuzz_next_iter;