From: Cristy Date: Tue, 17 Apr 2018 00:36:24 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7725 X-Git-Tag: 7.0.7-29~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3065875a976e3df51546d65591c24b65d224cd03;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7725 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 9d2f5b34c..9858817f8 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -4163,6 +4163,9 @@ RestoreMSCWarning bounds.y2=bounds.y2 < 0.0 ? 0.0 : bounds.y2 >= (double) image->rows-1.0 ? (double) image->rows-1.0 : bounds.y2; status=MagickTrue; + if ((fabs(bounds.x2-bounds.x1) < MagickEpsilon) || + (fabs(bounds.y2-bounds.y1) < MagickEpsilon)) + status=MagickFalse; image_view=AcquireAuthenticCacheView(image,exception); if ((primitive_info->coordinates == 1) || (polygon_info[0]->number_edges == 0))