From eda2963378a3c292cf6bb202bb00e94e46ee6d90 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 4 Mar 2024 02:36:27 -0800 Subject: [PATCH] gh-115398: Increment PyExpat_CAPI_MAGIC for SetReparseDeferralEnabled addition (GH-116301) * Increment PyExpat_CAPI_MAGIC due to SetReparseDeferralEnabled addition. This is a followup to git commit 6a95676bb526261434dd068d6c49927c44d24a9b from Github PR #115623. * RESTify news API list. --- Include/pyexpat.h | 2 +- .../2024-02-18-03-14-40.gh-issue-115398.tzvxH8.rst | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Include/pyexpat.h b/Include/pyexpat.h index 9824d099c3d..e0cff33b532 100644 --- a/Include/pyexpat.h +++ b/Include/pyexpat.h @@ -3,7 +3,7 @@ /* note: you must import expat.h before importing this module! */ -#define PyExpat_CAPI_MAGIC "pyexpat.expat_CAPI 1.1" +#define PyExpat_CAPI_MAGIC "pyexpat.expat_CAPI 1.2" #define PyExpat_CAPSULE_NAME "pyexpat.expat_CAPI" struct PyExpat_CAPI diff --git a/Misc/NEWS.d/next/Security/2024-02-18-03-14-40.gh-issue-115398.tzvxH8.rst b/Misc/NEWS.d/next/Security/2024-02-18-03-14-40.gh-issue-115398.tzvxH8.rst index 97b23936928..a40fcd35ef9 100644 --- a/Misc/NEWS.d/next/Security/2024-02-18-03-14-40.gh-issue-115398.tzvxH8.rst +++ b/Misc/NEWS.d/next/Security/2024-02-18-03-14-40.gh-issue-115398.tzvxH8.rst @@ -1,8 +1,8 @@ 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`` +* :meth:`xml.etree.ElementTree.XMLParser.flush` +* :meth:`xml.etree.ElementTree.XMLPullParser.flush` +* :meth:`xml.parsers.expat.xmlparser.GetReparseDeferralEnabled` +* :meth:`xml.parsers.expat.xmlparser.SetReparseDeferralEnabled` +* :meth:`xml.sax.expatreader.ExpatParser.flush`