[issue16445] SEGFAULT when deleting Exception.message
STINNER Victor
report at bugs.python.org
Fri Nov 9 02:18:29 CET 2012
STINNER Victor added the comment:
py_clear.spatch replaces:
Py_DECREF(obj->attr); obj->attr = NULL;
but also:
Py_DECREF(obj); obj = NULL;
If the second pattern is not dangerous, py_clear.spatch can be modified to only match the first pattern: see py_decref_replace.spatch of issue #16447 for an example.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16445>
_______________________________________
More information about the Python-bugs-list
mailing list