From 5ba7673e9dee0c9b8e8e7a0b6de104b4b5380f4e Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 4 Jun 2018 20:55:27 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8734 --- MagickCore/fx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.40.0