Skip to content

[3.9] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222)#99230

Merged
ambv merged 1 commit into
python:3.9from
miss-islington:backport-a6f6c3a-3.9
Nov 10, 2022
Merged

[3.9] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222)#99230
ambv merged 1 commit into
python:3.9from
miss-islington:backport-a6f6c3a-3.9

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

There was an unnecessary quadratic loop in idna decoding. This restores
the behavior to linear.

(cherry picked from commit d315722)

(cherry picked from commit a6f6c3a)

Co-authored-by: Miss Islington (bot) 31488909+miss-islington@users.noreply.github.com
Co-authored-by: Gregory P. Smith greg@krypto.org

) (pythonGH-99222)

There was an unnecessary quadratic loop in idna decoding. This restores
the behavior to linear.

(cherry picked from commit d315722)

(cherry picked from commit a6f6c3a)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
@bedevere-bot bedevere-bot added type-bug An unexpected behavior, bug, or error type-security A security issue labels Nov 8, 2022
@gpshead gpshead changed the title [3.9] [3.11] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) [3.9] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) Nov 8, 2022
@miss-islington

Copy link
Copy Markdown
Contributor Author

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

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@vstinner

vstinner commented Nov 9, 2022

Copy link
Copy Markdown
Member

@ambv: Would you mind to merge this security fix? It's already in other branches, including 3.7 ;-)

@ambv
ambv merged commit c09dba5 into python:3.9 Nov 10, 2022
@miss-islington
miss-islington deleted the backport-a6f6c3a-3.9 branch November 10, 2022 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-blocker type-bug An unexpected behavior, bug, or error type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants