2016-07-13 7.0.2-5 Cristy <quetzlzacatenango@image...>
* Fix MVG stroke-opacity (reference
https://github.com/ImageMagick/ImageMagick/issues/229).
+ * Prevent possible buffer overflow when reading TIFF images (bug report from
+ Shi Pu of MS509 Team).
2016-07-11 7.0.2-4 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.2-4, GIT revision 18591:50debe5:20160710.
quantum_type=GrayQuantum;
pad=(size_t) MagickMax((size_t) samples_per_pixel-1,0);
}
- status=SetQuantumPad(image,quantum_info,pad*((bits_per_sample+7) >> 3));
+ status=SetQuantumPad(image,quantum_info,pad*pow(2,ceil(log(
+ bits_per_sample)/log(2))));
if (status == MagickFalse)
{
TIFFClose(tiff);