From d9e30a4e766944973b4531f0b9debac7a0eebb85 Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 19 Dec 2012 15:37:07 +0000 Subject: [PATCH] --- coders/mat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/mat.c b/coders/mat.c index 8b3d475b8..e212c952e 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -864,7 +864,7 @@ MATLAB_KO: ThrowReaderException(CorruptImageError,"ImproperImageHeader"); /* ----- Load raster data ----- */ BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(unsigned char *)); /* Ldblk was set in the check phase */ if (BImgBuff == NULL) - goto NoMemory; + ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); MinVal = 0; MaxVal = 0; -- 2.50.1