]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Sat, 9 Feb 2019 23:00:23 +0000 (18:00 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Sat, 9 Feb 2019 23:00:23 +0000 (18:00 -0500)
coders/tiff.c

index 1f4199db27967f1c3b9032a63eef1115499fc971..4a7d872040049368acffbc9f40ad3607b368faab 100644 (file)
@@ -2017,6 +2017,7 @@ RestoreMSCWarning
         /*
           Convert stripped TIFF image to DirectClass MIFF image.
         */
+        (void) SetImageStorageClass(image,DirectClass,exception);
         i=0;
         p=(uint32 *) NULL;
         for (y=0; y < (ssize_t) image->rows; y++)
@@ -2186,6 +2187,7 @@ RestoreMSCWarning
         /*
           Convert TIFF image to DirectClass MIFF image.
         */
+        (void) SetImageStorageClass(image,DirectClass,exception);
         number_pixels=(MagickSizeType) image->columns*image->rows;
         if (HeapOverflowSanityCheck(image->rows,sizeof(*pixels)) != MagickFalse)
           ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed");