From: Cristy Date: Tue, 5 Jun 2018 00:55:27 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8734 X-Git-Tag: 7.0.7-39~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ba7673e9dee0c9b8e8e7a0b6de104b4b5380f4e;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8734 --- diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 60c976ac5..9def5a245 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -1125,7 +1125,8 @@ static double FxChannelStatistics(FxInfo *fx_info,Image *image, if (option >= 0) { channel=(PixelChannel) option; - channel_mask=SetPixelChannelMask(image,(ChannelType) (1 << channel)); + channel_mask=SetPixelChannelMask(image,(ChannelType) + (1UL << channel)); } } (void) FormatLocaleString(key,MagickPathExtent,"%p.%.20g.%s",(void *) image,