forked from google/OpenSK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cbor: don't allow infinite nesting by default
Change the read()/write() methods to use a nesting limit of 127 internally, to avoid the possibility of heavily nested inputs exhausting the stack. Library users that still want to skip nesting checks can still get at this functionality by using `{read,write}_nested(..., None)`.
- Loading branch information
1 parent
ed28941
commit a2b299c
Showing
2 changed files
with
6 additions
and
4 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