[New-bugs-announce] [issue14593] PyErr_SetFromImportErrorWithNameAndPath lacks error checking

Antoine Pitrou report at bugs.python.org
Mon Apr 16 13:38:44 CEST 2012


New submission from Antoine Pitrou <pitrou at free.fr>:

The PyErr_SetFromImportErrorWithNameAndPath implementation never checks for the various results returned by the C API functions it invokes.

(also, it needs documenting, see python-dev)

As for PyErr_SetExcWithArgsKwargs, there's a potential refleak when args is NULL.

----------
components: Interpreter Core
messages: 158411
nosy: brett.cannon, brian.curtin, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: PyErr_SetFromImportErrorWithNameAndPath lacks error checking
type: resource usage
versions: Python 3.3

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


More information about the New-bugs-announce mailing list