kumquat-buildroot/package/gd/gd-maxcolors.patch
Peter Korsgaard d0a13821d7 package: add gd package
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-27 11:21:06 -08:00

21 lines
479 B
Diff

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))