From bafa78e12dcb30951a2d9b586d163b77a77005bc Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 25 Aug 2018 19:02:34 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10005 --- MagickCore/fx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/fx.c b/MagickCore/fx.c index dfd87137e..12dcc0996 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -1767,9 +1767,9 @@ static double FxGetSymbol(FxInfo *fx_info,const PixelChannel channel, if (LocaleCompare(symbol,"page.y") == 0) return((double) image->page.y); if (LocaleCompare(symbol,"printsize.x") == 0) - return(image->columns/image->resolution.x); + return(PerceptibleReciprocal(image->resolution.x)*image->columns); if (LocaleCompare(symbol,"printsize.y") == 0) - return(image->rows/image->resolution.y); + return(PerceptibleReciprocal(image->resolution.y)*image->rows); break; } case 'Q': -- 2.40.0