Message73828
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. |
|
Date |
User |
Action |
Args |
2008-09-26 00:02:29 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, vstinner |
2008-09-26 00:02:29 | amaury.forgeotdarc | set | messageid: <1222387349.09.0.838117867831.issue3967@psf.upfronthosting.co.za> |
2008-09-26 00:02:28 | amaury.forgeotdarc | link | issue3967 messages |
2008-09-26 00:02:27 | amaury.forgeotdarc | create | |
|