From: Cristy Date: Mon, 2 Jan 2017 20:34:59 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/340 X-Git-Tag: 7.0.4-2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54d70a280d3a6eebe82f56e45a31ee8791c6ba38;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/340 --- diff --git a/MagickCore/image.c b/MagickCore/image.c index 5c5c07e58..e6796b7db 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -3678,7 +3678,8 @@ MagickExport MagickBooleanType SyncImage(Image *image,ExceptionInfo *exception) if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); assert(image->signature == MagickCoreSignature); - if (image->storage_class == DirectClass) + if ((image->storage_class != PseudoClass) || + (image->colormap == (PixelInfo *) NULL)) return(MagickFalse); range_exception=MagickFalse; status=MagickTrue;