Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Mike, I have found another way to trigger the condition that was described in STR #3867. The reason is a special handling of the first code in LZW streams, somewhat related to STR #3869. Few other implementations that do not have stack overflow check in the while loop seem to handle this case by checking the first code is < 256.
Test case attached.
--- filter/image-gif.c (revision 9862)
if (code < 4096)