SIGN IN SIGN UP

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

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 2402715e10d00ef60fad2948d8461559d084eb36)

Co-authored-by: Sam Gross <colesbury@gmail.com>
M
Miss Islington (bot) committed
846cfb9a67fa4bdb81cd482a4a9e41a089ea80b3
Parent: 098eec9
Committed by GitHub <noreply@github.com> on 5/9/2024, 7:14:47 PM