summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorjdemeyer <jdemeyer@cage.ugent.be>2018-09-07 07:37:00 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-09-07 07:37:00 (GMT)
commit8f735485acf2e35a75d2fa019feb8f905598c4e5 (patch)
tree5c83af13e9684ef31260e332158ab5408cdbef02 /Misc
parent593bb30e82eded7f2ec02f7d1aa49742e6962113 (diff)
downloadcpython-8f735485acf2e35a75d2fa019feb8f905598c4e5.zip
cpython-8f735485acf2e35a75d2fa019feb8f905598c4e5.tar.gz
cpython-8f735485acf2e35a75d2fa019feb8f905598c4e5.tar.bz2
bpo-25750: fix refcounts in type_getattro() (GH-6118)
When calling tp_descr_get(self, obj, type), make sure that we own a strong reference to "self".
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2018-03-14-21-42-17.bpo-25750.lxgkQz.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-03-14-21-42-17.bpo-25750.lxgkQz.rst b/Misc/NEWS.d/next/Core and Builtins/2018-03-14-21-42-17.bpo-25750.lxgkQz.rst
new file mode 100644
index 0000000..09ffb36
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-03-14-21-42-17.bpo-25750.lxgkQz.rst
@@ -0,0 +1,2 @@
+Fix rare Python crash due to bad refcounting in ``type_getattro()`` if a
+descriptor deletes itself from the class. Patch by Jeroen Demeyer.