cpython/Lib/xml/etree
Sebastian Pipping 516a6d4237
[3.10] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) (GH-115623) (GH-116270)
Allow controlling Expat >=2.6.0 reparse deferral (CVE-2023-52425) by adding five new methods:

- `xml.etree.ElementTree.XMLParser.flush`
- `xml.etree.ElementTree.XMLPullParser.flush`
- `xml.parsers.expat.xmlparser.GetReparseDeferralEnabled`
- `xml.parsers.expat.xmlparser.SetReparseDeferralEnabled`
- `xml.sax.expatreader.ExpatParser.flush`

Based on the "flush" idea from https://github.com/python/cpython/pull/115138#issuecomment-1932444270 .

Includes code suggested-by: Snild Dolkow <snild@sony.com>
and by core dev Serhiy Storchaka.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2024-03-07 00:02:55 +01:00
..
__init__.py Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478) 2021-07-30 16:25:28 +02:00
cElementTree.py bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." (GH-20117) 2020-06-10 17:39:12 +02:00
ElementInclude.py Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478) 2021-07-30 16:25:28 +02:00
ElementPath.py [3.10] bpo-43504: Remove effbot urls (GH-26308) (#92161) 2022-05-02 12:21:51 -06:00
ElementTree.py [3.10] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) (GH-115623) (GH-116270) 2024-03-07 00:02:55 +01:00