]> granicus.if.org Git - imagemagick/commitdiff
Added call to ResetImagePixels because we allow decoding part of the image.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 8 Apr 2018 12:25:06 +0000 (14:25 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 8 Apr 2018 12:25:06 +0000 (14:25 +0200)
coders/tiff.c

index 0c0caca21f515b9403ea873180a8f1d54821d2ba..2afc1cad9291d6e3f15ff520bce500cbc39f3fe0 100644 (file)
@@ -1651,6 +1651,12 @@ RestoreMSCWarning
         goto next_tiff_frame;
       }
     status=SetImageExtent(image,image->columns,image->rows,exception);
+    if (status == MagickFalse)
+      {
+        TIFFClose(tiff);
+        return(DestroyImageList(image));
+      }
+    status=ResetImagePixels(image,exception);
     if (status == MagickFalse)
       {
         TIFFClose(tiff);