Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 9, 2024

Conversation

miss-islington
Copy link
Contributor

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

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>
@colesbury colesbury enabled auto-merge (squash) May 9, 2024 18:59
@colesbury colesbury merged commit 846cfb9 into python:3.13 May 9, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants