Message284640
No, your changes from issue 27473 are OK. However functions like replace_interleave and replace_single_character etc. still use the broken code:
/* use the difference between current and new, hence the "-1" */
/* result_len = self_len + count * (to_len-1) */
product = count * (to_len-1);
if (product / (to_len-1) != count) {
PyErr_SetString(PyExc_OverflowError, "replace bytes is too long");
return NULL;
} |
|
Date |
User |
Action |
Args |
2017-01-04 14:37:55 | matejcik | set | recipients:
+ matejcik, benjamin.peterson, xiang.zhang |
2017-01-04 14:37:55 | matejcik | set | messageid: <1483540675.04.0.48166761848.issue29145@psf.upfronthosting.co.za> |
2017-01-04 14:37:55 | matejcik | link | issue29145 messages |
2017-01-04 14:37:54 | matejcik | create | |
|