]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6819
authorCristy <urban-warrior@imagemagick.org>
Sat, 10 Mar 2018 12:50:23 +0000 (07:50 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 10 Mar 2018 12:50:23 +0000 (07:50 -0500)
coders/pdb.c

index e03693de502b4bca6675f1038aa8aa2a14f96127..977f1077f7daee2b63748fac96299da16e88de80 100644 (file)
@@ -420,6 +420,7 @@ static Image *ReadPDBImage(const ImageInfo *image_info,ExceptionInfo *exception)
     sizeof(*pixels));
   if (pixels == (unsigned char *) NULL)
     ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
+  (void) ResetMagickMemory(pixels,0,(packets+257UL)*image->rows*sizeof(*pixels));
   switch (pdb_image.version & 0x07) 
   {
     case 0: