Message270568
I can't totally agree the point. The code means every time we increase the buffer by half the current length. So when the length arrives 2/3 * PY_SSIZE_T_MAX it's going to overflow. There is a 1/3 * PY_SSIZE_T_MAX gap between the theoretical upper limit. I think leaving such a gap and exiting is somewhat too rude. So in such case I make it have a try. |
|
Date |
User |
Action |
Args |
2016-07-16 15:51:14 | xiang.zhang | set | recipients:
+ xiang.zhang, martin.panter, serhiy.storchaka, ztane, Decorater |
2016-07-16 15:51:14 | xiang.zhang | set | messageid: <1468684274.85.0.260880560763.issue27507@psf.upfronthosting.co.za> |
2016-07-16 15:51:14 | xiang.zhang | link | issue27507 messages |
2016-07-16 15:51:14 | xiang.zhang | create | |
|