DEBSOURCES
Skip Quicknav
Patches / Patch / libgd2 / 2.0.36~rc1~dfsg-6.1+deb7u2
123456789101112131415
CVE-2009-3546: buffer overflow or buffer over-read attacks via a crafted GD file http://svn.php.net/viewvc?view=revision&revision=289557 --- a/gd_gd.c +++ b/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))