]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/121
authorCristy <urban-warrior@imagemagick.org>
Sat, 6 Feb 2016 02:15:13 +0000 (21:15 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 6 Feb 2016 02:15:13 +0000 (21:15 -0500)
coders/pdb.c

index 82737ba9041ad69452ce77aa03e6884852c48e74..b2c12cca5d7ba22d355c344cc1bd9df1533f7144 100644 (file)
@@ -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(3UL*packets,
+  runlength=(unsigned char *) AcquireQuantumMemory(4UL*packets,
     image->rows*sizeof(*runlength));
   if (runlength == (unsigned char *) NULL)
     ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");