about summary refs log tree commit diff
path: root/src/afl-fuzz-redqueen.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-12-30 18:13:55 +0100
committerGitHub <noreply@github.com>2020-12-30 18:13:55 +0100
commit271116f8705e08d1b4f924cda6c6cae1b0b5de2b (patch)
tree536764d6f6c37eb07ebb028b0b1b10967095027f /src/afl-fuzz-redqueen.c
parent41dad9ab7d342528e95a1700501753a24031ea51 (diff)
parent84e72b0a514ae2cd08c42c1fdcb3d50b78344640 (diff)
downloadafl++-271116f8705e08d1b4f924cda6c6cae1b0b5de2b.tar.gz
Merge pull request #666 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-fuzz-redqueen.c')
-rw-r--r--src/afl-fuzz-redqueen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c
index 9a9ac33f..37d66aef 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -456,7 +456,8 @@ static u8 cmp_extend_encoding(afl_state_t *afl, struct cmp_header *h,
 
   }
 
-  if (SHAPE_BYTES(h->shape) >= 1 && *status != 1) {
+  /* avoid CodeQL warning on unsigned overflow */
+  if (/* SHAPE_BYTES(h->shape) >= 1 && */ *status != 1) {
 
     if (its_len >= 1 && *buf_8 == (u8)pattern && *o_buf_8 == (u8)o_pattern) {