Message98366
I think the expression "cur + step" in line 2660 of listobject.c (py2.7 trunk) overflows to negative value and the "if" branch isn't entered.
if (cur + step >= Py_SIZE(self)) {
lim = Py_SIZE(self) - cur - 1;
}
If I change the type of "cur" variable to unsigned int, the bug disappears. I don't know if it's ok to have unsigned "cur" here though - but I feel it is. |
|
Date |
User |
Action |
Args |
2010-01-26 19:55:29 | marcin.bachry | set | recipients:
+ marcin.bachry, mark.dickinson, vstinner, ezio.melotti, zuo, flox |
2010-01-26 19:55:29 | marcin.bachry | set | messageid: <1264535729.62.0.140493535448.issue7788@psf.upfronthosting.co.za> |
2010-01-26 19:55:26 | marcin.bachry | link | issue7788 messages |
2010-01-26 19:55:26 | marcin.bachry | create | |
|