EBML containers could contain an unbounded number of small elements. The parser retained each element, allowing a crafted Matroska file to consume disproportionate memory. Reject containers that exceed a per-level element count limit.
algorithm
std::min
max
std::find_if