summaryrefslogtreecommitdiffstats
path: root/package/gd/gd-maxcolors.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-12-02 17:19:40 -0800
committerPeter Korsgaard <jacmet@sunsite.dk>2012-12-02 17:19:40 -0800
commit8cdabd76950e227af088729c53c7f741a46bd9cc (patch)
tree86f11d84d46f9a5cc6be78b425b07bb58abb5d93 /package/gd/gd-maxcolors.patch
parent677d5068b955cf713b73d285e41ec8eedbda8e38 (diff)
parentc4fbc4202ea47829396bc446e84fd85153513974 (diff)
downloadbuildroot-novena-8cdabd76950e227af088729c53c7f741a46bd9cc.tar.gz
buildroot-novena-8cdabd76950e227af088729c53c7f741a46bd9cc.zip
Merge branch 'next'
Kickoff 2013.02 cycle
Diffstat (limited to 'package/gd/gd-maxcolors.patch')
-rw-r--r--package/gd/gd-maxcolors.patch20
1 files changed, 20 insertions, 0 deletions
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))