From 9d846f8bb85a8a11f546940e315c09f7e1973b7a Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 14 Aug 2018 09:31:19 -0400 Subject: [PATCH] ... --- coders/mat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coders/mat.c b/coders/mat.c index 259c8158b..0f9a5f448 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -1117,7 +1117,9 @@ MATLAB_KO: (void) LogMagickEvent(CoderEvent,GetMagickModule(), "MATLAB_HDR.CellType: %.20g",(double) CellType); - (void) ReadBlob(image2, 4, (unsigned char *) &size); /* data size */ + /* data size */ + if (ReadBlob(image2, 4, (unsigned char *) &size) != 4) + goto MATLAB_KO; NEXT_FRAME: switch (CellType) -- 2.40.0