[issue20434] Process crashes if not enough memory to import module
Eric Snow
report at bugs.python.org
Mon Apr 14 16:39:36 CEST 2014
Eric Snow added the comment:
I was going to say we should consider changing the API of _PyBytes_Resize() and _PyString_Resize(). However, having looked at the two functions, I guess it makes sense.
Looking at the patch, I'd argue that we still need to set the string to NULL in the error case. Only in the out-of-memory case do the two functions change it to NULL for you.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20434>
_______________________________________
More information about the Python-bugs-list
mailing list