Skip to content

[3.6] bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is allocated. - #402

Merged
serhiy-storchaka merged 2 commits into
python:3.6from
brianfcoleman:bpo-29683-3.6
Mar 2, 2017
Merged

serhiy-storchaka merged 2 commits into
python:3.6from
brianfcoleman:bpo-29683-3.6

Conversation

@brianfcoleman

Copy link
Copy Markdown
Contributor

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.

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.
@berkerpeksag berkerpeksag changed the title bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is allocated. Mar 2, 2017
@serhiy-storchaka
serhiy-storchaka merged commit a6e8493 into python:3.6 Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants