]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-97592: Fix crash in C remove_done_callback due to evil code (GH-97660)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 30 Sep 2022 20:28:27 +0000 (13:28 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Sep 2022 20:28:27 +0000 (13:28 -0700)
commit54bbb5e3363ef3634f1fd7521ba3f3c42c81a331
tree137e682acc1ac3d9710a05715fa417be7235f9a4
parenta5c503f296a104d8b5b2e917a2f1ef71be888e1b
GH-97592: Fix crash in C remove_done_callback due to evil code (GH-97660)

Evil code could cause fut_callbacks to be cleared when PyObject_RichCompareBool is called.
(cherry picked from commit 63780f4599acc2c5ee8af5f37ab76c162ad21065)

Co-authored-by: Guido van Rossum <guido@python.org>
Lib/test/test_asyncio/test_futures.py
Misc/NEWS.d/next/Library/2022-09-29-23-22-24.gh-issue-97592.tpJg_J.rst [new file with mode: 0644]
Modules/_asynciomodule.c