FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` (GH-139403) by hartwork · Pull Request #139608 · python/cpython · GitHub

/ cpython Public

[3.13] gh-139400: Make sure that parent parsers outlive their subparsers in pyexpat (GH-139403) - #139608

Merged
encukou merged 2 commits into
python:3.13from
hartwork:backport-6edb2dd-3.13
Oct 6, 2025
Merged

[3.13] gh-139400: Make sure that parent parsers outlive their subparsers in pyexpat (GH-139403)#139608
encukou merged 2 commits into
python:3.13from
hartwork:backport-6edb2dd-3.13

Conversation

hartwork commented Oct 5, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

…rs in `pyexpat` (python#139403)

* Modules/pyexpat.c: Disallow collection of in-use parent parsers.

Within libexpat, a parser created via `XML_ExternalEntityParserCreate`
is relying on its parent parser throughout its entire lifetime.
Prior to this fix, is was possible for the parent parser to be
garbage-collected too early.

(cherry picked from commit 6edb2dd)
hartwork changed the title [3.13] gh-139400: Make sure that parent parsers outlive their subparsers in pyexpat (GH-139403) [3.13] gh-139400: Make sure that parent parsers outlive their subparsers in pyexpat (GH-139403) Oct 5, 2025
picnixz added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Oct 5, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @picnixz for commit ae0a3c3 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F139608%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Oct 5, 2025
encukou merged commit 69ab8fb into python:3.13 Oct 6, 2025
41 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL