From: Cristy Date: Tue, 19 Sep 2017 10:50:50 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/765 X-Git-Tag: 7.0.7-4~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60e52517ff86a451a85cac3eaba2016e80668297;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/765 --- diff --git a/coders/tiff.c b/coders/tiff.c index 090f689cc..edef96741 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1754,7 +1754,7 @@ RestoreMSCWarning quantum_type=RGBQuantum; tiff_pixels=(unsigned char *) AcquireMagickMemory(MagickMax( TIFFScanlineSize(tiff),(ssize_t) (image->columns*samples_per_pixel* - pow(2.0,ceil(log(bits_per_sample)/log(2.0)))))); + pow(2.0,ceil(log(bits_per_sample)/log(2.0)))*sizeof(uint32)))); if (tiff_pixels == (unsigned char *) NULL) ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed"); switch (method)