-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from fxamacker/fxamacker/update-readme-for-cb…
…or-extraneous-data Update README: - Quick Start: mention CBOR settings can be used for trade-offs between speed, security, encoding size, etc. - Quick Start: mention new functions in v2.5.0 that handle remaining bytes (extraneous data) as non-error: - func UnmarshalFirst(data []byte, v interface{}) (rest []byte, err error) - func DiagnoseFirst(data []byte) (string, []byte, error) - Status: more explicitly mention changes should be reviewed before upgrading from v2.4 (or older) to v2.5.0 due to error handling bug fixes related to extraneous data (e.g. PR 380) and other improvements. - CBOR Security: CBOR decoder has configurable limits and option to detect duplicate map keys. By comparison, encoding/gob is not designed to be hardened against adversarial inputs.
- Loading branch information
Showing
1 changed file
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters