go-libp2p-core/peer
Steven Allen 648dc3fba2
feat: harden encoding/decoding functions against panics (#243)
* feat: harden encoding/decoding functions against panics

Part of https://github.com/libp2p/go-libp2p/issues/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
2022-04-18 12:40:37 -07:00
..
pb Signed envelopes & routing records (#73) 2020-02-10 14:53:24 -05:00
addrinfo_serde.go feat: harden encoding/decoding functions against panics (#243) 2022-04-18 12:40:37 -07:00
addrinfo_test.go remove deprecated functions in the peer package (#205) 2021-07-22 12:17:36 -07:00
addrinfo.go remove deprecated functions in the peer package (#205) 2021-07-22 12:17:36 -07:00
peer_serde_test.go absorb {crypto,peer} test utils. (#8) 2019-05-23 16:07:58 +01:00
peer_serde.go remove deprecated functions in the peer package (#205) 2021-07-22 12:17:36 -07:00
peer_test.go remove deprecated Bytes method from the Key interface (#204) 2021-07-22 12:18:09 -07:00
peer.go fix: switch to go-multicodec mappings (#240) 2022-03-31 16:04:14 +02:00
record_test.go fix: make timestamps strictly increasing (#201) 2021-07-16 15:02:22 -07:00
record.go feat: harden encoding/decoding functions against panics (#243) 2022-04-18 12:40:37 -07:00
set.go fix staticcheck errors (#191) 2021-03-30 16:13:36 -07:00