gh-90949: expose Expat API to tune exponential expansion protections#139368
gh-90949: expose Expat API to tune exponential expansion protections#139368picnixz merged 7 commits intopython:mainfrom
Conversation
Misc/NEWS.d/next/Library/2025-09-26-18-04-28.gh-issue-90949.YHjSzX.rst
Outdated
Show resolved
Hide resolved
picnixz
left a comment
There was a problem hiding this comment.
I've updated the PR from the web UI but I'll do the rest tomorrow.
hartwork
left a comment
There was a problem hiding this comment.
@picnixz I like this new version! 👍
One question: There were changes in here to the previous related news file. This is what it reads on main today:
# cat Misc/NEWS.d/next/Library/2025-09-22-14-40-11.gh-issue-90949.UM35nb.rst
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.
Patch by Bénédikt Tran.From what we discussed here, this should probably says things about tuning also?
Should you or me create a follow-up pull request to adjust that after this?
|
I'll amend the NEWS as part of this PR. |
|
Since this is built on top of many other PRs, I'll just wait for the others to be backported first. |
This is built on top of #139366.
cc @hartwork
📚 Documentation preview 📚: https://cpython-previews--139368.org.readthedocs.build/