Skip to main content

MAX_CONTENT_LENGTH

Constant MAX_CONTENT_LENGTH 

Source
pub const MAX_CONTENT_LENGTH: usize = _; // 16_777_216usize
Expand description

The largest Content-Length this server will act on.

The header is attacker-controlled and feeds two allocations directly, so an unbounded value ends the process rather than the request. DAP payloads carry source text and variable dumps, not bulk data, so this ceiling is far above any legitimate message.