Bugzilla – Attachment #26050: gd-2.0.33-CAN-2004-0941.patch for bug #62666
png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
&interlace_type, NULL, NULL);
if (overflow2(sizeof (int), width))
{
return NULL;
}
if (overflow2(sizeof (int) * width, height))
if ((color_type == PNG_COLOR_TYPE_RGB) ||
(color_type == PNG_COLOR_TYPE_RGB_ALPHA))