Skip to content

gh-136063: fix quadratic-complexity parsing in email.message._parseparam #136072

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Jun 28, 2025

@serhiy-storchaka I think this one can be done without changing the interface. Just to be sure, but count() and find() have all linear complexities right (linear in the window they are using, not in the entire string).

@picnixz picnixz force-pushed the fix/email/parseparam-dos-136063 branch from 8763366 to d356a14 Compare June 28, 2025 12:44
@picnixz picnixz requested a review from serhiy-storchaka June 28, 2025 12:49
@picnixz picnixz marked this pull request as ready for review June 28, 2025 12:49
@picnixz picnixz requested a review from a team as a code owner June 28, 2025 12:49
@picnixz picnixz added the type-security A security issue label Jun 29, 2025
@picnixz picnixz marked this pull request as draft July 20, 2025 07:54
@picnixz picnixz marked this pull request as ready for review July 20, 2025 09:09
@picnixz picnixz added needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting core review needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes type-security A security issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants