-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add detection of trailing garbage in deserialization/consumption (#30)
- dict/list consumers gain a `.finish()` method that consumes the rest of the data to check that everything is valid *and* that the final `e` actually ends and the end (i.e. no trailing garbage). - bt_deserialize now makes sure the entire string gets consumed and throws if it doesn't.
- Loading branch information
Showing
2 changed files
with
70 additions
and
1 deletion.
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