]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 19 Dec 2012 15:37:07 +0000 (15:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 19 Dec 2012 15:37:07 +0000 (15:37 +0000)
coders/mat.c

index 8b3d475b84e0f28dfb0481ba59bbf7acdc64c25a..e212c952eddb2d90f6135110009c5b77fa9d6feb 100644 (file)
@@ -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;