From 105f874a99b002f73812b0b3bbcee9bff44a7ff2 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 12 Mar 2018 21:04:32 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6850 --- MagickCore/property.c | 1 + coders/label.c | 1 + 2 files changed, 2 insertions(+) diff --git a/MagickCore/property.c b/MagickCore/property.c index f2c31d38c..0ad839933 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -3669,6 +3669,7 @@ RestoreMSCWarning } GetPixelInfo(image,&pixel); fx_info=AcquireFxInfo(image,pattern+4,exception); + value=0.0; status=FxEvaluateChannelExpression(fx_info,RedPixelChannel,0,0, &value,exception); pixel.red=(double) QuantumRange*value; diff --git a/coders/label.c b/coders/label.c index 4ae206b28..97871fbd5 100644 --- a/coders/label.c +++ b/coders/label.c @@ -136,6 +136,7 @@ static Image *ReadLABELImage(const ImageInfo *image_info, draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); draw_info->text=ConstantString(label); metrics.width=0; + metrics.height=0; metrics.ascent=0.0; status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); if ((image->columns == 0) && (image->rows == 0)) -- 2.40.0