Группа :: Графика
Пакет: netpbm
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: netpbm-10.23-malloc.patch
--- netpbm-10.23/converter/other/tifftopnm.c.malloc 2004-08-05 12:52:08.000000000 +0200
+++ netpbm-10.23/converter/other/tifftopnm.c 2004-08-05 13:11:34.751113144 +0200
@@ -736,7 +736,8 @@
if (scanbuf == NULL)
pm_error("can't allocate memory for scanline buffer");
- samplebuf = (unsigned short *) malloc3(cols , sizeof(unsigned short) , spp);
+ /* samplebuf is unsigned int * !!! */
+ samplebuf = (unsigned int *) malloc3(cols , sizeof(unsigned int) , spp);
if (samplebuf == NULL)
pm_error ("can't allocate memory for row buffer");