]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/128
authorCristy <urban-warrior@imagemagick.org>
Sat, 13 Feb 2016 01:59:16 +0000 (20:59 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 13 Feb 2016 01:59:16 +0000 (20:59 -0500)
coders/psd.c

index d8fd9503113ba75c208bbbaa6f56d0eb39c34db3..ab510b865d6faf39152ba56e86a3dd8ee2e04632 100644 (file)
@@ -2373,7 +2373,7 @@ static MagickBooleanType WriteImageChannels(const PSDInfo *psd_info,
   compact_pixels=(unsigned char *) NULL;
   if (next_image->compression == RLECompression)
     {
-      compact_pixels=(unsigned char *) AcquireQuantumMemory((2*channels*
+      compact_pixels=(unsigned char *) AcquireQuantumMemory((9*channels*
         next_image->columns)+1,packet_size*sizeof(*compact_pixels));
       if (compact_pixels == (unsigned char *) NULL)
         ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");