From: Cristy Date: Thu, 26 Jan 2017 16:22:42 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/362 X-Git-Tag: 7.0.4-6~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51b0ae01709adc1e4a9245e158ef17b85a110960;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/362 --- diff --git a/coders/mat.c b/coders/mat.c index e1623a82e..cf2190bf3 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -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;