This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, vstinner
Date 2008-09-26.00:02:25
SpamBayes Score 0.00043158655
Marked as misclassified No
Message-id <1222387349.09.0.838117867831.issue3967@psf.upfronthosting.co.za>
In-reply-to
Content
Ah, big numbers that overflow: even if 'start' is (silently) capped to  
sys.maxint-1,    len(b)-start-len("xx")   will wrap and yield a positive 
number...

The find/rfind/index/rindex methods have the same problem.

Attached a patch and unit tests, needs review.
History
Date User Action Args
2008-09-26 00:02:29amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, vstinner
2008-09-26 00:02:29amaury.forgeotdarcsetmessageid: <1222387349.09.0.838117867831.issue3967@psf.upfronthosting.co.za>
2008-09-26 00:02:28amaury.forgeotdarclinkissue3967 messages
2008-09-26 00:02:27amaury.forgeotdarccreate