[New-bugs-announce] [issue24854] Null check handle return by new_string()

Pankaj Sharma report at bugs.python.org
Thu Aug 13 08:04:14 CEST 2015


New submission from Pankaj Sharma:

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.

----------
files: Python-2.7.10-tokenizer.patch
keywords: patch
messages: 248498
nosy: benjamin.peterson, pankaj.s01
priority: normal
severity: normal
status: open
title: Null check handle return by new_string()
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file40172/Python-2.7.10-tokenizer.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24854>
_______________________________________


More information about the New-bugs-announce mailing list