[New-bugs-announce] [issue24048] remove_module() needs to save/restore exception state

Davis Herring report at bugs.python.org
Fri Apr 24 07:58:38 CEST 2015


New submission from Davis Herring:

import.c's remove_module() is always called with an exception set and can invoke arbitrary code via deallocation; if that code calls PyErr_Clear() (or is sensitive to PyErr_Occurred()) it will lose (or be damaged by) the preexisting exception.

----------
components: Interpreter Core
messages: 241914
nosy: herring
priority: normal
severity: normal
status: open
title: remove_module() needs to save/restore exception state
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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


More information about the New-bugs-announce mailing list