-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix decoding CBOR nil to *cbor.SimpleValue
Unmarshalling CBOR nil or CBOR undefined into a Go pointer should always set the pointer to nil. This commit fixes crash bug when unmarshalling CBOR nil or CBOR undefined into *cbor.SimpleValue by setting the pointer to nil. Also, added more tests for decoding to uninitialized and initialized pointer values. Separately (not part of this commit), the fuzzer was updated to attempt unmarshaling to *cbor.SimpleValue.
- Loading branch information
Showing
2 changed files
with
182 additions
and
66 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