[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-31 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +882 ___ Python tracker ___ ___

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6a9122ce6969902e119133dac660bf515616c7dd by Victor Stinner (Brian Coleman) in branch 'master': bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is (#376)

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a6e84933d204f807e0e81b6a2237193b2e8ab89a by Serhiy Storchaka (Brian Coleman) in branch '3.6': bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is (#402)

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-17 Thread Larry Hastings
Changes by Larry Hastings : -- pull_requests: +617 ___ Python tracker ___ ___

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Brian. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-02 Thread Brian Coleman
Brian Coleman added the comment: I have created a pull request to backport the fix onto 3.6 here: https://github.com/python/cpython/pull/402 -- ___ Python tracker

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-02 Thread Brian Coleman
Changes by Brian Coleman : -- pull_requests: +333 ___ Python tracker ___ ___

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review versions: +Python 3.6 ___ Python tracker

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-01 Thread Brian Coleman
Brian Coleman added the comment: I have now added a Github pull request here: https://github.com/python/cpython/pull/376 -- ___ Python tracker ___

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-01 Thread Brian Coleman
Changes by Brian Coleman : -- pull_requests: +312 ___ Python tracker ___ ___

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-01 Thread Brian Coleman
New submission from Brian Coleman: On PyMem_Malloc failure, _PyCode_SetExtra should set co_extra->ce_size = 0. On PyMem_Realloc failure, _PyCode_SetExtra should set co_extra->ce_size = 0. On PyMem_Realloc success, _PyCode_SetExtra should set all unused slots in co_extra->ce_extras to NULL. I