Skip to content

Upstream review (open PRs < 2850): never-crash and hostile-input fixes - #510

Merged
emmertex merged 33 commits into
mainfrom
upstream-pr-b
Oct 25, 2026
Merged

emmertex merged 33 commits into
mainfrom
upstream-pr-b

Conversation

@emmertex

Copy link
Copy Markdown
Owner

Ports small never-crash / security / correctness fixes from open upstream PRs (storytold/lightcraft), one commit each, brand names removed. Several were resolved against the fork's own stricter code (dates, keywords, subfolders).

  • What's New: hostile-file hardening ported from upstream
  • Revert upstream #2600: the fork already refuses hostile export subfolders (Export: option to save into the original photo’s folder, plus sequence numbers in file naming #80)
  • Upstream #2753: normalize_iso refuses a truncated time; reading for sorting stays lenient
  • Upstream ports: resolve merge leftovers (heif, lut and mcp tests)
  • Upstream ports: brand names out of the ported strings and tests
  • Upstream #2600: LR-EXP-LOCATION: an export subfolder never leaves the destination folder (#2571)
  • Upstream #2632: MCP: render and screenshot PNGs go through a private temp folder (#2573)
  • Upstream #2607: LR-IMP-FORMATS: GIF and BMP sizes from the header; a canvas the file can't fill is refused (#2553)
  • Upstream #2770: security: bound heic-rs 0.1.4 work around hostile HEIF containers
  • Upstream #2540: Reject non-finite values when parsing .cube LUTs
  • Upstream #2635 (learned): lossy-JPEG tiles are refused from their JPEG header
  • Upstream #2628: CR3 preview box scan checks 32-bit lengths for overflow
  • Upstream #2712 (part): an i16::MIN UTC offset never panics
  • Upstream #2717: rational tag lists show 16 values like every other list
  • Upstream #2753 + #2530: refuse truncated times and impossible calendar dates
  • Upstream #2771: Read Canon maker-note lens when LensModel is missing
  • Upstream #2605: Write capture time UTC offset and sub-seconds in write_exif
  • Upstream #2465: TIFF: Read every plane of a planar TIFF (#2462)
  • Upstream #2844: GPU: black pixels take the colour tools and a light vignette as on the CPU
  • Upstream #2724: fix(codecs): validate JPEG ICC APP2 chunk sequences
  • Upstream #2631: LR-EDIT-DETAIL-DENOISE: GPU denoise doesn't hang when its tiles in flight fail (#2577)
  • Upstream #2627: #1952: the idle-close MCP test reads blocking and waits for the close
  • Upstream #2637: Catalog: library files are never read, cut or appended through a planted link (#2552)
  • Upstream #2634: LR-MASK-EFFECTS: mask.exportEffects refuses originals and writes atomically (#2564)
  • Upstream #2485: catalog.query / library.filter: an unknown filter key is an error, not a silent whole-library match (#2241)
  • Upstream #2648: Never crash: the work gate's byte count saturates instead of overflowing (#2576)
  • Upstream #2714: Never crash: History is bounded on load and by every op that sets it (#2579 item 8)
  • Upstream #2738: Never crash: Refuse an ORF whose 12-bit strip runs past the file (#2561)
  • Upstream #2740: Never crash: ARW and SRW strips shorter than declared are refused before allocating (#2561)
  • Upstream #2750: Never crash: tiles far larger than the image are refused before decoding (#2554)
  • Upstream #2776: Reject signed numeric character references in XML entity decoding
  • Upstream #2833: Strip trailing NULs from non-UTF-8 IPTC text
  • Upstream #2834: Clamp negative signals to zero in hlg_decode

Checks: cargo xtask ci --fast green; targeted tests of lcc-raw, -meta, -catalog, -codecs, -color, -heif, -pipeline, -lensdb, -tiff, -mcp, -engine, -gpu (lib) pass.

Sources: upstream PRs as listed.

🤖 Generated with Claude Code

emmertex and others added 30 commits October 25, 2026 23:35
Ported from storytold/lightcraft#2834.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from storytold/lightcraft#2833.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ity decoding

Ported from storytold/lightcraft#2776.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sed before decoding (#2554)

Ported from storytold/lightcraft#2750.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… are refused before allocating (#2561)

Ported from storytold/lightcraft#2740.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…st the file (#2561)

Ported from storytold/lightcraft#2738.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…op that sets it (#2579 item 8)

Ported from storytold/lightcraft#2714.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tead of overflowing (#2576)

Ported from storytold/lightcraft#2648.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… is an error, not a silent whole-library match (#2241)

Ported from storytold/lightcraft#2485.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and writes atomically (#2564)

Ported from storytold/lightcraft#2634.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d through a planted link (#2552)

Ported from storytold/lightcraft#2637.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts for the close

Ported from storytold/lightcraft#2627.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… its tiles in flight fail (#2577)

Ported from storytold/lightcraft#2631.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from storytold/lightcraft#2724.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ignette as on the CPU

Ported from storytold/lightcraft#2844.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from storytold/lightcraft#2465.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e_exif

Ported from storytold/lightcraft#2605.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from storytold/lightcraft#2771.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r dates

Ported from storytold/lightcraft#2753 and #2530.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from storytold/lightcraft#2717.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from storytold/lightcraft#2712; the tone-curve NaN half was already fixed here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from storytold/lightcraft#2628.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…G header

Own take on storytold/lightcraft#2635: the tile path now uses the existing
header-preflighted decoder with a cap of a few MCU-rounded chunks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from storytold/lightcraft#2540.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…F containers

Ported from storytold/lightcraft#2770.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…canvas the file can't fill is refused (#2553)

Ported from storytold/lightcraft#2607.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…temp folder (#2573)

Ported from storytold/lightcraft#2632.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… destination folder (#2571)

Ported from storytold/lightcraft#2600.

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 and others added 3 commits October 25, 2026 23:57
…orting stays lenient

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ders (#80)

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 25, 2026 13:19
@emmertex
emmertex merged commit 1801b5d into main Oct 25, 2026
5 checks passed
@emmertex
emmertex deleted the upstream-pr-b branch October 25, 2026 13:26
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