From: Cristy Date: Mon, 26 Mar 2018 00:03:54 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-29~300 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7400ef1c61e603261967759a4ff489701183d38;p=imagemagick ... --- diff --git a/coders/tiff.c b/coders/tiff.c index 223fe7168..72ea08313 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1764,8 +1764,8 @@ RestoreMSCWarning ThrowTIFFException(CorruptImageError,"InsufficientImageDataInFile"); tiff_pixels=(unsigned char *) AcquireMagickMemory(MagickMax( TIFFScanlineSize(tiff),MagickMax((ssize_t) image->columns* - MagickMax(samples_per_pixel,3)*pow(2.0,ceil(log(bits_per_sample)/ - log(2.0))),image->columns*rows_per_strip)*sizeof(uint32))); + samples_per_pixel*pow(2.0,ceil(log(bits_per_sample)/log(2.0))), + image->columns*rows_per_strip)*sizeof(uint32))); if (tiff_pixels == (unsigned char *) NULL) ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed"); switch (method)