From 682ce0d8a0ec97d070413459ea54c8e2092d68ce 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 9824d099c3df7d0..e0cff33b53227ae 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 97b23936928d916..a40fcd35ef99ae4 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`