]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-102356: Add thrashcan macros to filter object dealloc (GH-102426)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Mar 2023 11:20:41 +0000 (03:20 -0800)
committerGitHub <noreply@github.com>
Sun, 5 Mar 2023 11:20:41 +0000 (03:20 -0800)
commitd4a04e55d8bd8eaa307f3e4aa8b443301a0d996a
treeebf345b79cb8ef303c61a6d23624454311e8ffc6
parentd4992c7315c1b92a73eec30407ed0cf3b673194a
gh-102356: Add thrashcan macros to filter object dealloc (GH-102426)

Add thrashcan macros to the deallocator of the filter objects to protect against deeply nested destruction of chains of nested filters.
(cherry picked from commit 66aa78cbe604a7c5731f074b869f92174a8e3b64)

Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
Lib/test/test_builtin.py
Misc/ACKS
Misc/NEWS.d/next/Core and Builtins/2023-03-04-20-56-12.gh-issue-102356.07KvUd.rst [new file with mode: 0644]
Python/bltinmodule.c