maxSemanticTreeDepth top-level constant
int
const maxSemanticTreeDepth
Maximum tree depth the decoder will reconstruct. The frame payload cap
already bounds total bytes (and thus node count), but a hostile or corrupt
patch could still encode a very deep childIds chain; capping recursion
depth turns that into a pruned subtree instead of a stack overflow. Far
beyond any real UI nesting.
Implementation
const int maxSemanticTreeDepth = 1024;