Skip to main content

BODY_TRAVERSAL_LIMIT_WORDS

Constant BODY_TRAVERSAL_LIMIT_WORDS 

Source
pub const BODY_TRAVERSAL_LIMIT_WORDS: u64 = _; // 2_097_152u64
Expand description

Reviewed decode caps for the single signed-body decode (v16 §5.2).

Cap’n Proto’s pointer-traversal amplification is bounded by the traversal limit (in 8-byte words); nesting depth bounds recursion. These are deliberately far below ReaderOptions::default()’s 64 MiB traversal allowance: an RPC request body is transport-size-capped well below this, so the caps bound decode work without constraining any legitimate request.