Skip to contentSkip to conversation

gd: bump to version 2.1.1

PATCH New Gustavo Zacarias 2 participants 2 messages Jan 14, 2015 – Jan 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gd: bump to version 2.1.1

Also add hash file.
Remove CVE patch since it's upstream.
Rename patches to new naming convention.
Kill some whitespace.

---
 ...-gdlib-config.patch => 0001-gdlib-config.patch} |  0
 .../gd/{gd-02-no-zlib.patch => 0002-no-zlib.patch} |  0
 ...tch => 0003-gd_bmp-fix-build-with-uClibc.patch} |  0
 package/gd/gd-04-CVE-2014-2497.patch               | 33 ----------------------
 package/gd/gd.hash                                 |  2 ++
 package/gd/gd.mk                                   |  3 +-
 6 files changed, 3 insertions(+), 35 deletions(-)
 rename package/gd/{gd-01-gdlib-config.patch => 0001-gdlib-config.patch} (100%)
 rename package/gd/{gd-02-no-zlib.patch => 0002-no-zlib.patch} (100%)
 rename package/gd/{gd-03-gd_bmp-fix-build-with-uClibc.patch => 0003-gd_bmp-fix-build-with-uClibc.patch} (100%)
 delete mode 100644 package/gd/gd-04-CVE-2014-2497.patch
 create mode 100644 package/gd/gd.hash
package/gd/0001-gdlib-config.patch renamed from package/gd/gd-01-gdlib-config.patch +0 -0
similarity index 100%
rename from package/gd/gd-01-gdlib-config.patch
rename to package/gd/0001-gdlib-config.patch
package/gd/0002-no-zlib.patch renamed from package/gd/gd-02-no-zlib.patch +0 -0
similarity index 100%
rename from package/gd/gd-02-no-zlib.patch
rename to package/gd/0002-no-zlib.patch
package/gd/0003-gd_bmp-fix-build-with-uClibc.patch renamed from package/gd/gd-03-gd_bmp-fix-build-with-uClibc.patch +0 -0
similarity index 100%
rename from package/gd/gd-03-gd_bmp-fix-build-with-uClibc.patch
rename to package/gd/0003-gd_bmp-fix-build-with-uClibc.patch
package/gd/gd-04-CVE-2014-2497.patch deleted +0 -33
deleted file mode 100644
index d30bfbb..0000000
@@ -1,33 +0,0 @@
-From 463c3bd09bfe8e924e19acad7a2a6af16953a704 Mon Sep 17 00:00:00 2001
-From: Remi Collet <[email protected]>
-Date: Mon, 4 Aug 2014 10:31:25 +0200
-Subject: [PATCH] CVE-2014-2497, NULL pointer dereference, fix #126
-
----
- src/gdxpm.c | 10 ++++++++++
- 1 file changed, 10 insertions(+)
-
-diff --git a/src/gdxpm.c b/src/gdxpm.c
-index ae6e336..15603a6 100644
---- a/src/gdxpm.c
-+++ b/src/gdxpm.c
-@@ -83,6 +83,16 @@ BGD_DECLARE(gdImagePtr) gdImageCreateFromXpm(char *filename)
- 	if(overflow2(sizeof(int), number)) {
- 		goto done;
- 	}
-+	for(i = 0; i < number; i++) {
-+		/*
-+		   avoid NULL pointer dereference
-+		   TODO better fix need to manage monochrome/monovisual
-+		   see m_color or g4_color or g_color
-+		*/
-+		if (!image.colorTable[i].c_color) {
-+			goto done;
-+		}
-+	}
- 
- 	colors = (int *)gdMalloc(sizeof(int) * number);
- 	if(colors == NULL) {
--- 
-1.8.5.2
-
package/gd/gd.hash new file +2 -0
new file mode 100644
index 0000000..8edbb1a
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256	9ada1ed45594abc998ebc942cef12b032fbad672e73efc22bc9ff54f5df2b285	libgd-2.1.1.tar.xz
package/gd/gd.mk +1 -2
index d7a6512..2991cd5 100644
@@ -4,13 +4,12 @@
 #
 ################################################################################
 
-GD_VERSION = 2.1.0
+GD_VERSION = 2.1.1
 GD_SOURCE = libgd-$(GD_VERSION).tar.xz
 GD_SITE = https://bitbucket.org/libgd/gd-libgd/downloads
 GD_INSTALL_STAGING = YES
 GD_LICENSE = GD license
 GD_LICENSE_FILES = COPYING
-
 GD_CONFIG_SCRIPTS = gdlib-config
 GD_CONF_OPTS = --without-x --disable-rpath
 GD_DEPENDENCIES = host-pkgconf
Signature · 1 line
2.0.5
#1 lore raw

PATCH 1/1 gd: bump to version 2.1.1

Dear Gustavo Zacarias,

Quoted 6 lines · Gustavo Zacarias

Also add hash file.
Remove CVE patch since it's upstream.
Rename patches to new naming convention.
Kill some whitespace.

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com