mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-28 20:07:05 -06:00
On wasm32 a near-1 GiB .abr arrives as base64 and is copied several times before decoding; with a 1 GiB sample budget the import could pass 4 GiB and abort the tab instead of failing cleanly. Pick the decoder budget by pointer width (like MAX_DECODED_BYTES) and derive the engine's file cap from it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>