Skip to main content

MAX_MULTIPART_DEPTH

Constant MAX_MULTIPART_DEPTH 

Source
pub const MAX_MULTIPART_DEPTH: usize = 100;
Expand description

Maximum nesting depth for multipart/* parts during inbound parse. Real-world archive formats nest at most ~10 levels; 100 leaves generous headroom while preventing stack-overflow on adversarial input with deeply-nested multipart parts.