mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-01 22:17:53 -06:00
On wasm32 a PRVW/THMB box or JPEG length near u32::MAX wrapped j + len and start + size, so both bounds checks passed and the slice panicked (abort in the web build). Use checked_add and bytes.get, and add a regression test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014ti8KemZbjE2ZgHgV1q1BM