diff options
author | Yonatan Goldschmidt <yon.goldschmidt@gmail.com> | 2020-10-29 09:58:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 09:58:52 (GMT) |
commit | 350526105fa9b131d8b941ae753378b741dabb2f (patch) | |
tree | 6a26e4309c598bba977dc94b181ebd2e98458241 /Misc | |
parent | df59273c7a384ea8c890fa8e9b80c92825df841c (diff) | |
download | cpython-350526105fa9b131d8b941ae753378b741dabb2f.zip cpython-350526105fa9b131d8b941ae753378b741dabb2f.tar.gz cpython-350526105fa9b131d8b941ae753378b741dabb2f.tar.bz2 |
bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func object (GH-22953)
func_dealloc() does not handle partially-created objects. Best not to give it any.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-10-27-21-34-05.bpo-42143.N6KXUO.rst | 2 |
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. |