]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5889
authorCristy <urban-warrior@imagemagick.org>
Fri, 2 Feb 2018 16:06:12 +0000 (11:06 -0500)
committerCristy <urban-warrior@imagemagick.org>
Fri, 2 Feb 2018 16:06:12 +0000 (11:06 -0500)
MagickCore/draw.c

index 9cdad199a6ee4c120b31e98dda4b0157e25a3551..49cc4de0a6c5e2f49eae58bc40658e9a4170eeab 100644 (file)
@@ -3029,8 +3029,8 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
 
         alpha=bounds.x2-bounds.x1;
         beta=bounds.y2-bounds.y1;
-        radius=hypot((double) alpha,(double) beta);
-        points_extent=2*ceil((double) MagickPI*radius)+6*BezierQuantum+360;
+        radius=hypot(alpha,beta);
+        points_extent=ceil(MagickPI*MagickPI*radius)+6*BezierQuantum+360;
         break;
       }
       default: