This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Random "Error: invalid ip address" crash #93
Comments
TomCoded
added a commit
to TomCoded/js-libp2p-tcp
that referenced
this issue
Jul 23, 2018
Per the nodeJS documentation, a Net socket.remoteAddress value may be undefined if the socket is destroyed, as by a client disconnect. A multiaddr cannot be created for an invalid IP address (such as the undefined remote address of a destroyed socket). Currently the attempt results in a crash that can be triggered remotely. This commit terminates processing of a destroyed socket before multiaddr causes the crash. fixes: libp2p#93 fixes: ipfs/js-ipfs#1447
TomCoded
added a commit
to TomCoded/js-libp2p-tcp
that referenced
this issue
Jul 23, 2018
Per the nodeJS documentation, a Net socket.remoteAddress value may be undefined if the socket is destroyed, as by a client disconnect. A multiaddr cannot be created for an invalid IP address (such as the undefined remote address of a destroyed socket). Currently the attempt results in a crash that can be triggered remotely. This commit terminates processing of a destroyed socket before multiaddr causes the crash. fixes: libp2p#93 fixes: ipfs/js-ipfs#1447
TomCoded
added a commit
to TomCoded/js-libp2p-tcp
that referenced
this issue
Jul 23, 2018
Per the nodeJS documentation, a Net socket.remoteAddress value may be undefined if the socket is destroyed, as by a client disconnect. A multiaddr cannot be created for an invalid IP address (such as the undefined remote address of a destroyed socket). Currently the attempt results in a crash that can be triggered remotely. This commit terminates processing of a destroyed socket before multiaddr causes the crash. fixes: libp2p#93 fixes: ipfs/js-ipfs#1447
TomCoded
added a commit
to TomCoded/js-libp2p-tcp
that referenced
this issue
Jul 31, 2018
Per the nodeJS documentation, a Net socket.remoteAddress value may be undefined if the socket is destroyed, as by a client disconnect. A multiaddr cannot be created for an invalid IP address (such as the undefined remote address of a destroyed socket). Currently the attempt results in a crash that can be triggered remotely. This commit catches the exception in get-multiaddr and returns an undefined value to listener rather than throwing an exception when trying to process defective or destroyed socket data. Listener then terminates processing of the incoming p2p connections that generate this error condition. fixes: libp2p#93 fixes: ipfs/js-ipfs#1447
TomCoded
added a commit
to TomCoded/js-libp2p-tcp
that referenced
this issue
Jul 31, 2018
Per the nodeJS documentation, a Net socket.remoteAddress value may be undefined if the socket is destroyed, as by a client disconnect. A multiaddr cannot be created for an invalid IP address (such as the undefined remote address of a destroyed socket). Currently the attempt results in a crash that can be triggered remotely. This commit catches the exception in get-multiaddr and returns an undefined value to listener rather than throwing an exception when trying to process defective or destroyed socket data. Listener then terminates processing of the incoming p2p connections that generate this error condition. fixes: libp2p#93 fixes: ipfs/js-ipfs#1447
TomCoded
added a commit
to TomCoded/js-libp2p-tcp
that referenced
this issue
Jul 31, 2018
Per the nodeJS documentation, a Net socket.remoteAddress value may be undefined if the socket is destroyed, as by a client disconnect. A multiaddr cannot be created for an invalid IP address (such as the undefined remote address of a destroyed socket). Currently the attempt results in a crash that can be triggered remotely. This commit catches the exception in get-multiaddr and returns an undefined value to listener rather than throwing an exception when trying to process defective or destroyed socket data. Listener then terminates processing of the incoming p2p connections that generate this error condition. fixes: libp2p#93 fixes: ipfs/js-ipfs#1447
jacobheun
pushed a commit
that referenced
this issue
Jul 31, 2018
Per the nodeJS documentation, a Net socket.remoteAddress value may be undefined if the socket is destroyed, as by a client disconnect. A multiaddr cannot be created for an invalid IP address (such as the undefined remote address of a destroyed socket). Currently the attempt results in a crash that can be triggered remotely. This commit catches the exception in get-multiaddr and returns an undefined value to listener rather than throwing an exception when trying to process defective or destroyed socket data. Listener then terminates processing of the incoming p2p connections that generate this error condition. fixes: #93 fixes: ipfs/js-ipfs#1447
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The libp2p-nodetrust server crashed because of an incoming TCP connection.
Unsure what caused this.
Logs:
More details: https://sentry.zion.host/share/issue/b1f38bc0602b46bd948b18bdb8c91523/
The text was updated successfully, but these errors were encountered: