Skip to content
Permalink
Browse files

Added check for incorrect number of meta channels report in #492.

  • Loading branch information...
dlemstra committed May 15, 2017
1 parent 4e6ac0e commit 7fd419441bc7103398e313558171d342c6315f44
Showing with 3 additions and 0 deletions.
  1. +3 −0 coders/mpc.c
@@ -568,6 +568,9 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception)
if (LocaleCompare(keyword,"number-meta-channels") == 0)
{
image->number_meta_channels=StringToUnsignedLong(options);
if (image->number_meta_channels > MaxPixelChannels)
ThrowReaderException(CorruptImageError,
"ImproperImageHeader");
break;
}
break;

0 comments on commit 7fd4194

Please sign in to comment.
You can’t perform that action at this time.