[issue5627] PyDict_SetItemString() fails when the second argument is null
Euler Taveira de Oliveira
report at bugs.python.org
Tue Mar 31 20:20:40 CEST 2009
Euler Taveira de Oliveira <euler at timbira.com> added the comment:
It seems PyDict_DelItemString() and PyDict_SetItem() suffer from the
same disease. :( Both use assert() to detect a null pointer but fail to
prevent it. As I stated in the previous comment, maybe the right fix is
to replace assert() with the 'if (foo == NULL) return whatever'.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5627>
_______________________________________
More information about the Python-bugs-list
mailing list