summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>2020-02-22 13:11:48 (GMT)
committerGitHub <noreply@github.com>2020-02-22 13:11:48 (GMT)
commit1c56f8ffad44478b4214a2bf8eb7cf51c28a347a (patch)
treec2303c03737343e14f7720a97200bb007845ac7b /Misc/NEWS.d
parenta025d4ca99fb4c652465368e0b4eb03cf4b316b9 (diff)
downloadcpython-1c56f8ffad44478b4214a2bf8eb7cf51c28a347a.zip
cpython-1c56f8ffad44478b4214a2bf8eb7cf51c28a347a.tar.gz
cpython-1c56f8ffad44478b4214a2bf8eb7cf51c28a347a.tar.bz2
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.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-02-18-01-40-13.bpo-39382.OLSJu9.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-02-18-01-40-13.bpo-39382.OLSJu9.rst b/Misc/NEWS.d/next/Core and Builtins/2020-02-18-01-40-13.bpo-39382.OLSJu9.rst
new file mode 100644
index 0000000..605f4c8
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-02-18-01-40-13.bpo-39382.OLSJu9.rst
@@ -0,0 +1,3 @@
+Fix a use-after-free in the single inheritance path of ``issubclass()``, when
+the ``__bases__`` of an object has a single reference, and so does its first item.
+Patch by Yonatan Goldschmidt.