DescriptionMake the XML entity recursion check more precise.
libxml doesn't detect entity recursion specifically but has a variety
of related checks, such as entities not expanding too deeply or
producing exponential blow-ups in content.
Because entity declarations are parsed in a separate context with
their own element recursion budget, a recursive entity can overflow
the stack using a lot of open elements (but within the per-context
limit) as it slowly consumes (but does not exhaust) the entity depth
budget.
This adds a specific, precise check for recursive entities that
detects entity recursion specifically and fails immediately.
The existing entity expansion depth checks are still relevant for long
chains of different entities.
BUG=628581
Committed: https://crrev.com/acca03bd98815a12daf812471f649041f5381571
Cr-Commit-Position: refs/heads/master@{#436899}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Feedback. #
Messages
Total messages: 16 (9 generated)
|