File ImageMagick-CVE-2019-14981.patch of Package ImageMagick.30356
diff --git a/MagickCore/feature.c b/MagickCore/feature.c index a0205ba158..a17a65b22b 100644 --- a/MagickCore/feature.c +++ b/MagickCore/feature.c @@ -2288,7 +2288,7 @@ MagickExport Image *MeanShiftImage(const Image *image,const size_t width, } } } - gamma=1.0/count; + gamma=PerceptibleReciprocal(count); mean_location.x=gamma*sum_location.x; mean_location.y=gamma*sum_location.y; mean_pixel.red=gamma*sum_pixel.red;