summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-24 09:25:05 (GMT)
committerGitHub <noreply@github.com>2023-12-24 09:25:05 (GMT)
commit15ea4a429245ddb9d919757308777521f61c681c (patch)
tree779ef5f3d571eeba95290746f9fa96e564a3462e /Python/Python-ast.c
parent7f2ebc84e8066e2c51feb6ef6403360922bbc0aa (diff)
downloadcpython-15ea4a429245ddb9d919757308777521f61c681c.zip
cpython-15ea4a429245ddb9d919757308777521f61c681c.tar.gz
cpython-15ea4a429245ddb9d919757308777521f61c681c.tar.bz2
[3.12] gh-111784: Fix two segfaults in the elementtree module (GH-113405) (GH-113446)
First fix resolve situation when pyexpat module (which contains expat_CAPI capsule) deallocates before _elementtree, so we need to hold a strong reference to pyexpat module to. Second fix resolve situation when module state is deallocated before deallocation of XMLParser instances, which uses module state to clear some stuff. (cherry picked from commit 894f0e573d9eb49cd5864c44328f10a731852dab) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions