]> 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:42:39 +0000 (19:42 -0800)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2020 03:42:39 +0000 (06:42 +0300)
commitdaef21ce7dfd3735101d85d6ebf7554187c33ab8
tree5d82af9309af1da8df7a385e2e2b1692e5f0cf0f
parent1f4cf0c22b00fefb17611546755b65d3cb488330
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]