From: Cristy Date: Sun, 10 Jun 2018 14:14:19 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-39~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f3d6011cc3fb59a22a21e767bad14e889930e4e;p=imagemagick ... --- diff --git a/coders/mat.c b/coders/mat.c index 927463e91..43e9bfac1 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -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)); */