]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99232)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Nov 2022 03:22:14 +0000 (19:22 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Nov 2022 03:22:14 +0000 (22:22 -0500)
commitb0b590be9597fd5919228d251812dd54145f70a7
tree1f7b1134db894fd4017010c94104a2eead0fbff0
parent64e95f2bab5f3e0aff8cce486daf980e99c31e82
[3.7] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99232)

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

(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]