From 64e258cd746b0eefaa97d01ed034e3a29282a0f5 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 5 Apr 2018 08:54:32 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7397 --- MagickCore/fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 1fbc68ac0..1b007cdcc 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -2755,7 +2755,7 @@ static double FxEvaluateSubexpression(FxInfo *fx_info, { alpha=FxEvaluateSubexpression(fx_info,channel,x,y,expression+3, depth+1,beta,exception); - gamma=alpha-floor((alpha/(*beta)))*(*beta); + gamma=alpha-floor((alpha*PerceptibleReciprocal(*beta)))*(*beta); FxReturn(gamma); } if (LocaleCompare(expression,"m") == 0) -- 2.40.0