Title: Null check handle return by new_string()
Type: crash Stage: resolved
Components: Versions: Python 2.7
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 2015-08-14 04:53 by python-dev. This issue is now closed.

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)
Date User Action Args
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