fix for issue #2811

This commit is contained in:
Eric Soroos 2017-10-25 13:42:51 +00:00
parent 636dc62f0e
commit 29c3373823

View File

@ -71,7 +71,7 @@ ImagingGifDecode(Imaging im, ImagingCodecState state, UINT8* buffer, int bytes)
if (!state->state) {
/* Initialise state */
if (context->bits < 0 || context->bits > 8) {
if (context->bits < 0 || context->bits > 12) {
state->errcode = IMAGING_CODEC_CONFIG;
return -1;
}