Skip to main content

MAX_ARCHIVE_BYTES

Constant MAX_ARCHIVE_BYTES 

Source
pub const MAX_ARCHIVE_BYTES: u64 = _; // 54_525_952u64
Expand description

Maximum archive size accepted by download_and_extract: 50 MiB.

Checked against Content-Length before reading the body. Prevents memory exhaustion from oversized or gzip-bombed archives served by a malicious host.