Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/553
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jul 9, 2017
1 parent dc447a2 commit bfb7915
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion coders/mat.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,11 @@ static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
goto MATLAB_KO; /* unsupported endian */

if (strncmp(MATLAB_HDR.identific, "MATLAB", 6))
MATLAB_KO: ThrowReaderException(CorruptImageError,"ImproperImageHeader");
{
MATLAB_KO:
clone_info=DestroyImageInfo(clone_info);
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
}

filepos = TellBlob(image);
while(!EOFBlob(image)) /* object parser loop */
Expand Down

0 comments on commit bfb7915

Please sign in to comment.