Skip to content

[3.6] bpo-36564: Fix infinite loop in email folding logic (GH-12732) #14799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2019

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 16, 2019

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

https://bugs.python.org/issue36564

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>
@bedevere-bot bedevere-bot added the type-security A security issue label Jul 16, 2019
@warsaw 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) Jul 16, 2019
@warsaw
Copy link
Member

warsaw commented Jul 16, 2019

@ned-deily

@miss-islington
Copy link
Contributor Author

@pganssle and @warsaw: Status check is done, and it's a failure ❌ .

@warsaw
Copy link
Member

warsaw commented Jul 16, 2019

@maxking

@maxking
Copy link
Contributor

maxking commented Jul 16, 2019

The failure is due to:

Build execution time has reached the maximum allowed time for your plan (60 minutes).

The Linux builds on Azure and Travis went through without any errors. Maybe we need to restart the build on Appveyor.

@ned-deily
Copy link
Member

Thanks for looking into it. I wouldn’t worry about the failure. I will take a look and presumably merge the PR later when I’m back from holiday.

@miss-islington
Copy link
Contributor Author

@pganssle and @warsaw: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

Sorry, I can't merge this PR. Reason: You're not authorized to push to this branch. Visit https://help.github.com/articles/about-protected-branches/ for more information..

@ned-deily ned-deily merged commit 79a47e2 into python:3.6 Jul 21, 2019
@miss-islington miss-islington deleted the backport-f69d5c6-3.6 branch July 21, 2019 14:01
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.

7 participants