Skip to main content

skip_value

Function skip_value 

Source
pub fn skip_value(
    d: &mut Decoder<'_>,
    max_depth: usize,
) -> Result<(), HeaderError>
Expand description

Skips one CBOR value iteratively, refusing to recurse and refusing to nest deeper than max_depth.

minicbor has its own skip, but the protocol requires a specific, auditable bound on hostile nesting; a value that nests deeper is rejected rather than tolerated.