-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic in gif::Decoder::into_frames on invalid background color #816
Comments
Is this now fixed? |
This is fixed on |
This testcase no longer causes a crash. I believe this bug is fixed and can be closed. |
Closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This small program, along with this image:
invalid-bg-color.gif
-Produces the following crash:
But opening the image with
image::load("invalid-bg-color.gif")
works correctly.The input image is a copy of this image, but with the background color set to the invalid value
0xFF
, which causes an out-of-bound access in the Global Color Table.Some GIFs in the wild use such an invalid value when the background color is never used, so these files should be parsed correctly (even if this technically is an invalid GIF).
The text was updated successfully, but these errors were encountered: