Skip to content

Commit 51b0ae0

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/362
1 parent 4a44cbd commit 51b0ae0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: coders/mat.c

+1
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,7 @@ RestoreMSCWarning
11231123
BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(double)); /* Ldblk was set in the check phase */
11241124
if (BImgBuff == NULL)
11251125
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
1126+
(void) ResetMagickMemory(BImgBuff,0,ldblk*sizeof(double));
11261127

11271128
MinVal = 0;
11281129
MaxVal = 0;

0 commit comments

Comments
 (0)