From cabb9fd1d6d72454fe6dba8b39b7bb115eadfcc5 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 4 Jun 2018 19:55:54 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8732 --- MagickCore/draw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 18bc0b1b9..9e7d59b70 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -5245,7 +5245,10 @@ MagickExport MagickBooleanType DrawPrimitive(Image *image, } clone_info=DestroyImageInfo(clone_info); if (composite_image == (Image *) NULL) - break; + { + status=0; + break; + } (void) SetImageProgressMonitor(composite_image,(MagickProgressMonitor) NULL,(void *) NULL); x1=(ssize_t) ceil(primitive_info[1].point.x-0.5); -- 2.40.0