[Python-Dev] [Python-checkins] cpython: Issue #14716: Change integer overflow check in unicode_writer_prepare()
Victor Stinner
victor.stinner at gmail.com
Mon May 7 23:51:48 CEST 2012
> 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.
Oh. I didn't understand why you replaced <= by <, and so I used <=.
Anyway, I reverted the change for all reasons listed in this thread.
Victor
More information about the Python-Dev
mailing list