From 0100b8013536d7836566642d69d521fba1d15cf6 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 10 Mar 2018 07:50:23 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6819 --- coders/pdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coders/pdb.c b/coders/pdb.c index e03693de5..977f1077f 100644 --- a/coders/pdb.c +++ b/coders/pdb.c @@ -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: -- 2.40.0