Permalink
Show file tree
Hide file tree
2 changes: 2 additions & 0 deletions
2
thrift/lib/java/src/main/java/com/facebook/thrift/protocol/TBinaryProtocol.java
1 change: 1 addition & 0 deletions
1
thrift/lib/java/src/main/java/com/facebook/thrift/protocol/TCompactProtocol.java
74 changes: 60 additions & 14 deletions
74
thrift/lib/java/src/test/java/com/facebook/thrift/TruncatedFrameTest.java
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Java: Check the size of the remaining frame before deserializing a st…
…ring Summary: In order to avoid over-allocating memory for malformed or truncated frame, we ensure that we have enough data in the current frame. This is a partial fix for CVE-2019-11938. Reviewed By: vitaut Differential Revision: D14505601 fbshipit-source-id: c90f248828b067a3a5debcc8df6a3f4e9da6d195
- Loading branch information
1 parent
71c97ff
commit 08c2d41
Showing
4 changed files
with
67 additions
and
14 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
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