-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
gh-90949: expose Expat API to tune exponential expansion protections #139368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bba2678
363bcbc
501ef0e
197dfa7
9734458
6c2eab7
3ec2ebd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -558,10 +558,18 @@ xml.parsers.expat | |
|
|
||
| * Add :meth:`~xml.parsers.expat.xmlparser.SetAllocTrackerActivationThreshold` | ||
| and :meth:`~xml.parsers.expat.xmlparser.SetAllocTrackerMaximumAmplification` | ||
| to :ref:`xmlparser <xmlparser-objects>` objects to prevent use of | ||
| disproportional amounts of dynamic memory from within an Expat parser. | ||
| to :ref:`xmlparser <xmlparser-objects>` objects to tune protections against | ||
| disproportional amounts of dynamic memory usage from within an Expat parser. | ||
| (Contributed by Bénédikt Tran in :gh:`90949`.) | ||
|
|
||
| * Add :meth:`~xml.parsers.expat.xmlparser.SetBillionLaughsAttackProtectionActivationThreshold` | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not quite sure how to go about backporting this, I think we'll need to remove it from here?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, you can drop this part in older branches but we still want the versionadded:: next in the docs directly. What's New can be omitted. You can add the explicit Python version when it was added though (3.14.x) and not just 3.14 (don't know if |
||
| and :meth:`~xml.parsers.expat.xmlparser.SetBillionLaughsAttackProtectionMaximumAmplification` | ||
| to :ref:`xmlparser <xmlparser-objects>` objects to tune protections against | ||
| `billion laughs`_ attacks. | ||
| (Contributed by Bénédikt Tran in :gh:`90949`.) | ||
|
|
||
| .. _billion laughs: https://en.wikipedia.org/wiki/Billion_laughs_attack | ||
|
|
||
|
|
||
| zlib | ||
| ---- | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| Add :meth:`~xml.parsers.expat.xmlparser.SetAllocTrackerActivationThreshold` | ||
| and :meth:`~xml.parsers.expat.xmlparser.SetAllocTrackerMaximumAmplification` | ||
| to :ref:`xmlparser <xmlparser-objects>` objects to prevent use of | ||
| disproportional amounts of dynamic memory from within an Expat parser. | ||
| to :ref:`xmlparser <xmlparser-objects>` objects to tune protections against | ||
| disproportional amounts of dynamic memory usage from within an Expat parser. | ||
| Patch by Bénédikt Tran. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| Add | ||
| :meth:`~xml.parsers.expat.xmlparser.SetBillionLaughsAttackProtectionActivationThreshold` | ||
| and | ||
| :meth:`~xml.parsers.expat.xmlparser.SetBillionLaughsAttackProtectionMaximumAmplification` | ||
| to :ref:`xmlparser <xmlparser-objects>` objects to tune protections against | ||
| `billion laughs <https://en.wikipedia.org/wiki/Billion_laughs_attack>`_ attacks. | ||
| Patch by Bénédikt Tran. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.