Skip to content

Commit

Permalink
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31438
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 21, 2017
1 parent 9b580ad commit a05f8f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coders/jpeg.c
Expand Up @@ -1224,6 +1224,7 @@ static Image *ReadJPEGImage(const ImageInfo *image_info,
(void) SetImageColorspace(image,LabColorspace);
jpeg_info.out_color_space=JCS_YCbCr;
}
option=GetImageOption(image_info,"jpeg:colors");
if (option != (const char *) NULL)
if (AcquireImageColormap(image,StringToUnsignedLong(option)) == MagickFalse)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
Expand Down

0 comments on commit a05f8f4

Please sign in to comment.