This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reject CBOR data with extraneous back-to-back encoded data
The streaming form of CBOR (3.1) may use back-to-back top-level objects without an explicit container and borc will decode this without failure. `decodeFirst()` will only return the first of these but additional data may exist but be hidden. Ref: dignifiedquire/borc#47 (comment) Ref: ipld/specs#268
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 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
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