Skip to main content

MAX_DECOMPRESSED

Constant MAX_DECOMPRESSED 

Source
pub const MAX_DECOMPRESSED: usize = _; // 67_108_864usize
Expand description

Cap on any single LZ4-decompressed payload, protocol-wide (docs/protocol.md “Compressed payloads”). Receivers check the prepended size against it before allocating, so a hostile or corrupt length cannot force a giant allocation.