]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6853
authorCristy <urban-warrior@imagemagick.org>
Tue, 13 Mar 2018 23:59:08 +0000 (19:59 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 14 Mar 2018 00:00:19 +0000 (20:00 -0400)
MagickCore/draw.c

index 7417ab85876ac9ac5490b47c9d5d78e90f20cf7f..165ff1c8e65b00561c16c9984b30cc4b091b105c 100644 (file)
@@ -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;