From 4fa144bbbefed3f2b0d6d9bcc785237797228bda Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 11 Jan 2019 09:21:04 +0100 Subject: [PATCH] Raise a warning instead of an error when the exception list limit has been reached. --- MagickCore/exception.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MagickCore/exception.c b/MagickCore/exception.c index 94a92d938..dcd960f0c 100644 --- a/MagickCore/exception.c +++ b/MagickCore/exception.c @@ -966,8 +966,9 @@ MagickExport MagickBooleanType ThrowException(ExceptionInfo *exception, } UnlockSemaphoreInfo(exception->semaphore); if (GetNumberOfElementsInLinkedList(exceptions) == MaxExceptionList) - (void) ThrowMagickException(exception,GetMagickModule(),ResourceLimitError, - "TooManyExceptions","(exception processing is suspended)"); + (void) ThrowMagickException(exception,GetMagickModule(), + ResourceLimitWarning,"TooManyExceptions", + "(exception processing is suspended)"); return(MagickTrue); } -- 2.40.0