]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) (GH-99231)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 10 Nov 2022 15:55:43 +0000 (07:55 -0800)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 15:55:43 +0000 (16:55 +0100)
commit82ca2839c9ec6bf9a9400e791a52411824df67f3
tree77d0093ed7d96e6f75e461779dfbfc63cefbdc52
parent948c6794711458fd148a3fa62296cadeeb2ed631
[3.8] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) (GH-99231)

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]