]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134908: Protect `textiowrapper_iternext` with critical section (gh-134910)
authorDuane Griffin <duaneg@dghda.com>
Mon, 2 Jun 2025 17:22:41 +0000 (05:22 +1200)
committerGitHub <noreply@github.com>
Mon, 2 Jun 2025 17:22:41 +0000 (17:22 +0000)
commit44fb7c361cb24dcf9989a7a1cfee4f6aad5c81aa
tree56491c3174242f2d4a8196e884301f6d37736ed8
parent055827528fa50c9a7707792f5fe264c4e20c07e9
gh-134908: Protect `textiowrapper_iternext` with critical section (gh-134910)

The `textiowrapper_iternext` function called `_textiowrapper_writeflush`, but did not
use a critical section, making it racy in free-threaded builds.
Lib/test/test_io.py
Misc/NEWS.d/next/Core_and_Builtins/2025-05-30-15-56-19.gh-issue-134908.3a7PxM.rst [new file with mode: 0644]
Modules/_io/textio.c