projects
/
imagemagick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a44cbd
)
https://github.com/ImageMagick/ImageMagick/issues/362
author
Cristy
<urban-warrior@imagemagick.org>
Thu, 26 Jan 2017 16:22:42 +0000
(11:22 -0500)
committer
Cristy
<urban-warrior@imagemagick.org>
Thu, 26 Jan 2017 16:22:42 +0000
(11:22 -0500)
coders/mat.c
patch
|
blob
|
history
diff --git
a/coders/mat.c
b/coders/mat.c
index e1623a82e8bf54eb0c2b6bf02cc4b9eb0686e957..cf2190bf373a28e1ee6008ba2d33c8e0cc0779fc 100644
(file)
--- 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;