mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 17:51:32 +00:00
fix CodeQL warning on theoretically possible unsigned overflow
This commit is contained in:
parent
e9a306a50e
commit
d687fbdfb4
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user