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)
committerAdrian Bunk <bunk@debian.org>
Sun, 1 Dec 2024 12:12:57 +0000 (14:12 +0200)
commit2c20c73044b5881f91e3207172ebca945db1dd86
tree34f3be4ef866662d420fbf3dc42ab23a3092a3b2
parent299c795a2c1d52b4f3c180856ddcca7a23eb17e6
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)

Gbp-Pq: Name 0009-bpo-36384-Leading-zeros-in-IPv4-addresses-are-no-lon.patch
Doc/library/ipaddress.rst
Doc/tools/susp-ignored.csv
Lib/ipaddress.py
Lib/test/test_ipaddress.py