From: Cristy Date: Fri, 21 Jun 2019 22:49:58 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1610 X-Git-Tag: 7.0.8-50~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8187d2d8fd010d2d6b1a3a8edd935beec404dddc;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1610 --- diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h index 8af0e369c..56fba6c97 100644 --- a/MagickCore/pixel-accessor.h +++ b/MagickCore/pixel-accessor.h @@ -111,7 +111,7 @@ static inline PixelTrait GetPixelCbTraits(const Image *magick_restrict image) static inline Quantum GetPixelChannel(const Image *magick_restrict image, const PixelChannel channel,const Quantum *magick_restrict pixel) { - if (image->channel_map[channel].traits == UndefinedPixelTrait) + if (image->channel_map[image->channel_map[channel].offset].traits == UndefinedPixelTrait) return((Quantum) 0); return(pixel[image->channel_map[channel].offset]); }