This patch fixes 7 memory safety issues across giflib:
- gifalloc.c (GifUnionColorMap): Heap OOB read/write - CrntSlot guard + off-by-one fix
- gifalloc.c (GifApplyTranslation): Integer overflow in Width*Height
- gifalloc.c (GifMakeSavedImage): Integer overflow in raster allocation → heap buffer overflow
- gifalloc.c (GifAddExtensionBlock): Uninitialized heap memory disclosure
- egif_lib.c + dgif_lib.c: Signed integer overflow in PixelCount on 32-bit
- egif_lib.c (EGifSpew): Signed overflow in row pointer arithmetic
- quantize.c (GifQuantizeBuffer): Stack buffer overflow + Width*Height overflow
the patch is very strange. Could you please clarify how is it supposed to be applied?
Note: it patches files like vp8/encoder/onyx_if.c