2016-08-15 7.0.2-10 Cristy <quetzlzacatenango@image...>
* Prevent buffer overflow in BMP & SGI coders (bug report from
pwchen&rayzhong of tencent).
- * Prevent buffer overflow in SIXEL, PDB, MAP, and CALS coders (bug report
- from Donghai Zhu).
+ * Prevent buffer overflow and other problems in SIXEL, PDB, MAP, TIFF and
+ CALS coders (bug report from Donghai Zhu).
2016-08-14 7.0.2-9 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.2-9, GIT revision 18707:2c02f09:20160814.
if ((image_info->interlace == PlaneInterlace) ||
(image_info->interlace == PartitionInterlace))
(void) TIFFSetField(tiff,TIFFTAG_PLANARCONFIG,PLANARCONFIG_SEPARATE);
- rows_per_strip=TIFFDefaultStripSize(tiff,0);
+ rows_per_strip=1;
+ if (TIFFScanlineSize(tiff) != 0)
+ rows_per_strip=TIFFDefaultStripSize(tiff,0);
option=GetImageOption(image_info,"tiff:rows-per-strip");
if (option != (const char *) NULL)
rows_per_strip=(size_t) strtol(option,(char **) NULL,10);