From: Cristy Date: Sat, 13 Feb 2016 01:59:16 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/128 X-Git-Tag: 7.0.1-0~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=533ea3b9047c67f9af49703de672f6c2e443f747;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/128 --- diff --git a/coders/psd.c b/coders/psd.c index d8fd95031..ab510b865 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -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");