[Patches] [ python-Patches-1654417 ] operator.c slice functions need to parse ssize_t
SourceForge.net
noreply at sourceforge.net
Tue Mar 6 17:15:00 CET 2007
Patches item #1654417, was opened at 2007-02-07 12:58
Message generated for change (Comment added) made by wingo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1654417&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andy Wingo (wingo)
Assigned to: Nobody/Anonymous (nobody)
Summary: operator.c slice functions need to parse ssize_t
Initial Comment:
To reproduce, on a system with 64 bits in sys.maxint:
$ python
x = [3,4,5]
del x[1:]
x = [3,4,5]
from operator import delslice
import sys
delslice(x, 1, sys.maxint)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: signed integer is greater than maximum
----------------------------------------------------------------------
>Comment By: Andy Wingo (wingo)
Date: 2007-03-06 11:15
Message:
Logged In: YES
user_id=268660
Originator: YES
File Added: operator_slice.diff
----------------------------------------------------------------------
Comment By: Žiga Seilnacht (zseil)
Date: 2007-03-06 11:04
Message:
Logged In: YES
user_id=1326842
Originator: NO
The patch looks correct to me, but I can't test it
since I don't have a 64 bit system.
I posted the patch with added tests here:
http://freeweb.siol.net/chollus/
Can someone with the right privileges attach that file
here?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1654417&group_id=5470
More information about the Patches
mailing list