Skip to main content

MAX_NESTING_DEPTH

Constant MAX_NESTING_DEPTH 

Source
pub const MAX_NESTING_DEPTH: usize = 256;
Expand description

Maximum container (array/dictionary) nesting depth.

pdfcer policy (ARCHITECTURE.md §10): ISO 32000-1 does not bound object nesting (Annex C bounds only q/Q nesting), so the guard value is ours. 256 is far beyond any legitimate document structure while keeping worst-case recursion shallow enough for any thread’s stack.