Skip to main content

Module stack_safe

Module stack_safe 

Source
Expand description

Stack-safe parsing utilities

This module provides utilities for parsing deeply nested PDF structures without risking stack overflow. It implements recursion limits and iterative alternatives to recursive algorithms.

Structs§

RecursionGuard
RAII guard for recursion depth tracking
ReferenceStackGuard
RAII guard for reference stack tracking
StackSafeContext
Stack-safe parsing context

Constants§

MAX_RECURSION_DEPTH
Maximum recursion depth for PDF parsing operations
PARSING_TIMEOUT_SECS
Timeout for long-running parsing operations (in seconds)