You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ianlancetaylor
changed the title
ipv6.NewPacketConn WriteTo panics if payload is nil byte slice
x/net/ipv6: NewPacketConn WriteTo panics if payload is nil byte slice
Oct 3, 2017
ianlancetaylor
changed the title
x/net/ipv6: NewPacketConn WriteTo panics if payload is nil byte slice
x/net/internal/socket: (*iovec).set crashes on empty slice
Oct 3, 2017
What version of Go are you using (
go version
)?go version go1.9 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOOS="darwin"
What did you do?
Used a nil slice as the payload for ipv6.NewPacketConn
WriteTo
method:n, err := p.WriteTo([]byte{}, nil, c.LocalAddr())
caused a panic.https://play.golang.org/p/K9b6ts4oAh
What did you expect to see?
I expected an error or nothing to happen.
What did you see instead?
The text was updated successfully, but these errors were encountered: