diff options
author | Ashwin Ramaswami <aramaswamis@gmail.com> | 2019-09-03 16:42:53 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-03 16:42:53 (GMT) |
commit | ea21389dda401457198fb214aa2c981a45ed9528 (patch) | |
tree | fa4232b8646ea424f1411e18fe22f64061bef9c5 /Lib/idlelib/idle_test/test_pyshell.py | |
parent | 48058050cee5f6600150392100c162f223b4317f (diff) | |
download | cpython-ea21389dda401457198fb214aa2c981a45ed9528.zip cpython-ea21389dda401457198fb214aa2c981a45ed9528.tar.gz cpython-ea21389dda401457198fb214aa2c981a45ed9528.tar.bz2 |
[3.7] bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239) (GH-15654)
…aders. (GH-15239)
Fixes a case in which email._header_value_parser.get_unstructured hangs the system for some invalid headers. This covers the cases in which the header contains either:
- a case without trailing whitespace
- an invalid encoded word
https://bugs.python.org/issue37764
This fix should also be backported to 3.7 and 3.8
https://bugs.python.org/issue37764
(cherry picked from commit c5b242f87f31286ad38991bc3868cf4cfbf2b681)
Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
https://bugs.python.org/issue37764
Diffstat (limited to 'Lib/idlelib/idle_test/test_pyshell.py')
0 files changed, 0 insertions, 0 deletions