Message149674
| Author |
vstinner |
| Recipients |
Ramchandra Apte, mark.dickinson, neologix, phillies, pitrou, vstinner |
| Date |
2011年12月17日.16:24:08 |
| SpamBayes Score |
0.00034888746 |
| 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)". |
|