From fcfb131bac9e640dfec3938a2cd4605e96b92e08 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 30 Jan 2016 09:05:19 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/107 --- coders/pdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/pdb.c b/coders/pdb.c index 67b5ebafe..4288ad479 100644 --- a/coders/pdb.c +++ b/coders/pdb.c @@ -819,7 +819,7 @@ static MagickBooleanType WritePDBImage(const ImageInfo *image_info,Image *image, pdb_image.width=(short) (16*(image->columns/16+1)); pdb_image.height=(short) image->rows; packets=((bits_per_pixel*image->columns+7)/8); - runlength=(unsigned char *) AcquireQuantumMemory(2UL*packets, + runlength=(unsigned char *) AcquireQuantumMemory(3UL*packets, image->rows*sizeof(*runlength)); if (runlength == (unsigned char *) NULL) ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); -- 2.40.0