/[smeserver]/rpms/php/sme8/php-5.3.3-CVE-2014-2497.patch
ViewVC logotype

Annotation of /rpms/php/sme8/php-5.3.3-CVE-2014-2497.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sat Oct 18 10:16:16 2014 UTC (9 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: php-5_3_3-17_el5_sme, php-5_3_3-16_el5_sme, HEAD
* Sat Oct 18 2014 Daniel Berteaud <daniel@firewall-services.com> - 5.3.3-16.sme
- Resync with upstream php53, which include (see [SME: 8574])
- spl: fix use-after-free in ArrayIterator due to object
  change during sorting. CVE-2014-4698
- spl: fix use-after-free in SPL Iterators. CVE-2014-4670
- gd: fix NULL pointer dereference in gdImageCreateFromXpm.
  CVE-2014-2497
- fileinfo: fix incomplete fix for CVE-2012-1571 in
  cdf_read_property_info. CVE-2014-3587
- core: fix incomplete fix for CVE-2014-4049 DNS TXT
  record parsing. CVE-2014-3597

1 vip-ire 1.1 From cf4753691dc55999373d1c576f62ecb298723420 Mon Sep 17 00:00:00 2001
2     From: Remi Collet <remi@php.net>
3     Date: Mon, 4 Aug 2014 10:42:39 +0200
4     Subject: [PATCH] Fixed Bug #66901 php-gd 'c_color' NULL pointer dereference
5    
6     Upstream https://bitbucket.org/libgd/gd-libgd/commits/463c3bd09bfe8e924e19acad7a2a6af16953a704
7    
8     Notice: this fix don't manage monochrome/monovisual values
9     but just fix the security issue CVE-2014-2497
10     failing when trying to load such an image
11     ---
12     ext/gd/libgd/gdxpm.c | 7 ++++++-
13     1 file changed, 6 insertions(+), 1 deletion(-)
14    
15     diff --git a/ext/gd/libgd/gdxpm.c b/ext/gd/libgd/gdxpm.c
16     index 73f86e5..b69414e 100644
17     --- a/ext/gd/libgd/gdxpm.c
18     +++ b/ext/gd/libgd/gdxpm.c
19     @@ -31,12 +31,17 @@ gdImagePtr gdImageCreateFromXpm (char *filename)
20     if (ret != XpmSuccess) {
21     return 0;
22     }
23     + number = image.ncolors;
24     + for(i = 0; i < number; i++) {
25     + if (!image.colorTable[i].c_color) {
26     + goto done;
27     + }
28     + }
29    
30     if (!(im = gdImageCreate(image.width, image.height))) {
31     goto done;
32     }
33    
34     - number = image.ncolors;
35     colors = (int *) safe_emalloc(number, sizeof(int), 0);
36     for (i = 0; i < number; i++) {
37     switch (strlen (image.colorTable[i].c_color)) {
38     --
39     1.9.2
40    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed