| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
… protections (pythonGH-139368) (python#151401) Expose the XML Expat 2.7.2 APIs to tune protections against "billion laughs" [1] attacks. The exposed APIs are available on Expat parsers, that is, parsers created by `xml.parsers.expat.ParserCreate()`, as: - `parser.SetBillionLaughsAttackProtectionActivationThreshold(threshold)`, and - `parser.SetBillionLaughsAttackProtectionMaximumAmplification(max_factor)`. This completes the work in f04bea4, and improves the existing related documentation. [1]: https://en.wikipedia.org/wiki/Billion_laughs_attack (cherry picked from commit 6661123) (cherry picked from commit 19bc391) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> (cherry picked from commit db195e3)
Documentation build overview577 files changed · + 19 added · ± 470 modified · - 88 deleted + Added
± Modified
- Deleted |
Sorry, something went wrong.
|
CC @python/windows-team any ideas as to why the Windows build failed? |
Sorry, something went wrong.
|
Windows should pass now #153610 is merged. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Expose the XML Expat 2.7.2 APIs to tune protections against "billion laughs" [1] attacks.
The exposed APIs are available on Expat parsers, that is, parsers created by xml.parsers.expat.ParserCreate(), as:
This completes the work in f04bea4, and improves the existing related documentation.
[1]: https://en.wikipedia.org/wiki/Billion_laughs_attack (cherry picked from commit 6661123) (cherry picked from commit 19bc391)
(cherry picked from commit db195e3)