Skip to main content

MAX_TREE_DEPTH

Constant MAX_TREE_DEPTH 

Source
pub const MAX_TREE_DEPTH: usize = 64;
Expand description

DoS-Cap fuer die rekursive Baum-Tiefe.

Schuetzt den rekursiven build_element-Aufruf vor Stack-Overflow bei adversarial deeply-nested XML-Inputs (TS-1-Finding 3, docs/test-harness/plan.md). Realistische DDS-XML-Profile gehen 4-8 tief; selbst komplexe <application>-/<participant>- Verschachtelungen bleiben unter 32.