[issue27581] Fix overflow check in PySequence_Tuple
Xiang Zhang
report at bugs.python.org
Sat Jul 23 09:40:35 EDT 2016
Xiang Zhang added the comment:
I'd prefer the size_t method. The others seems to make the logic not clear. I've seen some codes using size_t to do overflow checking, such as https://hg.python.org/cpython/file/tip/Python/bltinmodule.c#l1954. There are more if you use a simple grep. So I think the logic is okay.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27581>
_______________________________________
More information about the Python-bugs-list
mailing list