[issue16041] poplib: unlimited readline() from connection
Christian Heimes
report at bugs.python.org
Sat Feb 16 00:24:06 CET 2013
Christian Heimes added the comment:
RFC 1939 says:
Responses in the POP3 consist of a status indicator and a keyword
possibly followed by additional information. All responses are
terminated by a CRLF pair. Responses may be up to 512 characters
long, including the terminating CRLF.
It doesn't say anything about the length of a line in a multi-line response. It's reasonable to belief that 512 octets are valid, too. We could quadruple the limit to 2048 in order to be safe.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16041>
_______________________________________
More information about the Python-bugs-list
mailing list