This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Null check handle return by new_string()
Type: crash Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, pankaj.s01, python-dev
Priority: normal Keywords: patch

Created on 2015-08-13 06:04 by pankaj.s01, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Python-2.7.10-tokenizer.patch pankaj.s01, 2015-08-13 06:04 Python-2.7.10-tokenizer
Messages (2)
msg248498 - (view) Author: Pankaj Sharma (pankaj.s01) * Date: 2015-08-13 06:04
The issue reported in python-2.7.10/Parser/tokenizer.c:237 to handle NULL return by new_string() if PyMem_MALLOC() failed. So need to check for NULL and return to prevent from crash happened in get_normal_name().this issue related with issue18470 has been taken care by setting error code "E_NOMEM" in 3.4.X. i have attached patch,
please review it.
msg248557 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-08-14 04:53
New changeset 208d6d14c2a3 by Benjamin Peterson in branch '2.7':
add missing NULL checks to get_coding_spec (closes #24854)
https://hg.python.org/cpython/rev/208d6d14c2a3
History
Date User Action Args
2022-04-11 14:58:19adminsetgithub: 69042
2015-08-14 04:53:15python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg248557

resolution: fixed
stage: resolved
2015-08-13 06:04:14pankaj.s01create