gh-136063: fix quadratic-complexity parsing in email.message._parseparam#136072
Merged
Conversation
picnixz
force-pushed
the
fix/email/parseparam-dos-136063
branch
from
June 28, 2025 12:44
8763366 to
d356a14
Compare
picnixz
marked this pull request as ready for review
June 28, 2025 12:49
aeurielesn
reviewed
Jul 19, 2025
picnixz
marked this pull request as draft
July 20, 2025 07:54
picnixz
marked this pull request as ready for review
July 20, 2025 09:09
Member
Author
|
@serhiy-storchaka friendly ping |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Oct 31, 2025
…parseparam` (pythonGH-136072) (cherry picked from commit 680a5d0) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Oct 31, 2025
…parseparam` (pythonGH-136072) (cherry picked from commit 680a5d0) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-140827 is a backport of this pull request to the 3.14 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Oct 31, 2025
…parseparam` (pythonGH-136072) (cherry picked from commit 680a5d0) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-140828 is a backport of this pull request to the 3.13 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Oct 31, 2025
…parseparam` (pythonGH-136072) (cherry picked from commit 680a5d0) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-140829 is a backport of this pull request to the 3.12 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Oct 31, 2025
…parseparam` (pythonGH-136072) (cherry picked from commit 680a5d0) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-140830 is a backport of this pull request to the 3.11 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Oct 31, 2025
…parseparam` (pythonGH-136072) (cherry picked from commit 680a5d0) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-140831 is a backport of this pull request to the 3.10 branch. |
|
GH-140832 is a backport of this pull request to the 3.9 branch. |
ambv
pushed a commit
that referenced
this pull request
Oct 31, 2025
ambv
added a commit
that referenced
this pull request
Oct 31, 2025
hugovk
pushed a commit
that referenced
this pull request
Nov 30, 2025
hugovk
pushed a commit
that referenced
this pull request
Nov 30, 2025
StanFromIreland
pushed a commit
to StanFromIreland/cpython
that referenced
this pull request
Dec 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@serhiy-storchaka I think this one can be done without changing the interface. Just to be sure, but
count()andfind()have all linear complexities right (linear in the window they are using, not in the entire string).emailModule #136063