]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099...
authorachraf-mer <51244975+achraf-mer@users.noreply.github.com>
Tue, 17 Aug 2021 23:46:37 +0000 (19:46 -0400)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 23:46:37 +0000 (01:46 +0200)
commit03dd89d62413c4a92831ed1b36e2ae8983bcb2d4
treebf9a53308e0e696409fb57123cd1b425180dc0ff
parentd7f5796a1ec7ba223f6a844d7580559abef05238
[3.8] bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH-27801)

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/whatsnew/3.8.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]