diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-07-21 14:01:43 (GMT) |
|---|---|---|
| committer | Ned Deily <nad@python.org> | 2019-07-21 14:01:43 (GMT) |
| commit | 79a47e2b9cff6c9facdbc022a752177ab89dc533 (patch) | |
| tree | 7e48c830858be3e01d5f6180a378b133e8e0d030 /Python/pythonrun.c | |
| parent | 317c33e67cb6076c5a87a66c75e8c35ac581398d (diff) | |
| download | cpython-79a47e2b9cff6c9facdbc022a752177ab89dc533.zip cpython-79a47e2b9cff6c9facdbc022a752177ab89dc533.tar.gz cpython-79a47e2b9cff6c9facdbc022a752177ab89dc533.tar.bz2 | |
Fix infinite loop in email folding logic (GH-12732) (GH-14799)
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 f69d5c61981ea97d251db515c7ff280fcc17182d)
Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
