You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2017/12/03 01:02:40 UTC
[10/50] [abbrv] thrift git commit: THRIFT-4362 check "read length" in
readStringBody(int) Client: Java
THRIFT-4362 check "read length" in readStringBody(int)
Client: Java
This closes #1398
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/a39ba7f2
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/a39ba7f2
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/a39ba7f2
Branch: refs/heads/0.11.0
Commit: a39ba7f2946c08fa59dd0928e9c608a70ca52529
Parents: e7611d0
Author: christianc <ch...@energymeteo.de>
Authored: Tue Oct 24 09:25:20 2017 +0200
Committer: James E. King, III <jk...@apache.org>
Committed: Wed Oct 25 08:40:51 2017 -0400
----------------------------------------------------------------------
lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/a39ba7f2/lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java
----------------------------------------------------------------------
diff --git a/lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java b/lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java
index d7f8b83..aaa1fd8 100644
--- a/lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java
+++ b/lib/java/src/org/apache/thrift/protocol/TBinaryProtocol.java
@@ -373,6 +373,7 @@ public class TBinaryProtocol extends TProtocol {
}
public String readStringBody(int size) throws TException {
+ checkStringReadLength(size);
try {
byte[] buf = new byte[size];
trans_.readAll(buf, 0, size);