[issue4935] Segmentation fault in bytearray tests
Antoine Pitrou
report at bugs.python.org
Tue Jan 13 20:59:23 CET 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
Here is a patch. The idea is to use unsigned arithmetic instead of
signed, and to check for overflows by comparing with PY_SSIZE_T_MAX.
(the exact reason of the crash is unknown, it looks like either a
compiler bug or a mis-optimization as (i < 0) returns 0 while i is
-0x7FFFFFFF)
----------
keywords: +patch
stage: -> patch review
Added file: http://bugs.python.org/file12724/issue4935.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4935>
_______________________________________
More information about the Python-bugs-list
mailing list