From d0a13821d7f6ceb34061014b9899eb81c3988ccf Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 27 Nov 2012 10:42:49 -0800 Subject: package: add gd package Signed-off-by: Peter Korsgaard --- package/gd/gd-maxcolors.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/gd/gd-maxcolors.patch (limited to 'package/gd/gd-maxcolors.patch') diff --git a/package/gd/gd-maxcolors.patch b/package/gd/gd-maxcolors.patch new file mode 100644 index 000000000..161cf1993 --- /dev/null +++ b/package/gd/gd-maxcolors.patch @@ -0,0 +1,20 @@ +Patch from Gentoo: +http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/gd/files/gd-2.0.35-maxcolors.patch?view=log + +http://bugs.gentoo.org/292130 + +fix in usptream repo already + +--- gd-2.0.35/gd_gd.c ++++ gd-2.0.35/gd_gd.c +@@ -44,6 +44,10 @@ + { + goto fail1; + } ++ if (im->colorsTotal > gdMaxColors) ++ { ++ goto fail1; ++ } + } + /* Int to accommodate truecolor single-color transparency */ + if (!gdGetInt (&im->transparent, in)) -- cgit v1.2.3