From 8bb46b3381f8440fbf90bd88e1909dc83e089790 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 26 Jan 2018 20:38:11 -0500 Subject: [PATCH] Eliminate use of uninitialized value in GetFillAlpha() Credit OSS Fuzz --- MagickCore/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 68dbb747a..ad2c28104 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -3941,7 +3941,7 @@ static double GetFillAlpha(PolygonInfo *polygon_info,const double mid, continue; } i=(ssize_t) MagickMax((double) p->highwater,1.0); - for ( ; i < (ssize_t) p->number_points; i++) + for ( ; i < (ssize_t) (p->number_points-1); i++) if ((double) y <= p->points[i].y) break; q=p->points+i-1; -- 2.40.0