Skip to content

Crash when accessing /proc/net/tcp for hostinet #639

Closed
@tanjianfeng

Description

@tanjianfeng

Commit 94a6bfa ("Implement /proc/net/tcp.") implements a way to lookup tcp stream information. It calls socket->GetSockName and GetPeerName to get the tcp connection information. However, hostinet returns address as []byte instead of linux.SockAddrInet, which leads to type assertion failure, and crash.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions