[issue18135] _ssl module: possible integer overflow for very long strings (+2^31 bytes)

STINNER Victor report at bugs.python.org
Sun Jun 23 15:56:11 CEST 2013


STINNER Victor added the comment:

> I think the right solution here would be to raise OverflowError, not truncate the output.

Here is a new patch (for Python 3.3) always raising OverflowError if the string is longer than INT_MAX bytes.

----------
Added file: http://bugs.python.org/file30676/ssl_overflow.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18135>
_______________________________________


More information about the Python-bugs-list mailing list