]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 23 Jan 2013 23:49:53 +0000 (23:49 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 23 Jan 2013 23:49:53 +0000 (23:49 +0000)
coders/psd.c

index 4e39972ddf27637d4021f51b045e7d32844773cb..ebefd990c4b5fc154df8566cc8ce38117776eb3a 100644 (file)
@@ -580,7 +580,7 @@ static MagickBooleanType ReadPSDLayer(Image *image,const size_t channels,
       for (y=0; y < (ssize_t) image->rows; y++)
         if ((MagickOffsetType) length < offsets[y])
           length=(size_t) offsets[y];
-      compact_pixels=(unsigned char *) AcquireQuantumMemory(length,
+      compact_pixels=(unsigned char *) AcquireQuantumMemory(length+256,
         sizeof(*pixels));
       if (compact_pixels == (unsigned char *) NULL)
         ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",