lightcraft/crates
Claude cb0e0cb2e5
Follow-up to #393: the embedded-JPEG scan shares a work budget
scan_for_jpeg walks every JPEG-like start in a container it can't parse;
each walk runs through the marker segments that follow (up to 4096) and
their entropy data. A crafted CRW/MRW/X3F (or unsupported TIFF raw) of
fake starts one after another makes every walk cover most of the file:
quadratic, about a minute for 40 MB, on the import's probe thread. The
walks now report how far they read and share a budget of eight times the
file's size (at least 1 MiB); real files' candidates fail within a few
bytes or are the preview itself. Test: 200,000 fake starts, 0.15 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01912WaK6Rmew3wxZuPyX7E8
2026-10-08 22:03:26 +00:00
..
catalog LRC-LIB-LIBFOLDERS: a chosen folder that follows a move keeps its names' case and the platform's separators 2026-10-08 16:41:11 -04:00
codecs Merge PR #257 2026-10-08 17:21:02 +00:00
color Issue #188: D65 reads as a small positive tint (test from #336) 2026-10-08 17:26:01 +00:00
develop Merge remote-tracking branch 'origin/main' into claude/fix-316-section-eye 2026-10-08 19:18:55 +00:00
engine Merge PR #393 2026-10-08 22:00:34 +00:00
fetch Fetch: say where the bearer token goes (#259) 2026-10-08 17:55:31 +00:00
geom Crop: drag_crop domain operation for handle drags (#295) 2026-10-08 10:35:46 -04:00
gpu Merge remote-tracking branch 'origin/main' into claude/fix-316-section-eye 2026-10-08 19:18:55 +00:00
mcp Merge PR #393 2026-10-08 22:00:34 +00:00
merge LR-EDIT-OPTICS-PROFILE: apply the distortion correction Panasonic/Leica record in RW2/RWL (#256) 2026-10-08 00:13:58 -04:00
meta M11.1: add CR3 decoding 2026-10-08 22:22:13 +03:00
pipeline Merge remote-tracking branch 'origin/main' into claude/fix-316-section-eye 2026-10-08 19:18:55 +00:00
preview Thumbnails: retire the replaced preview cache so its old jobs can't write 2026-10-07 20:23:17 -04:00
raster Merge pull request #56 from storytold/pr/never-crash-core 2026-10-04 14:23:22 -04:00
raw Follow-up to #393: the embedded-JPEG scan shares a work budget 2026-10-08 22:03:26 +00:00
scenes Never crash: color, geom, raster, develop, scenes, preview, pipeline 2026-10-04 12:34:53 -04:00
segment Fetch: a bearer token is sent only when the caller names its variable 2026-10-07 22:59:01 -04:00
sysmem Never crash: move the one unsafe FFI call into crates/sysmem 2026-10-05 02:06:08 -04:00
tiff Issue #138: DNG: apply the file's own camera-profile look (HueSatMap, LookTable, ToneCurve) 2026-10-06 10:36:30 -04:00
ui-egui Merge PR #387 2026-10-08 21:26:34 +00:00