* CVE-2019-6977 [bsc#1123361]

+ php-CVE-2019-6977.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/gd?expand=0&rev=52
This commit is contained in:
Petr Gajdos 2019-02-04 09:23:05 +00:00 committed by Git OBS Bridge
parent 3efdffe692
commit b812ad1de1
3 changed files with 19 additions and 0 deletions

15
gd-CVE-2019-6977.patch Normal file
View File

@ -0,0 +1,15 @@
Index: libgd-2.2.5/src/gd_color_match.c
===================================================================
--- libgd-2.2.5.orig/src/gd_color_match.c 2019-01-31 12:56:44.944336318 +0100
+++ libgd-2.2.5/src/gd_color_match.c 2019-01-31 12:58:11.368836899 +0100
@@ -31,8 +31,8 @@ BGD_DECLARE(int) gdImageColorMatch (gdIm
return -4; /* At least 1 color must be allocated */
}
- buf = (unsigned long *)gdMalloc(sizeof(unsigned long) * 5 * im2->colorsTotal);
- memset (buf, 0, sizeof(unsigned long) * 5 * im2->colorsTotal );
+ buf = (unsigned long *)gdMalloc(sizeof(unsigned long) * 5 * gdMaxColors);
+ memset (buf, 0, sizeof(unsigned long) * 5 * gdMaxColors );
for (x=0; x < im1->sx; x++) {
for( y=0; y<im1->sy; y++ ) {

View File

@ -4,6 +4,8 @@ Thu Jan 31 11:23:17 UTC 2019 - Petr Gajdos <pgajdos@suse.com>
- security update
* CVE-2019-6978 [bsc#1123522]
+ gd-CVE-2019-6978.patch
* CVE-2019-6977 [bsc#1123361]
+ php-CVE-2019-6977.patch
-------------------------------------------------------------------
Thu Dec 13 16:24:15 UTC 2018 - meissner@suse.com

View File

@ -37,6 +37,7 @@ Patch4: gd-CVE-2018-5711.patch
Patch5: libgd-config.patch
Patch6: gd-CVE-2018-1000222.patch
Patch7: gd-CVE-2019-6978.patch
Patch8: gd-CVE-2019-6977.patch
# needed for tests
BuildRequires: dejavu
BuildRequires: libjpeg-devel
@ -88,6 +89,7 @@ the formats accepted for inline images by most browsers.
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
chmod 644 COPYING
%build