]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143004: Fix possible use-after-free in collections.Counter.update() (GH-143044)
authorkaushal trivedi <155625932+Kaushalt2004@users.noreply.github.com>
Thu, 25 Dec 2025 09:13:39 +0000 (14:43 +0530)
committerGitHub <noreply@github.com>
Thu, 25 Dec 2025 09:13:39 +0000 (09:13 +0000)
commit86d904588e8c84c7fccb8faf84b343f03461970d
treee3f5150079999805ce4181f8e3067d1670dfb14d
parentcf6758ff9ebd6df8ac2a87755cdbad674c49c9cb
gh-143004: Fix possible use-after-free in collections.Counter.update() (GH-143044)

This happened when the Counter was mutated when incrementing
the value for an existing key.
Lib/test/test_collections.py
Misc/NEWS.d/next/Library/2025-12-22-00-00-00.gh-issue-143004.uaf-counter.rst [new file with mode: 0644]
Modules/_collectionsmodule.c