]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Dec 2021 19:04:59 +0000 (11:04 -0800)
committerGitHub <noreply@github.com>
Sun, 5 Dec 2021 19:04:59 +0000 (11:04 -0800)
commit52a9a71fe682e47f6c78a9c34aa9a797ca632c86
tree1af19e896e075cbdd5abd2cac8947f891d90f84b
parent257eea55860c5f35acce49c062c5823c7a3a1317
bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)

Getting an attribute via attrib.get() simultaneously with replacing
the attrib dict can lead to access to deallocated dict.
(cherry picked from commit d15cdb2f32f572ce56d7120135da24b9fdce4c99)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_xml_etree_c.py
Misc/NEWS.d/next/Library/2021-12-04-20-08-42.bpo-27946.-Vuarf.rst [new file with mode: 0644]
Modules/_elementtree.c