]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39382: Avoid dangling object use in abstract_issubclass() (GH-18530)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 22 Feb 2020 13:32:36 +0000 (05:32 -0800)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2020 13:32:36 +0000 (05:32 -0800)
commit43a0137c87b997c6ba8b23cc3281ce2de18f008a
treeb2dac651b461fa53032ac7d3f3f9291da9c542e1
parent00e45877e33d32bb61aa13a2033e3bba370bda4d
bpo-39382: Avoid dangling object use in abstract_issubclass() (GH-18530)

Hold reference of __bases__ tuple until tuple item is done with, because by
dropping the reference the item may be destroyed.
(cherry picked from commit 1c56f8ffad44478b4214a2bf8eb7cf51c28a347a)

Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
Lib/test/test_isinstance.py
Misc/ACKS
Misc/NEWS.d/next/Core and Builtins/2020-02-18-01-40-13.bpo-39382.OLSJu9.rst [new file with mode: 0644]
Objects/abstract.c