Репозитории ALT
S: | 0.2.8.4-alt13 |
5.1: | 0.2.8.4-alt7 |
4.1: | 0.2.8.4-alt3 |
4.0: | 0.2.8.4-alt3 |
3.0: | 0.2.8.3-alt2 |
Группа :: Работа с текстами
Пакет: libwmf
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: libwmf-0.2.8.3-CAN-2004-0990.patch
Скачать
Скачать
--- libwmf-0.2.8.3/src/extra/gd/gd_png.c.can-2004-0990 2001-05-19 07:09:34.000000000 -0600
+++ libwmf-0.2.8.3/src/extra/gd/gd_png.c 2006-06-29 06:08:34.961119463 -0600
@@ -181,6 +181,14 @@ gdImageCreateFromPngCtx (gdIOCtx * infil
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))
+ {
+ return NULL;
+ }
if ((color_type == PNG_COLOR_TYPE_RGB) ||
(color_type == PNG_COLOR_TYPE_RGB_ALPHA))
{