> You are very fast. Oh sorry. In fact, I didn't expect a review. I just created an issue to put an issue number in the commit changelog and give a little bit more context to my changes.
Hi Victor, Here is a small patch for the unicodeobject.c file. I am not sure if it's the correct solution to this problem, but for me, the size parameter should be a unsigned long and not a signed.
fix_warning_unicodeobject.diff and -2.patch don't seem to be needed anymore. The code is now: if (PY_SSIZE_T_MAX / (Py_ssize_t)sizeof(wchar_t) < (size + 1)) return NULL; I close the issue. More specific issues must be opened if you still want to fix similar issues.
History
Date
User
Action
Args
2022-04-11 14:58:07
admin
set
github: 66414
2016-03-25 23:42:06
vstinner
set
status: open -> closedresolution: fixedmessages: +