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 (cherry picked from commit f69d5c6) Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
Merged
warsaw
changed the title
[3.6] Fix infinite loop in email folding logic (GH-12732)
[3.6] bpo-36564: Fix infinite loop in email folding logic (GH-12732)
ned-deily
merged commit 79a47e2
into
python:3.6
6 checks passed
Azure Pipelines PR #20190716.28 succeeded
bedevere/issue-number Issue number 36564 found
bedevere/maintenance-branch-pr Valid maintenance branch PR title.
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed