]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Nov 2020 14:21:53 +0000 (06:21 -0800)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 14:21:53 +0000 (06:21 -0800)
commit109c17315af124b25853c248f4a9bf00f03036f6
tree3c3e9b52e6210a7d791d5d25308d85d08133fabd
parentdb087f6d9ef9a7c873cd883ee120126fc0ca0c72
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)

The overflow occurs under some circumstances when a task or future
recursively returns itself.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 42d873c63aa9d160c132be4a34599531574db12c)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Lib/asyncio/base_futures.py
Lib/test/test_asyncio/test_futures2.py [new file with mode: 0644]
Misc/NEWS.d/next/Library/2020-10-29-11-17-35.bpo-42183.50ZcIi.rst [new file with mode: 0644]