Commit f6936562b27f5716fa82c4d29767932319d211c0

Authored by Danny Al-Gaaf
1 parent cb87c41f
Exists in master and in 3 other branches v2, v3, wip-18092

gf_w32.c: fix dereference of undefined pointer value

Check for array boundaries of 't' in while loop header.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/gf_w32.c
... ... @@ -1482,7 +1482,7 @@ gf_w32_split_16_32_lazy_multiply_region(gf_t *gf, void *src, void *dest, uint32_
1482 1482 p = (xor) ? *d32 : 0;
1483 1483 a = *s32;
1484 1484 i = 0;
1485   - while (a != 0) {
  1485 + while (a != 0 && i < 2) {
1486 1486 v = (a & 0xffff);
1487 1487 p ^= t[i][v];
1488 1488 a >>= 16;
... ...