From e05780990eecbe1b5f2884ad30e04328cec646bf Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 15 May 2017 19:06:39 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/491 --- MagickCore/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/image.c b/MagickCore/image.c index ce60390fb..c2e666f51 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -849,7 +849,7 @@ MagickExport Image *CloneImage(const Image *image,const size_t columns, */ clone_image->colors=image->colors; length=(size_t) image->colors; - clone_image->colormap=(PixelInfo *) AcquireQuantumMemory(length, + clone_image->colormap=(PixelInfo *) AcquireQuantumMemory(length+1, sizeof(*clone_image->colormap)); if (clone_image->colormap == (PixelInfo *) NULL) { -- 2.40.0