]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Tue, 20 Mar 2018 11:27:28 +0000 (07:27 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 20 Mar 2018 11:27:28 +0000 (07:27 -0400)
coders/mat.c

index c6fe7151e3c5616c96086168ef53ecde09a4b04c..9e0fd8ee1a9bf26230e238d51cf67fadf998772c 100644 (file)
@@ -1369,7 +1369,8 @@ done_reading:
     {
       z = z2;
       if(image2==NULL) image2 = image;
-      goto NEXT_FRAME;
+      if (EOFBlob(image) == MagickFalse)
+        goto NEXT_FRAME;
     }
     if ((image2!=NULL) && (image2!=image))   /* Does shadow temporary decompressed image exist? */
       {