fix 32-bit mode, fix weighting

This commit is contained in:
van Hauser
2020-12-30 10:34:22 +01:00
parent 5d560c1ece
commit 0246fe9200
5 changed files with 51 additions and 37 deletions

View File

@ -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 */
/* 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) {