Skip to main content

inflate_limited

Function inflate_limited 

Source
pub fn inflate_limited(
    data: &[u8],
    max_output: usize,
) -> Result<Vec<u8>, ErrorsJSL>
Expand description

Decompresses a raw DEFLATE stream, failing if the output would exceed max_output bytes (a guard against decompression bombs, which expand up to about 1000 to 1).