[issue27662] Check against PY_SSIZE_T_MAX instead of PY_SIZE_MAX in List_New
Xiang Zhang
report at bugs.python.org
Tue Aug 2 00:24:38 EDT 2016
Xiang Zhang added the comment:
Thanks for your replies.
I update the patch with PyMem_Calloc. I think it's better than PyMem_Resize since we need to initialize the memory here, there is a memset(op->ob_item, 0, nbytes) below.
----------
Added file: http://bugs.python.org/file43970/List_New_Calloc.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27662>
_______________________________________
More information about the Python-bugs-list
mailing list