[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public

Conversation

Copy link
Contributor

epicfaace commented Sep 3, 2019

…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 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>
epicfaace requested a review from a team as a code owner September 3, 2019 04:35
maxking changed the title [3.7] bpo-37764: Fix infinite loop when parsing unstructured email he… [3.7] bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239) Sep 3, 2019
miss-islington merged commit ea21389 into python:3.7 Sep 3, 2019
epicfaace deleted the backport-c5b242f-3.7 branch September 3, 2019 16:59
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.

5 participants