]> granicus.if.org Git - imagemagick/commitdiff
Fixed unitialized value
authorCristy <urban-warrior@imagemagick.org>
Mon, 19 Feb 2018 13:03:35 +0000 (08:03 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 19 Feb 2018 13:03:35 +0000 (08:03 -0500)
coders/pcd.c

index 62be38999e511608cfe1d2a760593c3f6bb4ee52..4c304e29f3cd5ce9c8bbda5f99c60a286e3bf041 100644 (file)
@@ -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.
   */