commit | 7dd621dde847123e298ec0a588a840e247077bfc | [log] [tgz] |
---|---|---|
author | Dirk Lemstra <dirk@git.imagemagick.org> | Sat Sep 30 10:30:09 2017 +0200 |
committer | Dirk Lemstra <dirk@git.imagemagick.org> | Sat Sep 30 10:30:09 2017 +0200 |
tree | bc1d71d3a19d95ad69f0e50cde4ec6cc9c49bd47 | |
parent | a38d165a0a8f708f592552458fbcf269107a2c3d [diff] |
Added missing null check reported in #817.
diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 2c5a5e9..defd6b7 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c
@@ -4847,6 +4847,11 @@ for (p=primitive_info; p->primitive != UndefinedPrimitive; p+=p->coordinates) { stroke_polygon=TraceStrokePolygon(draw_info,p); + if (stroke_polygon == (PrimitiveInfo *) NULL) + { + status=0; + break; + } status&=DrawPolygonPrimitive(image,clone_info,stroke_polygon,exception); if (status == 0) break;