-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add limits to reading XML inputs (#319)
This PR adds limits to XML parsing to avoid memory exhaustion by ill-crafted XML input. It adds “trip counter” to the reader that feeds data into the XML parser which limits the size of an opening tag to 1,000,000 bytes and the content of certain XML elements to 100,000,000 bytes. This, together with the XML parser itself not keeping data buffered protects against exploding compressed data.
- Loading branch information
Showing
8 changed files
with
401 additions
and
166 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
Oops, something went wrong.