[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

STINNER Victor report at bugs.python.org
Mon Jun 17 12:46:31 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

Python 3.5 is not vulnerable, it doesn't hang on the following code:

import email.policy
policy = email.policy.default.clone(max_line_length=20)
actual = policy.fold('Subject', '\u0105' * 12)

----------

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


More information about the Python-bugs-list mailing list