Author vstinner
Recipients Ramchandra Apte, mark.dickinson, neologix, phillies, pitrou, vstinner
Date 2011-12-17.16:24:08
SpamBayes Score 0.000348887
Marked as misclassified No
Message-id <1324139048.83.0.139382887085.issue13555@psf.upfronthosting.co.za>
In-reply-to
Content
> Should we fix this (Py_ssize_t, overflow check before computation), as in #11564?

Yes. Use Py_ssize_t type for the buf_size attribute, and replace "bigger <= 0" (test if an overflow occurred) by "self->buf_size > (PY_SSIZE_T_MAX >> 1)".
History
Date User Action Args
2011-12-17 16:24:08vstinnersetrecipients: + vstinner, mark.dickinson, pitrou, neologix, Ramchandra Apte, phillies
2011-12-17 16:24:08vstinnersetmessageid: <1324139048.83.0.139382887085.issue13555@psf.upfronthosting.co.za>
2011-12-17 16:24:08vstinnerlinkissue13555 messages
2011-12-17 16:24:08vstinnercreate