]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117657: Fix data race in `compare_unicode_unicode_threadsafe` (gh-131746)
authorSam Gross <colesbury@gmail.com>
Wed, 26 Mar 2025 13:01:57 +0000 (09:01 -0400)
committerGitHub <noreply@github.com>
Wed, 26 Mar 2025 13:01:57 +0000 (09:01 -0400)
commit5abff6960b4aecb0d5c81c7482cf3faa74e1983d
tree8bbc8da56e7744e1bacf02bf74786897ea9a255d
parentac12de2e6a6f5c1da83de0412bb7d03c28fdab63
gh-117657: Fix data race in `compare_unicode_unicode_threadsafe` (gh-131746)

We can't safely check the type of the found key until we incref it or if we know that it's immortal.
Objects/dictobject.c