Skip to main content

MAX_DECOMPRESSED_BLOCK_BUFFER_BYTES

Constant MAX_DECOMPRESSED_BLOCK_BUFFER_BYTES 

Source
pub const MAX_DECOMPRESSED_BLOCK_BUFFER_BYTES: usize = _; // 134_217_728usize
Expand description

Ceiling on each decompressed buffer (dependencies, objects) of one block. Real blocks are at most a few tens of MiB (a configured buffer size can be exceeded by the last object), and an incompressible image payload can’t exceed the 100 MiB ingestion body limit. 128 MiB leaves headroom for both (a raw 8K RGBA frame is about 126.6 MiB) while capping a decompression bomb’s footprint.