From: Cristy Date: Wed, 14 Feb 2018 12:16:46 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6308 X-Git-Tag: 7.0.7-23~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28ba536e302da2d4e6644344af6a4de1430121f6;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6308 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index eac32d9ff..cd48710e1 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -3890,7 +3890,7 @@ static double GetFillAlpha(PolygonInfo *polygon_info,const double mid, } else { - alpha=1.0/alpha; + alpha=PerceptibleReciprocal(alpha); beta=delta.x*(y-q->y)-delta.y*(x-q->x); distance=alpha*beta*beta; }