diff options
author | Sam Gross <colesbury@gmail.com> | 2024-05-09 18:52:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-09 18:52:27 (GMT) |
commit | 2402715e10d00ef60fad2948d8461559d084eb36 (patch) | |
tree | d51f944413b662d75594bbbe9cbcb0e0c0db6f22 /Misc | |
parent | 82abe75e77129bebb3c13d807e8040f6924194f6 (diff) | |
download | cpython-2402715e10d00ef60fad2948d8461559d084eb36.zip cpython-2402715e10d00ef60fad2948d8461559d084eb36.tar.gz cpython-2402715e10d00ef60fad2948d8461559d084eb36.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2024-05-07-16-57-56.gh-issue-118561.wNMKVd.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-05-07-16-57-56.gh-issue-118561.wNMKVd.rst b/Misc/NEWS.d/next/Core and Builtins/2024-05-07-16-57-56.gh-issue-118561.wNMKVd.rst new file mode 100644 index 0000000..9eaf0abb --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2024-05-07-16-57-56.gh-issue-118561.wNMKVd.rst @@ -0,0 +1,2 @@ +Fix race condition in free-threaded build where :meth:`list.extend` could expose +uninitialied memory to concurrent readers. |