summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrian Coleman <brianfcoleman@gmail.com>2017-03-02 10:32:18 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-03-02 10:32:18 (GMT)
commit6a9122ce6969902e119133dac660bf515616c7dd (patch)
tree2e42efb401b91e266f8af1a2e8db88d012d655a5 /Misc
parent275104e86b0a3d88bfa1aaf51f70c5db3b4f47c4 (diff)
downloadcpython-6a9122ce6969902e119133dac660bf515616c7dd.zip
cpython-6a9122ce6969902e119133dac660bf515616c7dd.tar.gz
cpython-6a9122ce6969902e119133dac660bf515616c7dd.tar.bz2
bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is (#376)
allocated. On PyMem_Realloc failure, _PyCode_SetExtra should free co_extra if co_extra->ce_extras could not be allocated. On PyMem_Realloc success, _PyCode_SetExtra should set all unused slots in co_extra->ce_extras to NULL.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d2280ab..9da682b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1?
Core and Builtins
-----------------
+- bpo-29683: Fixes to memory allocation in _PyCode_SetExtra. Patch by
+ Brian Coleman.
+
- bpo-29684: Fix minor regression of PyEval_CallObjectWithKeywords.
It should raise TypeError when kwargs is not a dict. But it might
cause segv when args=NULL and kwargs is not a dict.