New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: nil pointer deref #4033
Labels
Milestone
Comments
OK I happens here: func remoteSockname(fd *netFD, toAddr func(syscall.Sockaddr) Addr) Addr { sa, _ := syscall.Getpeername(fd.sysfd) if sa == nil { return nullProtocolAddr(fd.family, fd.sotype) } return toAddr(sa) } when syscall.Getpeername() returns nil with errno=ENOTCONN, nullProtocolAddr() return (*TCPAddr)(nil) that is later dereferenced in selfConnect(). Owner changed to ---. Status changed to New. |
This is CL http://golang.org/cl/6479053/ Labels changed: added priority-soon, removed priority-triage. Owner changed to @mikioh. Status changed to Accepted. |
The root cause of this issue, a fragile fix for the issue #3721, is reverted. Status changed to Retracted. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: