Issue 36459: A possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/80640
classification
Title: | A possible double PyMem_FREE() due to tokenizer.c's tok_nextc() | ||
---|---|---|---|
Type: | crash | Stage: | resolved |
Components: | Interpreter Core | Versions: | Python 3.8, Python 3.7, Python 2.7 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | Nosy List: | ZackerySpytz, miss-islington, pablogsal, serhiy.storchaka | |
Priority: | normal | Keywords: | patch |
Created on 2019-03-28 04:33 by ZackerySpytz, last changed 2022-04-11 14:59 by admin. This issue is now closed.
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 12601 | merged | ZackerySpytz,2019-03-28 04:36 | |
PR 12604 | merged | miss-islington,2019-03-28 13:53 | |
PR 12605 | merged | miss-islington,2019-03-28 13:53 |
Messages (4) | ||
---|---|---|
msg339013 - (view) | Author: Zackery Spytz (ZackerySpytz) * ![]() |
Date: 2019-03-28 04:33 |
Commit cb90c89de14aab636739b3e810cf949e47b54a0c added a PyMem_FREE(tok->buf) call in tok_nextc() if a PyMem_REALLOC() call fails. This will cause a double free when PyTokenizer_Free() is called on the tokenizer state. | ||
msg339043 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2019-03-28 13:53 |
New changeset cda139d1ded6708665b53e4ed32ccc1d2627e1da by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601) https://github.com/python/cpython/commit/cda139d1ded6708665b53e4ed32ccc1d2627e1da | ||
msg339049 - (view) | Author: miss-islington (miss-islington) | Date: 2019-03-28 14:44 |
New changeset dffe90ee0eaf77785ad3d4ad7fb3249430ed1cb9 by Miss Islington (bot) in branch '2.7': bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601) https://github.com/python/cpython/commit/dffe90ee0eaf77785ad3d4ad7fb3249430ed1cb9 | ||
msg339051 - (view) | Author: miss-islington (miss-islington) | Date: 2019-03-28 15:08 |
New changeset 6fd3c852b15820480ad2ea83e7857615c4976304 by Miss Islington (bot) in branch '3.7': bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601) https://github.com/python/cpython/commit/6fd3c852b15820480ad2ea83e7857615c4976304 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:59:13 | admin | set | github: 80640 |
2019-03-28 15:15:07 | serhiy.storchaka | set | status: open -> closedresolution: fixedstage: patch review -> resolved |
2019-03-28 15:08:49 | miss-islington | set | messages: + |
2019-03-28 14:44:25 | miss-islington | set | nosy: + miss-islingtonmessages: + |
2019-03-28 13:53:59 | miss-islington | set | pull_requests: + <pull%5Frequest12545> |
2019-03-28 13:53:48 | miss-islington | set | pull_requests: + <pull%5Frequest12544> |
2019-03-28 13:53:11 | serhiy.storchaka | set | nosy: + serhiy.storchakamessages: + |
2019-03-28 05:01:15 | xtreak | set | nosy: + pablogsal |
2019-03-28 04:36:56 | ZackerySpytz | set | keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest12541> |
2019-03-28 04:33:19 | ZackerySpytz | create |