File giflib-CVE-2021-40633.patch of Package giflib.33803

--- giflib-5.0.5/util/gif2rgb.c	2024-05-10 11:18:09.487979638 +0200
+++ giflib-5.0.5/util/gif2rgb.c	2024-05-10 11:57:39.980991661 +0200
@@ -478,6 +478,9 @@
 		   ScreenBuffer, 
 		   GifFile->SWidth, GifFile->SHeight);
 
+	for (i = 0; i < GifFile->SHeight; i++) {
+        	(void)free(ScreenBuffer[i]);
+	}
     (void)free(ScreenBuffer);
 
     if (DGifCloseFile(GifFile) == GIF_ERROR) {
openSUSE Build Service is sponsored by