[issue23490] allocation (and overwrite) of a 0 byte buffer

Benjamin Peterson report at bugs.python.org
Fri Feb 20 18:35:19 CET 2015


Benjamin Peterson added the comment:

I think it looks fine except why do you cast PyUnicode_LENGTH to size_t in the comparison?

I also wonder if we should have PyObject_NEW now.

----------
stage: patch review -> 
versions:  -Python 3.5

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


More information about the Python-bugs-list mailing list