Skip to main content

MAX_HEADER_BLOCK

Constant MAX_HEADER_BLOCK 

Source
pub const MAX_HEADER_BLOCK: usize = _; // 10_485_760usize
Expand description

Hard cap on a commit/tag header block (everything before the blank line). Real gpgsig/mergetag blocks are a few KiB; 10 MiB refuses pathological input before any allocation amplification.