Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Resolve entities defined in DOCTYPE recursively
Entity expansion loops are detected and avoided. In addition, there is a limit on the length of an entity expansion (to guard against attacks like the billion laughs attack). This can be adjusted using the new exported field `psEntityExpansionSizeLimit` on ParseSettings. By default it is set at 8192. Add tests, including a test for the billion laughs attack.
- Loading branch information
Showing
2 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters