[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)
…rs in pyexpat (pythonGH-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)
Co-authored-by: Sebastian Pipping sebastian@pipping.org
bot mentioned this pull request
picnixz pushed a commit that referenced this pull request
hugovk pushed a commit that referenced this pull request
danigm pushed a commit to openSUSE-Python/cpython that referenced this pull request
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 }})