summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-10-29 11:02:50 (GMT)
committerGitHub <noreply@github.com>2020-10-29 11:02:50 (GMT)
commit60324d26b58c89d68abb23fb42f1563d395c3910 (patch)
treeed2c9384c27821aae8ca39e5bfad84c5d543c65d /Misc
parent577d7c4e628260eb7926d043ca9c355ece583eb7 (diff)
downloadcpython-60324d26b58c89d68abb23fb42f1563d395c3910.zip
cpython-60324d26b58c89d68abb23fb42f1563d395c3910.tar.gz
cpython-60324d26b58c89d68abb23fb42f1563d395c3910.tar.bz2
bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func object (GH-22953) (GH-23021)
func_dealloc() does not handle partially-created objects. Best not to give it any. (cherry picked from commit 350526105fa9b131d8b941ae753378b741dabb2f) Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-10-27-21-34-05.bpo-42143.N6KXUO.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-10-27-21-34-05.bpo-42143.N6KXUO.rst b/Misc/NEWS.d/next/Core and Builtins/2020-10-27-21-34-05.bpo-42143.N6KXUO.rst
new file mode 100644
index 0000000..2b16e69
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-10-27-21-34-05.bpo-42143.N6KXUO.rst
@@ -0,0 +1,2 @@
+Fix handling of errors during creation of ``PyFunctionObject``, which resulted
+in operations on uninitialized memory. Patch by Yonatan Goldschmidt.