Skip to content

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