From: Cristy Date: Mon, 2 Apr 2018 22:41:27 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7297 X-Git-Tag: 7.0.7-29~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0991bfcbaf683f424ab047b556cd19ddc944dfe;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7297 --- diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 2aeab5e02..f6b42ad46 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -2102,7 +2102,7 @@ static double FxEvaluateSubexpression(FxInfo *fx_info, ExceptionInfo *exception) { #define FxMaxParenthesisDepth 58 -#define FxMaxSubexpressionDepth 600 +#define FxMaxSubexpressionDepth 200 #define FxReturn(value) \ { \ subexpression=DestroyString(subexpression); \