Message249602
We based our fix on the check in write_bytes:
if (endpos > (size_t)PyBytes_GET_SIZE(self->buf)) {
if (resize_buffer(self, endpos) < 0)
return -1;
}
I see now that our casting was extraneous. As for the macro, it was suspected that similar issues may be present and we wanted to write reusable code, but this also seems unnecessary now that it's known the cast is unneeded.
Early tomorrow I'll take some time to create a revised patch. |
|
| Date |
User |
Action |
Args |
| 2015-09-03 04:31:34 | JohnLeitch | set | recipients:
+ JohnLeitch, vstinner, martin.panter, serhiy.storchaka, brycedarling |
| 2015-09-03 04:31:34 | JohnLeitch | set | messageid: <1441254694.05.0.0662894194538.issue24989@psf.upfronthosting.co.za> |
| 2015-09-03 04:31:34 | JohnLeitch | link | issue24989 messages |
| 2015-09-03 04:31:33 | JohnLeitch | create | |
|