]> 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:52 +0000 (11:04 -0800)
committerGitHub <noreply@github.com>
Sun, 5 Dec 2021 19:04:52 +0000 (11:04 -0800)
commitbeb834292db54fea129dd073cc822179430cee52
treee4a3383665647e721132b178ca028020a725f384
parentf6648e229edf07a1e4897244d7d34989dd9ea647
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