aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec
diff options
context:
space:
mode:
authorMatt Layher <mdlayher@gmail.com>2022-03-29 10:42:58 -0400
committerMatt Layher <mdlayher@gmail.com>2022-03-29 15:43:06 +0000
commitae9ce822ff4015fbbe7aa4303e6f3c160f2c53af (patch)
treef98686961b191eff86e4e0674eb9a3ff2395e511 /src/os/exec
parent9b90838712856cad86504a526e566f963f86c04e (diff)
downloadgo-ae9ce822ff4015fbbe7aa4303e6f3c160f2c53af.tar.xz
net/netip: return an error from ParsePrefix with IPv6 zone input
net.ParseCIDR already rejects input in the form of 2001:db8::%a/32, but netip.ParsePrefix previously accepted the input and silently dropped the zone. Make the two consistent by always returning an error if an IPv6 zone is present in CIDR input for ParsePrefix. Fixes #51899. Change-Id: Iee7d8d4a5161e0b54a4ee1bd68b02c1a287ff399 Reviewed-on: https://go-review.googlesource.com/c/go/+/396299 Trust: Matt Layher <mdlayher@gmail.com> Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com> Trust: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/os/exec')
0 files changed, 0 insertions, 0 deletions