]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-129732: Fix race on `shared->array` in qsbr code under free-threading ...
authorSam Gross <colesbury@gmail.com>
Thu, 6 Feb 2025 19:30:16 +0000 (14:30 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2025 19:30:16 +0000 (14:30 -0500)
commitf7cc8623457ed0f79bddd32dd680303584684641
treedb78eb07ed63fdd65982682bcf59bf694688ca46
parent356a9e646c0e00a8f8941cab1a9bd9d58597fd15
[3.13] gh-129732: Fix race on `shared->array` in qsbr code under free-threading (gh-129738) (gh-129747)

The read of `shared->array` should happen under the lock to avoid a race.
(cherry picked from commit b4ff8b22b3066b814c3758f87eaddfa923e657ed)

Co-authored-by: Peter Hawkins <phawkins@google.com>
Misc/NEWS.d/next/Core and Builtins/2025-02-06-17-57-33.gh-issue-129732.yl97oq.rst [new file with mode: 0644]
Python/qsbr.c