From: Cristy Date: Fri, 23 Mar 2018 12:23:36 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-28~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cc4a63793812857aed150e845deb8c584ab5ec0;p=imagemagick ... --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index dd2941e61..811ff6da7 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -3115,7 +3115,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, beta=bounds.y2-bounds.y1; radius=hypot(alpha,beta); coordinates=2.0*ceil(MagickPI*MagickPI*radius)+6*BezierQuantum+360; - if (coordinates > 1.0e+06) + if (coordinates > 1048576) { (void) ThrowMagickException(exception,GetMagickModule(),DrawError, "TooManyBezierCoordinates","`%s'",token);