From: Cristy Date: Sat, 17 Mar 2018 22:24:37 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-27~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf10c98fedc8d80f1dec89e7dc0a83c32efc75d5;p=imagemagick ... --- diff --git a/coders/tiff.c b/coders/tiff.c index da37871b6..f835d9d4e 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1760,7 +1760,7 @@ RestoreMSCWarning if (((MagickSizeType) TIFFScanlineSize(tiff)) > GetBlobSize(image)) ThrowTIFFException(CorruptImageError,"InsufficientImageDataInFile"); tiff_pixels=(unsigned char *) AcquireMagickMemory(MagickMax( - TIFFScanlineSize(tiff),(ssize_t) MagickMax(image->columns* + TIFFScanlineSize(tiff),MagickMax((ssize_t) image->columns* samples_per_pixel*pow(2.0,ceil(log(bits_per_sample)/log(2.0))), rows_per_strip)*sizeof(uint32))); if (tiff_pixels == (unsigned char *) NULL)