]> 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:22:48 +0000 (13:22 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Sep 2022 20:22:48 +0000 (13:22 -0700)
commit3124618fd5be9c00b1521c8a980f6aea02dc1a48
tree0bb7080a02eecc816f68bb74e840ca4764ca42c8
parentcdc01eaed9d19c17b4f01c3da3ca125c49fdffa5
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