[3.14] gh-139400: Make sure that parent parsers outlive their subparsers in pyexpat (GH-139403) by miss-islington · Pull Request #139606 · python/cpython (original) (raw)

@hartwork @miss-islington

…rs in pyexpat (pythonGH-139403)

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)

Co-authored-by: Sebastian Pipping sebastian@pipping.org

@bedevere-app bot mentioned this pull request

Oct 5, 2025

picnixz pushed a commit that referenced this pull request

Oct 6, 2025

@hartwork

hugovk pushed a commit that referenced this pull request

Oct 6, 2025

@hartwork

danigm pushed a commit to openSUSE-Python/cpython that referenced this pull request

Oct 7, 2025

@hartwork @danigm

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

[ Show hidden characters]({{ revealButtonHref }})