Skip to content

fix(sgi): prevent oversized-allocation crash from bogus RLE length/offset table#5303

Open
lgritz wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-sgirle
Open

fix(sgi): prevent oversized-allocation crash from bogus RLE length/offset table#5303
lgritz wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-sgirle

Conversation

@lgritz

@lgritz lgritz commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Truncating a corrupt uint32 length_tab entry into int could yield a huge negative value, causing a runaway allocation and crash in uncompress_rle_channel. Validate offset/length against the file size instead.

Assisted-by: Claude Code / Sonnet 5

…fset table

Truncating a corrupt uint32 length_tab entry into `int` could yield a
huge negative value, causing a runaway allocation and crash in
uncompress_rle_channel. Validate offset/length against the file size
instead.

Assisted-by: Claude Code / Sonnet 5

Signed-off-by: Larry Gritz <lg@larrygritz.com>
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