Skip to content

Upstream review r6: raw, DNG, fetch and catalog fixes - #680

Merged
emmertex merged 17 commits into
mainfrom
upstream-r6
Oct 29, 2026
Merged

emmertex merged 17 commits into
mainfrom
upstream-r6

Conversation

@emmertex

Copy link
Copy Markdown
Owner

Upstream review r6 (2026-10-29): upstream main 07bc2008d..77c0a6adf (57 commits) and PRs 3192-3306 (87 not yet recorded). Ported by hand, no merge. Not built or tested locally; CI verifies.

Taken

Upstream Title Verdict
ca69e74 raw: check DNG opcode byte counts without overflow crash/overflow fix on 32-bit; hand port, hostile-input test kept
#3199 Write the DNG WhiteLevel as LONG, never RATIONAL OK; rescales fractional float white, so export never fails (preferred over #3197, which errors on fractional white)
#3210 Validate Canon CR2 slice geometry (cr2.rs only; its clippy-only files skipped) OK; tests include hostile widths
#3233 / #3234 / #3283 fetch: refuse signed ports, Content-Range numbers, Content-Length OK; small, tested
#3242 EXIF time zone offset limited to 18:00 OK
#3267 geocode: ZIP entries with inconsistent decoded size refused OK
#3237 Face index caches over 1 GiB are read record by record OK; sparse-file test
#3258 Library lock removes only the owner note it wrote OK; uses the fork's read_no_follow, test brand-neutral

Review criteria: no new dependencies, no unsafe, no network/process/build changes; brand check passes (xtask run locally); release notes added (docs/whats-new/ and docs/changelog/unreleased/); review records and upstream-reviewed.txt advanced.

Skipped (all recorded in docs/upstream-pr-reviews/)

Group Reason
56 of the 57 commits clippy/lint refactors of restructured or fork-owned code, upstream installer, release, packaging, CI, docs
#3197 duplicate of #3199, errors on fractional white
#3232, #3298, #3266, #3279 large pipeline/GPU/mask/denoise changes that need a measured run
#3281, #3304 export source-level change (memory/time), overlapping, fork export diverged
#3194 brush CenterWeight meaning changed, unverified
#3231 windowed GPU-lost restart, not verifiable unattended
#3241, #3282, #3268 new native/raw/network dependencies
#3192 winit bump (egui 0.37 deferred)
menu / accessibility / sort / toast / locale / macOS tasks, faces UI, folders UI fork-owned ui-egui or native menu
clippy-only, CI bumps, research docs no user-visible gain

Unsure: #3304/#3281 (export quality) are worth a look later with a benchmark.

🤖 Generated with Claude Code

emmertex and others added 17 commits October 29, 2026 22:27
…9e74)

Sources: upstream fix, hand-ported (opcode tests live in opcodes.rs here).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Found while testing crates/fetch/src/http.rs:598 (get)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 04a6224)
Found while testing crates/fetch/src/lib.rs:465 (parse_content_range)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
(cherry picked from commit 73f0d25)
Found while testing crates/fetch/src/http.rs:140 (Url::parse)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
(cherry picked from commit 1384930)
Found while testing crates/meta/src/datetime.rs:77

Co-Authored-By: GPT-6-Luna <noreply@openai.com>
(cherry picked from commit e981b25)
Found while testing crates/geocode/src/unzip.rs:64

Co-Authored-By: GPT-6-Luna <noreply@openai.com>
(cherry picked from commit 7ab2575)
Float DNGs (HDR merge, Render to DNG) wrote WhiteLevel as RATIONAL 1/1,
which the DNG spec doesn't allow (SHORT or LONG only); libtiff warns
"Incompatible type for WhiteLevel" and ignores the tag. WhiteLevel is now
always LONG. Float data whose white level isn't a whole number (a float
DNG from another writer, re-saved) is rescaled to white = 1 first,
samples, black levels and black deltas together, as the spec expects
float data to be stored.

Fixes #3191

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit cb893dd334f2f3ffaceef0ef958613436493fae6)
Fixes #2997

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit f2e0964ab0aa49190f413c97aa591a7047a06f6e)
(cherry picked from commit 292f0d82ab66b6332dffbb24ca4ed1a3ffd5fada)
…e_file)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Reject excessive slice counts instead of silently changing sensor dimensions. Check slice-width arithmetic and bound used widths before converting to usize, including on wasm32.

Add synthetic header/full rejection regressions and exact pixel coverage at the existing slice-count boundary. Update the parity and gap notes without changing coverage scores.

AI assistance: OpenAI Codex for @schattie93.

(cherry picked from commit 808cf4141dc88cb906c8e0fd08bad1fac1ac44dc)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@emmertex
emmertex merged commit 077fdca into main Oct 29, 2026
5 checks passed
@emmertex
emmertex deleted the upstream-r6 branch October 29, 2026 12:49
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.

6 participants