Serhiy Storchaka added the comment:
Could you please regenerate the patch for Rietveld Berker?
_PyBytes_Resize(&res, r) always sets res to NULL if fails. Thus the following
code is correct. No need to check the return value.
if (n > r)
_PyBytes_Resize(&res, r);
return res;
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28187>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com