[issue19806] smtpd crashes when a multi-byte UTF-8 sequence is split between consecutive data packets

Milan Oberkirch report at bugs.python.org
Wed Jul 9 17:33:02 CEST 2014


Milan Oberkirch added the comment:

I do not think that the proposed patch solves the bug because it silently changes binary input. With the patch for issue 19662 a proper solution to avoid this bug has been applied. The only thing left is to prevent the server to raise the exception when in legacy mode. Instead of deleting single bytes from the input (which is what .decode('utf-8', 'ignore') does) I would reply with an error to the client. The attached patch implements and tests this behaviour.

----------
nosy: +zvyn
Added file: http://bugs.python.org/file35916/smtpd_undecodable_data_does_not_raise.patch

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


More information about the Python-bugs-list mailing list