Message249602
| Author |
JohnLeitch |
| Recipients |
JohnLeitch, brycedarling, martin.panter, serhiy.storchaka, vstinner |
| Date |
2015年09月03日.04:31:33 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1441254694.05.0.0662894194538.issue24989@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|