]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30566: Fix IndexError when using punycode codec (GH-18632)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 25 Feb 2020 03:43:46 +0000 (19:43 -0800)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2020 03:43:46 +0000 (06:43 +0300)
commit55be9a6c09d4415f50b14212ce22eccefa83ca64
tree896e219b63b49f23b42f3e9d96a266f7243cae8d
parente349e83826e0dd9fd7b0262d33700f1f92b97c73
bpo-30566: Fix IndexError when using punycode codec (GH-18632)

Trying to decode an invalid string with the punycode codec
shoud raise UnicodeError.

(cherry picked from commit ba22e8f174309979d90047c5dc64fcb63bc2c32e)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Lib/encodings/punycode.py
Lib/test/test_codecs.py
Misc/NEWS.d/next/Library/2020-02-24-03-45-28.bpo-30566.qROxty.rst [new file with mode: 0644]