destroy,
status;
+ MagickSizeType
+ length;
+
static MagickSizeType
cache_timelimit = MagickResourceInfinity,
cpu_throttle = MagickResourceInfinity,
#endif
ThrowFatalException(ResourceLimitFatalError,"TimeLimitExceeded");
}
+ length=GetImageListLength(image);
+ if (AcquireMagickResource(ListLengthResource,length) == MagickFalse)
+ {
+ (void) ThrowMagickException(exception,GetMagickModule(),ImageError,
+ "ListLengthExceedsLimit","`%s'",image->filename);
+ return((Cache) NULL);
+ }
LockSemaphoreInfo(image->semaphore);
assert(image->cache != (Cache) NULL);
cache_info=(CacheInfo *) image->cache;
ThrowBinaryException(CacheError,"NoPixelsDefinedInCache",image->filename);
cache_info=(CacheInfo *) image->cache;
assert(cache_info->signature == MagickCoreSignature);
- length=GetImageListLength(image);
- if (AcquireMagickResource(ListLengthResource,length) == MagickFalse)
- ThrowBinaryException(ImageError,"ListLengthExceedsLimit",image->filename);
if ((AcquireMagickResource(WidthResource,image->columns) == MagickFalse) ||
(AcquireMagickResource(HeightResource,image->rows) == MagickFalse))
ThrowBinaryException(ImageError,"WidthOrHeightExceedsLimit",