Skip to content

[3.13] gh-118561: Fix crash involving list.extend in free-threaded build (GH-118723) - #118863

Merged
colesbury merged 1 commit into
python:3.13from
miss-islington:backport-2402715-3.13
May 9, 2024
Merged

colesbury merged 1 commit into
python:3.13from
miss-islington:backport-2402715-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented May 9, 2024 •

Copy link
Copy Markdown
Contributor

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.
(cherry picked from commit 2402715)

Co-authored-by: Sam Gross colesbury@gmail.com

…ld (pythonGH-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.
(cherry picked from commit 2402715)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants