Skip to content

fix(gif): guard canvas index overflow#5299

Open
br0nzu wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
br0nzu:public-gif-canvas-index-overflow
Open

fix(gif): guard canvas index overflow#5299
br0nzu wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
br0nzu:public-gif-canvas-index-overflow

Conversation

@br0nzu

@br0nzu br0nzu commented Jul 6, 2026

Copy link
Copy Markdown

This handles malformed GIF files whose logical canvas dimensions can overflow legacy int-indexed canvas calculations.

The patch rejects oversized canvas dimensions before scanline/canvas indexing and adds a regression test for the malformed oversized-canvas case.

Reject GIF canvases whose pixel count exceeds the legacy int-indexed canvas boundary and keep canvas copies bounded with size_t checks.

Add regression coverage for the oversized-canvas case.

Signed-off-by: Dongju Lee <dongpago2@gmail.com>
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 6, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: br0nzu / name: Dongju Lee (f7ab551)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant