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: Dereferencing a null returning value
Type: crash Stage: resolved
Components: Interpreter Core, Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, benjamin.peterson, pankaj.s01, python-dev
Priority: normal Keywords: patch

Created on 2015-07-27 10:54 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_compile.patch pankaj.s01, 2015-07-27 10:54 Python-2.7.10_compile patch
Messages (2)
msg247459 - (view) Author: Pankaj Sharma (pankaj.s01) * Date: 2015-07-27 10:54
Hi,
there is an issue reported for "dereferencing a null return by function "PyString_FromStringAndSize()" file:Python-2.7.10/Python/compile.c .so there should be check for NULL before dereferencing in function compiler_nameop().
Please review attached patch.

Thanks!
msg247471 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-07-27 14:47
New changeset 68cd7a64fbb0 by Benjamin Peterson in branch '2.7':
check return value of PyString_FromStringAndSize for NULL (closes #24734)
https://hg.python.org/cpython/rev/68cd7a64fbb0
History
Date User Action Args
2022-04-11 14:58:19adminsetgithub: 68922
2015-08-17 04:55:13Arfreversetnosy: + Arfrever
2015-07-27 14:47:33python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg247471

resolution: fixed
stage: resolved
2015-07-27 10:54:51pankaj.s01create