From: Cristy Date: Wed, 19 Jun 2019 11:14:14 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick6/issues/46 X-Git-Tag: 7.0.8-50~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a1748fe0a124e5c855efe94f9694b9856bd3f31;p=imagemagick https://github.com/ImageMagick/ImageMagick6/issues/46 --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 96963ad44..e3400efbe 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -5018,12 +5018,6 @@ static Quantum *SetPixelCacheNexusPixels( assert(cache_info->signature == MagickCoreSignature); if (cache_info->type == UndefinedCache) return((Quantum *) NULL); - if ((width == 0) || (height == 0)) - { - (void) ThrowMagickException(exception,GetMagickModule(),CacheError, - "NoPixelsDefinedInCache","`%s'",cache_info->filename); - return((Quantum *) NULL); - } (void) memset(&nexus_info->region,0,sizeof(nexus_info->region)); assert(nexus_info->signature == MagickCoreSignature); if (((cache_info->type == MemoryCache) || (cache_info->type == MapCache)) &&