Skip to content

fix(raw): reject decompression-bomb / corrupt headers before unpack#5312

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

fix(raw): reject decompression-bomb / corrupt headers before unpack#5312
lgritz wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-rawbomb

Conversation

@lgritz

@lgritz lgritz commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Add a pre-unpack guard that rejects when the declared raw data size dwarfs the actual file size by more than 10000x (real raw sensor data never compresses anywhere near that ratio), plus a check_open() call enforcing OIIO's standard global resolution/imagesize limits and LibRaw's own per-dimension and per-image channel caps, matching the pattern already used in other format readers.

Assisted-by: Claude Code / Claude Sonnet 5

Add a pre-unpack guard that rejects when the declared raw data size
dwarfs the actual file size by more than 10000x (real raw sensor data
never compresses anywhere near that ratio), plus a check_open() call
enforcing OIIO's standard global resolution/imagesize limits and
LibRaw's own per-dimension and per-image channel caps, matching the
pattern already used in other format readers.

Assisted-by: Claude Code / Claude 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