[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-20 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 2.7, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 469b0a50d990bcb441910b23194c131e403c2833 by Victor Stinner in branch '2.7': bpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442) (GH-12470) https://github.com/python/cpython/commit/469b0a50d990bcb441910b23194c131e403c2833 -

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 65b9849f0f07a000d751c96d9d711aeb24c95224 by Victor Stinner in branch '3.7': bpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442) (GH-12471) https://github.com/python/cpython/commit/65b9849f0f07a000d751c96d9d711aeb24c95224 -

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12423 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12422 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cb90c89de14aab636739b3e810cf949e47b54a0c by Pablo Galindo in branch 'master': bpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442) https://github.com/python/cpython/commit/cb90c89de14aab636739b3e810cf949e47b54a0c --

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12397 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-19 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : In tokenizer.c we have those lines of code [0]: if (final_length < needed_length && final_length) /* should never fail */ buf = PyMem_REALLOC(buf, final_length); return buf; If however that realloc fails, the memory allocated initially for bu