From 56a19e7ae07f40299f3afd4994d690f2c9b81993 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 15 Feb 2018 11:16:19 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6385 --- MagickCore/property.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/MagickCore/property.c b/MagickCore/property.c index 508a8b432..5ad1110b3 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -4165,10 +4165,11 @@ MagickExport MagickBooleanType SetImageProperty(Image *image, geometry_info; flags=ParseGeometry(value,&geometry_info); - image->resolution.x=geometry_info.rho; - image->resolution.y=geometry_info.sigma; - if ((flags & SigmaValue) == 0) - image->resolution.y=image->resolution.x; + if ((flags & RhoValue) != 0) + image->resolution.x=geometry_info.rho; + image->resolution.y=image->resolution.x; + if ((flags & SigmaValue) != 0) + image->resolution.y=geometry_info.sigma; return(MagickTrue); } if (LocaleCompare("depth",property) == 0) -- 2.40.0