Commit 74d260c4 authored by Cristy's avatar Cristy

...

parent 32379979
...@@ -3790,7 +3790,8 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, ...@@ -3790,7 +3790,8 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
{ {
png_destroy_read_struct(&ping,&ping_info,&end_info); png_destroy_read_struct(&ping,&ping_info,&end_info);
pixel_info=RelinquishVirtualMemory(pixel_info); pixel_info=RelinquishVirtualMemory(pixel_info);
image->colors=2; if (AcquireImageColormap(image,2,exception) == MagickFalse)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
(void) SetImageBackgroundColor(image,exception); (void) SetImageBackgroundColor(image,exception);
#ifdef IMPNG_SETJMP_NOT_THREAD_SAFE #ifdef IMPNG_SETJMP_NOT_THREAD_SAFE
UnlockSemaphoreInfo(ping_semaphore); UnlockSemaphoreInfo(ping_semaphore);
......
...@@ -4570,7 +4570,7 @@ MAGICK_PATCHLEVEL_VERSION=37 ...@@ -4570,7 +4570,7 @@ MAGICK_PATCHLEVEL_VERSION=37
MAGICK_VERSION=7.0.8-37 MAGICK_VERSION=7.0.8-37
MAGICK_GIT_REVISION=15465:d14ca1213:20190401 MAGICK_GIT_REVISION=15466:323799794:20190403
# Substitute library versioning # Substitute library versioning
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment