[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread SilentGhost

Changes by SilentGhost :


--
stage:  -> resolved

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, eric.snow, ncoghlan, xiang.zhang
priority: normal
severity: normal
status: open
title: Py_INCREF(NULL) in _imp.create_builtin
type: crash
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file44292/create_builtin.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com