about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-12-29 19:53:56 +0100
committerhexcoder- <heiko@hexco.de>2020-12-29 19:53:56 +0100
commitd687fbdfb4d3fc1485c9ab9d46da2546ae243f4a (patch)
tree00f7418c3bf57deedaa52691c4ed43240082fc39 /src
parente9a306a50eee1444ae40b961fbc8d942541348ca (diff)
downloadafl++-d687fbdfb4d3fc1485c9ab9d46da2546ae243f4a.tar.gz
fix CodeQL warning on theoretically possible unsigned overflow
Diffstat (limited to 'src')
-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 9a9ac33f..5b3ade1d 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -456,7 +456,7 @@ static u8 cmp_extend_encoding(afl_state_t *afl, struct cmp_header *h,
 
   }
 
-  if (SHAPE_BYTES(h->shape) >= 1 && *status != 1) {
+  if (/* SHAPE_BYTES(h->shape) >= 1 && */ *status != 1) { /* avoid CodeQL warning on unsigned overflow */
 
     if (its_len >= 1 && *buf_8 == (u8)pattern && *o_buf_8 == (u8)o_pattern) {