mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-20 00:55:43 +00:00
The read's limit (the floor or the memory budget) bounds the planes it allocates; one block the decompressor allocates whole is capped apart, at the fixed floor (8 GiB, 512 MiB in the browser), with craft-exr's max_block_bytes. A larger block is a damaged or hostile header, refused for its size before anything is read. That refusal doesn't depend on the limit, so remembering it for requests asking at least as much stays right; after a limit change it is only decided once more.