Skip to main content

MAX_BLOB_READ_BYTES

Constant MAX_BLOB_READ_BYTES 

Source
pub const MAX_BLOB_READ_BYTES: usize = 16_000_000;
Expand description

Hard ceiling for a single git cat-file blob read. Sized with headroom above max_changed_file_size (5 MB) so legitimate large changed files still load, while a pathological multi-hundred-MB blob is drained and rejected instead of allocated up front.