diff options
author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-10-29 10:24:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 10:24:12 (GMT) |
commit | 9ede1b071bf5250ba5f2d04d7ba86a24c06d41a1 (patch) | |
tree | 34f41ff0031a5be113242c60154f1e8acba777b7 /Misc/NEWS.d | |
parent | b1ce0440bfe87e092ca5e2e57875fb7fc1129137 (diff) | |
download | cpython-9ede1b071bf5250ba5f2d04d7ba86a24c06d41a1.zip cpython-9ede1b071bf5250ba5f2d04d7ba86a24c06d41a1.tar.gz cpython-9ede1b071bf5250ba5f2d04d7ba86a24c06d41a1.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.
(cherry picked from commit 350526105fa9b131d8b941ae753378b741dabb2f)
Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
Diffstat (limited to 'Misc/NEWS.d')
-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. |