]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/362
authorCristy <urban-warrior@imagemagick.org>
Thu, 26 Jan 2017 16:22:42 +0000 (11:22 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 26 Jan 2017 16:22:42 +0000 (11:22 -0500)
coders/mat.c

index e1623a82e8bf54eb0c2b6bf02cc4b9eb0686e957..cf2190bf373a28e1ee6008ba2d33c8e0cc0779fc 100644 (file)
@@ -1123,6 +1123,7 @@ RestoreMSCWarning
     BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(double));    /* Ldblk was set in the check phase */
     if (BImgBuff == NULL)
       ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
+    (void) ResetMagickMemory(BImgBuff,0,ldblk*sizeof(double));
 
     MinVal = 0;
     MaxVal = 0;