]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099)
authorChristian Heimes <christian@python.org>
Sun, 2 May 2021 12:00:35 +0000 (14:00 +0200)
committerGitHub <noreply@github.com>
Sun, 2 May 2021 12:00:35 +0000 (14:00 +0200)
commit60ce8f0be6354ad565393ab449d8de5d713f35bc
tree131beaabf8c731503be540fdd09e66f7f2000a41
parent73766b0341674f3920f4ea86a6f8288b801960f9
bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099)

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>
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]