Skip to content

Never crash: upstream #3002/#3007/#3008/#3011 remainders - #609

Merged
emmertex merged 3 commits into
mainfrom
upr/never-crash-r3
Oct 26, 2026
Merged

emmertex merged 3 commits into
mainfrom
upr/never-crash-r3

Conversation

@emmertex

Copy link
Copy Markdown
Owner

Finishes the hostile-input fixes from upstream #3002, #3007, #3008 and #3011 that Chromaforge only partly had: TIFF shared-IFD copies charged entries and value bytes, XMP numeric references with leading zeros, CR2 slice widths that don't fit usize, checked zip_map indexing and a 32-bit-safe MAX_IMAGE_BYTES, and a zero-size header test.

Sources: upstream storytold/lightcraft #3002, #3007, #3008, #3011 (ported).
Tests: lcc-tiff, lcc-raster, lcc-meta libs; lcc-raw vendor_robust; lcc-codecs fuzz; ci --fast green.

🤖 Generated with Claude Code

emmertex and others added 3 commits October 26, 2026 18:44
- TIFF: a shared child IFD's copy is charged its entries and value bytes (entry-limit test).
- XMP: numeric references with any number of leading zeros resolve in one pass.
- CR2: slice widths that do not fit usize are an error, not a truncation.
- raster: zip_map with a hostile other image uses checked index math; MAX_IMAGE_BYTES fits 32-bit.
- codecs: zero-size JPEG/PNG headers test.

Sources: upstream storytold/lightcraft #3002, #3007, #3008, #3011 (ported).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmertex
emmertex enabled auto-merge October 26, 2026 07:52
@emmertex
emmertex merged commit ff6eb65 into main Oct 26, 2026
5 checks passed
@emmertex
emmertex deleted the upr/never-crash-r3 branch October 26, 2026 08:05
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