]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118561: Fix crash involving list.extend in free-threaded build (#118723)
authorSam Gross <colesbury@gmail.com>
Thu, 9 May 2024 18:52:27 +0000 (14:52 -0400)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 18:52:27 +0000 (18:52 +0000)
commit2402715e10d00ef60fad2948d8461559d084eb36
treed51f944413b662d75594bbbe9cbcb0e0c0db6f22
parent82abe75e77129bebb3c13d807e8040f6924194f6
gh-118561: Fix crash involving list.extend in free-threaded build (#118723)

The `list_preallocate_exact` function did not zero initialize array
contents. In the free-threaded build, this could expose uninitialized
memory to concurrent readers between the call to
`list_preallocate_exact` and the filling of the array contents with
items.
Misc/NEWS.d/next/Core and Builtins/2024-05-07-16-57-56.gh-issue-118561.wNMKVd.rst [new file with mode: 0644]
Objects/listobject.c