From cdf05e931164dfdfc75031aa17591d09af8f9766 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 13 Mar 2018 19:59:08 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6853 --- MagickCore/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 7417ab858..165ff1c8e 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -1676,7 +1676,7 @@ static size_t EllipsePoints(const PrimitiveInfo *primitive_info, /* Ellipses are just short segmented polys. */ - if ((fabs(stop.x) < DrawEpsilon) && (fabs(stop.y) < DrawEpsilon)) + if ((fabs(stop.x) < DrawEpsilon) || (fabs(stop.y) < DrawEpsilon)) return(1); delta=2.0/MagickMax(stop.x,stop.y); step=MagickPI/8.0; @@ -5498,7 +5498,7 @@ static void TraceEllipse(PrimitiveInfo *primitive_info,const PointInfo start, /* Ellipses are just short segmented polys. */ - if ((fabs(stop.x) < DrawEpsilon) && (fabs(stop.y) < DrawEpsilon)) + if ((fabs(stop.x) < DrawEpsilon) || (fabs(stop.y) < DrawEpsilon)) { TracePoint(primitive_info,start); return; -- 2.40.0