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

STINNER Victor report at bugs.python.org
Sun Jun 23 15:45:54 CEST 2013


STINNER Victor added the comment:

> Right now partial writes are not possible on a SSL socket, but this commit makes them possible.

Oh, I didn't know (forgot) that SSL does allow partial write by default.

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

Do you mean always? Or only if the SSL_MODE_ENABLE_PARTIAL_WRITE option is not set?

----------

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


More information about the Python-bugs-list mailing list