mirror of
https://github.com/python/cpython.git
synced 2025-11-02 14:41:33 +00:00
Fix infinite loop in email folding logic (GH-12732)
As far as I can tell, this infinite loop would be triggered if: 1. The value being folded contains a single word (no spaces) longer than max_line_length 2. The max_line_length is shorter than the encoding's name + 9 characters. bpo-36564: https://bugs.python.org/issue36564
This commit is contained in:
parent
1d8b04edfd
commit
f69d5c6198
4 changed files with 35 additions and 6 deletions
|
|
@ -13,7 +13,6 @@
|
|||
from email._policybase import compat32
|
||||
|
||||
|
||||
|
||||
class Parser:
|
||||
def __init__(self, _class=None, *, policy=compat32):
|
||||
"""Parser of RFC 2822 and MIME email messages.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue