[New-bugs-announce] [issue29655] Certain errors during IMPORT_STAR can leak a reference

Peter Cawley report at bugs.python.org
Sat Feb 25 16:26:53 EST 2017


New submission from Peter Cawley:

In the implementation of the IMPORT_STAR opcode, if the call to PyFrame_FastToLocalsWithError fails, or f_locals is NULL, then control flow jumps to the error handler without performing a decref on the "from" variable. As the "from" variable is initialised by POPping from the stack, the reference is leaked.

----------
components: Interpreter Core
messages: 288582
nosy: Peter Cawley
priority: normal
severity: normal
status: open
title: Certain errors during IMPORT_STAR can leak a reference
type: behavior
versions: Python 3.7

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


More information about the New-bugs-announce mailing list