Author xiang.zhang
Recipients Decorater, martin.panter, serhiy.storchaka, xiang.zhang, ztane
Date 2016-07-16.15:51:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468684274.85.0.260880560763.issue27507@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-07-16 15:51:14xiang.zhangsetrecipients: + xiang.zhang, martin.panter, serhiy.storchaka, ztane, Decorater
2016-07-16 15:51:14xiang.zhangsetmessageid: <1468684274.85.0.260880560763.issue27507@psf.upfronthosting.co.za>
2016-07-16 15:51:14xiang.zhanglinkissue27507 messages
2016-07-16 15:51:14xiang.zhangcreate