]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-98433: Fix quadratic time idna decoding. (GH-99092) (#99222)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Nov 2022 02:57:10 +0000 (18:57 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Nov 2022 02:57:10 +0000 (18:57 -0800)
commita6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15
treefaecc667ee3495db314329dede92803a41612ae8
parent1add2393a87ef036b90b59b6a2a342b7f56646ff
[3.11] gh-98433: Fix quadratic time idna decoding. (GH-99092) (#99222)

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

(cherry picked from commit d315722564927c7202dd6e111dc79eaf14240b0d)

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]