From: Cristy Date: Sun, 22 Apr 2018 14:15:05 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7925 X-Git-Tag: 7.0.7-29~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d8bc35a0ec18dc3423a41cf53e31be004886c0d;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7925 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index bdba09d6f..07d118dee 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -1686,8 +1686,8 @@ static size_t GetEllipseCoordinates(const PointInfo start,const PointInfo stop, step=MagickPI/8.0; if ((delta >= 0.0) && (delta < (MagickPI/8.0))) step=MagickPI/(4.0*(MagickPI*PerceptibleReciprocal(delta)/2.0)); - angle.x=DegreesToRadians(degrees.x); - angle.y=DegreesToRadians(degrees.y); + angle.x=DegreesToRadians(fmod(degrees.x,360.0)); + angle.y=DegreesToRadians(fmod(degrees.y,360.0)); return((size_t) floor((angle.y-angle.x)/step+0.5)+3); }