From 74d260c405b92de374513719340317e1ce27a023 Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 3 Apr 2019 07:52:38 -0400 Subject: [PATCH] ... --- coders/png.c | 3 ++- configure | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/coders/png.c b/coders/png.c index ab4e0a788..c3e522184 100644 --- a/coders/png.c +++ b/coders/png.c @@ -3790,7 +3790,8 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, { png_destroy_read_struct(&ping,&ping_info,&end_info); pixel_info=RelinquishVirtualMemory(pixel_info); - image->colors=2; + if (AcquireImageColormap(image,2,exception) == MagickFalse) + ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); (void) SetImageBackgroundColor(image,exception); #ifdef IMPNG_SETJMP_NOT_THREAD_SAFE UnlockSemaphoreInfo(ping_semaphore); diff --git a/configure b/configure index e0a507869..92034d27b 100755 --- a/configure +++ b/configure @@ -4570,7 +4570,7 @@ MAGICK_PATCHLEVEL_VERSION=37 MAGICK_VERSION=7.0.8-37 -MAGICK_GIT_REVISION=15465:d14ca1213:20190401 +MAGICK_GIT_REVISION=15466:323799794:20190403 # Substitute library versioning -- 2.40.0