-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Catching panics #1389
Comments
This was referenced Apr 11, 2022
Stebalien
added a commit
to libp2p/go-libp2p-core
that referenced
this issue
Apr 14, 2022
Part of libp2p/go-libp2p#1389 These kinds of functions: 1. Handle user input. 2. Often have out-of-bounds, null pointer, etc bugs. 3. Have completely isolated logic where local panics are unlikely to cause memory corruption elsewhere.
Stebalien
added a commit
to libp2p/go-yamux
that referenced
this issue
Apr 14, 2022
Stebalien
added a commit
to libp2p/go-yamux
that referenced
this issue
Apr 14, 2022
Stebalien
added a commit
to libp2p/go-yamux
that referenced
this issue
Apr 14, 2022
Stebalien
added a commit
to libp2p/go-libp2p-core
that referenced
this issue
Apr 16, 2022
Part of libp2p/go-libp2p#1389 These kinds of functions: 1. Handle user input. 2. Often have out-of-bounds, null pointer, etc bugs. 3. Have completely isolated logic where local panics are unlikely to cause memory corruption elsewhere.
Stebalien
added a commit
to libp2p/go-libp2p-core
that referenced
this issue
Apr 18, 2022
Part of libp2p/go-libp2p#1389 These kinds of functions: 1. Handle user input. 2. Often have out-of-bounds, null pointer, etc bugs. 3. Have completely isolated logic where local panics are unlikely to cause memory corruption elsewhere.
marten-seemann
pushed a commit
to libp2p/go-libp2p-core
that referenced
this issue
Apr 18, 2022
* feat: harden encoding/decoding functions against panics Part of libp2p/go-libp2p#1389 These kinds of functions: 1. Handle user input. 2. Often have out-of-bounds, null pointer, etc bugs. 3. Have completely isolated logic where local panics are unlikely to cause memory corruption elsewhere. * test: add a panic catcher test
Stebalien
added a commit
to libp2p/go-libp2p-tls
that referenced
this issue
Apr 19, 2022
This was referenced Apr 19, 2022
marten-seemann
pushed a commit
that referenced
this issue
Apr 27, 2022
marten-seemann
pushed a commit
that referenced
this issue
Aug 17, 2022
* feat: harden encoding/decoding functions against panics Part of #1389 These kinds of functions: 1. Handle user input. 2. Often have out-of-bounds, null pointer, etc bugs. 3. Have completely isolated logic where local panics are unlikely to cause memory corruption elsewhere. * test: add a panic catcher test
BigLep
added
P3
Low: Not priority right now
and removed
P2
Medium: Good to have, but can wait until someone steps up
labels
Sep 9, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(moving a discussion from a private conversation to somewhere more public)
Libp2p performs quite a bit of complex parsing, which has occasionally lead to panics at runtime. When uncaught, these panics crash the entire node.
Proposal: Catch panics at "failure boundaries". E.g.:
The text was updated successfully, but these errors were encountered: