gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` (#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.
S
Sebastian Pipping committed
6edb2ddb5f3695cf4938979d645f31d7fba43ec8
Parent: 13dc2fd
Committed by GitHub <noreply@github.com>
on 10/5/2025, 3:37:42 PM