This repository has been archived by the owner on Aug 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent stack overflow from nested tags
In the deserializer decrement the remaining depth each time a tagged value is encountered to prevent stack overflows caused by this recursion. Small malicious input can cause this overflow, therefore it is considered to be a security issue. I'd like to thank Eric Rafaloff at Trail of Bits, who discovered this issue during a code review, for reporting it. Add a test case.
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 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