mirror of
https://git.openwrt.org/feed/packages.git
synced 2025-12-20 01:20:12 +08:00
Fixes:
CVE-2022-28506
CVE-2023-48161
CVE-2024-45993
CVE-2025-31344
Remove myself as maintainer
Signed-off-by: Ted Hess <thess@kitschensync.net>
14 lines
507 B
Diff
14 lines
507 B
Diff
--- a/gif2rgb.c
|
|
+++ b/gif2rgb.c
|
|
@@ -329,6 +329,10 @@ static void DumpScreen2RGB(char *FileNam
|
|
GifRow = ScreenBuffer[i];
|
|
GifQprintf("\b\b\b\b%-4d", ScreenHeight - i);
|
|
for (j = 0; j < ScreenWidth; j++) {
|
|
+ /* Check if color is within color palete */
|
|
+ if (GifRow[j] >= ColorMap->ColorCount) {
|
|
+ GIF_EXIT(GifErrorString(D_GIF_ERR_IMAGE_DEFECT));
|
|
+ }
|
|
ColorMapEntry = &ColorMap->Colors[GifRow[j]];
|
|
Buffers[0][j] = ColorMapEntry->Red;
|
|
Buffers[1][j] = ColorMapEntry->Green;
|