cpython/Modules/clinic
Sebastian Pipping 854f645294
[3.8] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) (GH-115623) (GH-116275)
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:03:44 +01:00
..
_abc.c.h
_asynciomodule.c.h [3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) (GH-16141) 2019-09-14 13:31:50 +03:00
_bz2module.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
_codecsmodule.c.h [3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) (GH-16141) 2019-09-14 13:31:50 +03:00
_collectionsmodule.c.h
_contextvarsmodule.c.h
_cryptmodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
_curses_panel.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
_cursesmodule.c.h [3.8] [3.9] bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874). (GH-24077) (GH-24079) 2021-01-04 10:58:09 +02:00
_datetimemodule.c.h
_dbmmodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
_elementtree.c.h [3.8] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) (GH-115623) (GH-116275) 2024-03-07 00:03:44 +01:00
_gdbmmodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
_hashopenssl.c.h bpo-38132: Simplify _hashopenssl code (GH-16023) (#16040) 2019-09-12 14:03:50 +01:00
_heapqmodule.c.h
_lzmamodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
_opcode.c.h
_operator.c.h
_pickle.c.h bpo-39426: Fix outdated default and highest protocols in docs (GH-18154) 2020-01-24 02:20:35 -08:00
_queuemodule.c.h
_randommodule.c.h
_sre.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
_ssl.c.h [3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) (GH-16141) 2019-09-14 13:31:50 +03:00
_statisticsmodule.c.h [3.8] bpo-37942: Improve argument clinic float converter (GH-15470) (GH-15480) 2019-08-24 19:45:12 -07:00
_struct.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
_tkinter.c.h [3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) (GH-16141) 2019-09-14 13:31:50 +03:00
_tracemalloc.c.h
_weakref.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
_winapi.c.h
arraymodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
audioop.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
binascii.c.h [3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) (GH-16141) 2019-09-14 13:31:50 +03:00
cmathmodule.c.h [3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) (GH-16141) 2019-09-14 13:31:50 +03:00
fcntlmodule.c.h
gcmodule.c.h
grpmodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
itertoolsmodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
mathmodule.c.h [3.8] bpo-37942: Improve argument clinic float converter (GH-15470) (GH-15480) 2019-08-24 19:45:12 -07:00
md5module.c.h
posixmodule.c.h bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121) 2021-04-09 23:06:17 +01:00
pwdmodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
pyexpat.c.h [3.8] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) (GH-115623) (GH-116275) 2024-03-07 00:03:44 +01:00
resource.c.h
selectmodule.c.h [3.8] bpo-31938: Fix default-value signatures of several functions in the select module (GH-21066) (GH-21098) 2020-06-23 15:17:02 -07:00
sha1module.c.h
sha256module.c.h
sha512module.c.h
signalmodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
spwdmodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
symtablemodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00
unicodedata.c.h [3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) (GH-16141) 2019-09-14 13:31:50 +03:00
zlibmodule.c.h [3.8] bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593). (GH-15599) 2019-08-29 18:29:59 +03:00