[Python-Dev] [Python-checkins] cpython: Issue #14716: Change integer overflow check in unicode_writer_prepare()

Serhiy Storchaka storchaka at gmail.com
Mon May 7 18:33:57 CEST 2012


07.05.12 18:48, Serhiy Storchaka написав(ла):
> My fault.

However, it's not my fault. I suggested `newlen < (PY_SSIZE_T_MAX - 
PY_SSIZE_T_MAX / 5)` and not `newlen <= (PY_SSIZE_T_MAX - PY_SSIZE_T_MAX 
/ 5)`. In this case, there is no overflow.



More information about the Python-Dev mailing list