From bc074281a5451682ebeeca6d1f89b4ca50cbeb01 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 19 Feb 2018 08:03:35 -0500 Subject: [PATCH] Fixed unitialized value --- coders/pcd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coders/pcd.c b/coders/pcd.c index 62be38999..4c304e29f 100644 --- a/coders/pcd.c +++ b/coders/pcd.c @@ -614,6 +614,12 @@ static Image *ReadPCDImage(const ImageInfo *image_info,ExceptionInfo *exception) luma=(unsigned char *) RelinquishMagickMemory(luma); ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); } + (void) ResetMagickMemory(chroma1,0,(image->columns+1UL)*image->rows* + 10*sizeof(*chroma1)); + (void) ResetMagickMemory(chroma2,0,(image->columns+1UL)*image->rows* + 10*sizeof(*chroma2)); + (void) ResetMagickMemory(luma,0,(image->columns+1UL)*image->rows* + 10*sizeof(*luma)); /* Advance to image data. */ -- 2.40.0