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
2021-03-30 16:13:36 -07:00
2021-03-30 16:13:36 -07:00
2020-08-08 14:40:23 +03:00
2022-04-10 02:38:48 -07:00
2020-02-11 10:34:23 -08:00
2019-06-24 18:25:52 +01:00
2019-06-24 18:25:52 +01:00
2022-04-11 11:19:13 -07:00

go-libp2p-core

GoDoc Coverage Status Build Status Discourse posts

Home to the interfaces and abstractions that make up go-libp2p.

Install

go get github.com/libp2p/go-libp2p-core

Usage

Check out the GoDocs.

Testing

To test instantiations of interfaces and abstractions, you can use the test suite.

License

Dual-licensed under MIT and ASLv2, by way of the Permissive License Stack.

Description
Interfaces and abstractions that make up go-libp2p
Readme 1.3 MiB
Languages
Go 100%