]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 May 2021 13:49:03 +0000 (06:49 -0700)
committerGitHub <noreply@github.com>
Sun, 2 May 2021 13:49:03 +0000 (15:49 +0200)
commit5374fbc31446364bf5f12e5ab88c5493c35eaf04
treedf1f73273aafe1a0e0da4358cb15da64c66bf71c
parentcf6a79644c227159b8b5a44055650266d578b9f6
bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH-25815)

Reverts commit e653d4d8e820a7a004ad399530af0135b45db27a and makes
parsing even more strict. Like socket.inet_pton() any leading zero
is now treated as invalid input.

Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
(cherry picked from commit 60ce8f0be6354ad565393ab449d8de5d713f35bc)
Doc/library/ipaddress.rst
Doc/tools/susp-ignored.csv
Doc/whatsnew/3.9.rst
Lib/ipaddress.py
Lib/test/test_ipaddress.py
Misc/NEWS.d/next/Security/2021-03-30-16-29-51.bpo-36384.sCAmLs.rst [new file with mode: 0644]