Skip to content

[3.8] bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239)#15686

Merged
maxking merged 1 commit intopython:3.8from
maxking:backport-c5b242f-3.8
Sep 5, 2019
Merged

[3.8] bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239)#15686
maxking merged 1 commit intopython:3.8from
maxking:backport-c5b242f-3.8

Conversation

@maxking
Copy link
Copy Markdown
Contributor

@maxking maxking commented Sep 5, 2019

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 c5b242f)

Co-authored-by: Ashwin Ramaswami aramaswamis@gmail.com

https://bugs.python.org/issue37764

Automerge-Triggered-By: @maxking

…aders. (pythonGH-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 c5b242f)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants