]> 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:34:06 +0000 (05:34 -0800)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2020 13:34:06 +0000 (05:34 -0800)
commit0c1827e70c1c05ce1982a34380cea7d391904293
treee253ef69b53e82c3838142390fcaf054dff0fc8e
parentd6965ff026f35498e554bc964ef2be8f4d80eb7f
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