STINNER Victor added the comment:

"Here is a new patch using unsigned int is most places, parsing
arguments with "I" format, and explicit cast to (size_t) to not
compare unsigned with signed."

Oh oh, it's still wrong. The "I" parser format does not check for
integer overflow. _PyBytes_Resize() also uses "Py_DECREF(retVal);
retVal = NULL;" on failure, instead of Py_CLEAR(retVal), whereas
_PyBytes_Resize(&retVal, ...) sets retVal to NULL...

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18294>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to