File ImageMagick-CVE-2020-27763.patch of Package ImageMagick.30356

diff --git a/MagickCore/resize.c b/MagickCore/resize.c
index b5ac99dd9c..b97695aed0 100644
--- a/MagickCore/resize.c
+++ b/MagickCore/resize.c
@@ -1124,9 +1124,9 @@ MagickPrivate ResizeFilter *AcquireResizeFilter(const Image *image,
     Adjust window function scaling to match windowing support for weighting
     function.  This avoids a division on every filter call.
   */
-  resize_filter->scale/=resize_filter->window_support;
+  resize_filter->scale*=PerceptibleReciprocal(resize_filter->window_support);
   /*
-   * Set Cubic Spline B,C values, calculate Cubic coefficients.
+    Set Cubic Spline B,C values, calculate Cubic coefficients.
   */
   B=0.0;
   C=0.0;

openSUSE Build Service is sponsored by