forked from pool/giflib
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/giflib?expand=0&rev=65
15 lines
571 B
Diff
15 lines
571 B
Diff
--- giflib-5.2.2/gif2rgb.c 2024-02-19 04:01:28.000000000 +0100
|
|
+++ giflib-5.2.2/gif2rgb.c 2025-04-01 08:46:15.097464811 +0200
|
|
@@ -329,6 +329,11 @@
|
|
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;
|