go/src/net/testdata
Roland Shoemaker d3e3d03666 net: reject leading zeros in IP address parsers
In both net.ParseIP and net.ParseCIDR reject leading zeros in the
dot-decimal notation of IPv4 addresses.

Fixes #30999
Fixes #43389

Change-Id: I2b6a31fe84db89ac828cf5ed03eaa586ee96ab68
Reviewed-on: https://go-review.googlesource.com/c/go/+/325829
Trust: Roland Shoemaker <roland@golang.org>
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2021-06-08 20:23:22 +00:00
..
case-hosts
domain-resolv.conf
empty-resolv.conf
freebsd-usevc-resolv.conf
hosts
igmp
igmp6
invalid-ndots-resolv.conf
ipv4-hosts
ipv6-hosts
large-ndots-resolv.conf
linux-use-vc-resolv.conf
negative-ndots-resolv.conf
openbsd-resolv.conf
openbsd-tcp-resolv.conf
resolv.conf
search-resolv.conf
single-request-reopen-resolv.conf
single-request-resolv.conf
singleline-hosts