[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread SilentGhost
Changes by SilentGhost : -- stage: -> resolved ___ Python tracker ___ ___

[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. -- assignee: -> rhettinger nosy: +rhettinger resolution: -> fixed status: open -> closed ___ Python tracker

[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset caf547c9e589 by Raymond Hettinger in branch '3.5': Issue #27909: Fix INCREF for possible NULL value https://hg.python.org/cpython/rev/caf547c9e589 -- nosy: +python-dev ___ Python tracker

[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread Xiang Zhang
New submission from Xiang Zhang: Just as the patch shows, when PyErr_Occurred() returns true mod is NULL, then Py_INCREF(mod) will crash. Replace it with Py_XINCREF. -- components: Interpreter Core files: create_builtin.patch keywords: patch messages: 274007 nosy: brett.cannon,