130N/A# Patch for libgd2 Version 2.0.35 CVE-2009-3546
130N/A--- gd_gd.c 2006-04-05 08:52:22.000000000 -0700
130N/A+++ gd_gd.c 2011-02-16 17:57:09.865711091 -0800
130N/A@@ -44,6 +44,10 @@
130N/A {
130N/A goto fail1;
130N/A }
130N/A+ if (im->colorsTotal > gdMaxColors)
130N/A+ {
130N/A+ goto fail1;
130N/A+ }
130N/A }
130N/A /* Int to accommodate truecolor single-color transparency */
130N/A if (!gdGetInt (&im->transparent, in))