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 2 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant