Skip to content
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

fix: Panic in decoding of GIF chunks #873

Merged
merged 4 commits into from
Feb 15, 2025
Merged

Conversation

kornelski
Copy link
Contributor

Empty data causes capacity to become negative, which wraps around and causes "capacity overflow" panic.

This changes the GIF parser to correctly read chunk lengths.

@kornelski kornelski changed the title Fix panic in decoding of GIF chunks fix: panic in decoding of GIF chunks Jan 23, 2025
@gpeacock gpeacock self-requested a review February 15, 2025 00:19
@gpeacock gpeacock added bug Something isn't working accepted labels Feb 15, 2025
@gpeacock gpeacock changed the title fix: panic in decoding of GIF chunks fix: Panic in decoding of GIF chunks Feb 15, 2025
@gpeacock gpeacock self-requested a review February 15, 2025 00:54
@gpeacock gpeacock merged commit 1f7a453 into contentauth:main Feb 15, 2025
15 checks passed
@scouten-adobe scouten-adobe mentioned this pull request Feb 15, 2025
@kornelski kornelski deleted the gif-panic branch February 15, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants