-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
giflib: 5.2.1 -> 5.2.2, apply patch for CVE-2021-40633
Fixes CVE-2023-48161, CVE-2023-39742 and CVE-2021-40633. Changes: https://sourceforge.net/p/giflib/code/ci/5.2.2/tree/NEWS
- Loading branch information
Showing
2 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From ccbc956432650734c91acb3fc88837f7b81267ff Mon Sep 17 00:00:00 2001 | ||
From: "Eric S. Raymond" <esr@thyrsus.com> | ||
Date: Wed, 21 Feb 2024 18:55:00 -0500 | ||
Subject: [PATCH] Clean up memory better at end of run (CVE-2021-40633) | ||
|
||
--- | ||
gif2rgb.c | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/gif2rgb.c b/gif2rgb.c | ||
index d51226d..fc2e683 100644 | ||
--- a/gif2rgb.c | ||
+++ b/gif2rgb.c | ||
@@ -517,6 +517,9 @@ static void GIF2RGB(int NumFiles, char *FileName, bool OneFileFlag, | ||
DumpScreen2RGB(OutFileName, OneFileFlag, ColorMap, ScreenBuffer, | ||
GifFile->SWidth, GifFile->SHeight); | ||
|
||
+ for (i = 0; i < GifFile->SHeight; i++) { | ||
+ (void)free(ScreenBuffer[i]); | ||
+ } | ||
(void)free(ScreenBuffer); | ||
|
||
{ | ||
-- | ||
2.44.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters