[issue16038] ftplib: unlimited readline() from connection

Jeff Dafoe report at bugs.python.org
Mon Aug 13 09:14:33 EDT 2018


Jeff Dafoe <jeffdafoe at gmail.com> added the comment:

I have a question about this old patch, as it just came down in a CentOS 6 update. I think the patch is applied to the data channel in ASCII mode and not just the control channel. On the data channel in ASCII mode, there should be no assumption of maximum line length before EOL. I saw that your current value came from vsftpd's header file. I'm guessing if you look at the implementation, it's either only applied to the control channel or it's just used to set a single read size inside of a loop.  Examples of ASCII mode files that can exceed nearly any MAXLINE value without EOL are XML files or EDI files.

----------
nosy: +Jeff Dafoe

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue16038>
_______________________________________


More information about the Python-bugs-list mailing list