[issue27963] null poiter dereference in set_conversion_mode due uncheck _ctypes_conversion_errors

Xiang Zhang report at bugs.python.org
Tue Sep 6 00:58:07 EDT 2016


Xiang Zhang added the comment:

Ooh, I treat dereference as decref, sorry. Then I think it may happen when there is not enough memory. But your patch is not complete, at least you should Py_DECREF(result). But this function may need more care since the malloc failure in it will alter states.

----------

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


More information about the Python-bugs-list mailing list