diff options
| author | Mikko Rapeli <mikko.rapeli@bmw.de> | 2021-01-15 12:54:37 +0200 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2021-01-28 17:18:02 -0800 |
| commit | 80c0a5fff685f5c5b8f484fbba3d6837912a31b7 (patch) | |
| tree | 708175443e9f4eb942458f7118fbc23b80ba32e4 /meta-oe/recipes-devtools/giflib/files | |
| parent | 52967af42380080a89f70c4c91bbaeca2a37b9f9 (diff) | |
| download | meta-openembedded-80c0a5fff685f5c5b8f484fbba3d6837912a31b7.tar.gz | |
giflib: apply patch for CVE-2019-15133 and set CVE_PRODUCT
Backport upstream patch for CVE-2019-15133.
Set CVE_PRODUCT to "giflib_project:giflib" which is used
in NVD. https://nvd.nist.gov/vuln/detail/CVE-2019-15133
Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/giflib/files')
| -rw-r--r-- | meta-oe/recipes-devtools/giflib/files/CVE-2019-15133.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/giflib/files/CVE-2019-15133.patch b/meta-oe/recipes-devtools/giflib/files/CVE-2019-15133.patch new file mode 100644 index 0000000000..9957be82f3 --- /dev/null +++ b/meta-oe/recipes-devtools/giflib/files/CVE-2019-15133.patch | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | From 799eb6a3af8a3dd81e2429bf11a72a57e541f908 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Eric S. Raymond" <esr@thyrsus.com> | ||
| 3 | Date: Sun, 17 Mar 2019 12:37:21 -0400 | ||
| 4 | Subject: [PATCH] Address SF bug #119: MemorySanitizer: FPE on unknown address | ||
| 5 | |||
| 6 | --- | ||
| 7 | dgif_lib.c | 2 +- | ||
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 9 | |||
| 10 | Upstream-status: Backport [https://sourceforge.net/p/giflib/code/ci/799eb6a3af8a3dd81e2429bf11a72a57e541f908/] | ||
| 11 | CVE: CVE-2019-15133 | ||
| 12 | |||
| 13 | --- a/lib/dgif_lib.c 2021-01-13 19:28:18.923493586 +0100 | ||
| 14 | +++ b/lib/dgif_lib.c 2021-01-13 19:28:55.245863085 +0100 | ||
| 15 | @@ -1099,7 +1099,7 @@ DGifSlurp(GifFileType *GifFile) | ||
| 16 | |||
| 17 | sp = &GifFile->SavedImages[GifFile->ImageCount - 1]; | ||
| 18 | /* Allocate memory for the image */ | ||
| 19 | - if (sp->ImageDesc.Width < 0 && sp->ImageDesc.Height < 0 && | ||
| 20 | + if (sp->ImageDesc.Width <= 0 && sp->ImageDesc.Height <= 0 && | ||
| 21 | sp->ImageDesc.Width > (INT_MAX / sp->ImageDesc.Height)) { | ||
| 22 | return GIF_ERROR; | ||
| 23 | } | ||
