]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 10 Jun 2018 14:14:19 +0000 (10:14 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 10 Jun 2018 14:14:19 +0000 (10:14 -0400)
coders/mat.c

index 927463e91d67be6365ea7c725601d454f6fc5fa9..43e9bfac19cc2c1447daf822f0de3296c6f9bc52 100644 (file)
@@ -958,6 +958,8 @@ MATLAB_KO:
   while(!EOFBlob(image)) /* object parser loop */
   {
     Frames = 1;
+    if (filepos != (unsigned int) filepos)
+      break;
     if(SeekBlob(image,filepos,SEEK_SET) != filepos) break;
     /* printf("pos=%X\n",TellBlob(image)); */