[issue1621] Do not assume signed integer overflow behavior

Martin Panter report at bugs.python.org
Sat Jul 23 00:35:47 EDT 2016


Martin Panter added the comment:

Apart from the empty “if” statement style (see review), tuple_and_list.patch looks good to me.

I understand the patches from 2011 and earlier have all been committed (correct me if I missed something).

Here is another patch fixing a 64-bit overflow in _thread, detected by the test_timeout() method in test_threading:
Modules/_threadmodule.c:59:17: runtime error: signed integer overflow: 6236628528058 + 9223372036000000000 cannot be represented in type 'long int'

----------
Added file: http://bugs.python.org/file43838/thread.patch

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


More information about the Python-bugs-list mailing list