]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) (#99230)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 10 Nov 2022 15:57:41 +0000 (07:57 -0800)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 15:57:41 +0000 (16:57 +0100)
commitc09dba57cfbbf74273ce44b1f48f71b46806605c
treeff19ab0812ea77de71e7ffafb6578ce4c0f95c04
parentb43496c01a554cf41ae654a0379efae18609ad39
[3.9] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) (#99230)

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

(cherry picked from commit d315722564927c7202dd6e111dc79eaf14240b0d)
(cherry picked from commit a6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/encodings/idna.py
Lib/test/test_codecs.py
Misc/NEWS.d/next/Security/2022-11-04-09-29-36.gh-issue-98433.l76c5G.rst [new file with mode: 0644]