This is an automated email from the ASF dual-hosted git repository.
jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 2b70c1d THRIFT-4784 Thrift should throw when skipping over unexpected
data Client: as3 Patch: Jens Geyer
2b70c1d is described below
commit 2b70c1df2bb2c1667f30dff6d4b263459fabe91a
Author: Jens Geyer <[email protected]>
AuthorDate: Sat Feb 9 11:50:03 2019 +0100
THRIFT-4784 Thrift should throw when skipping over unexpected data
Client: as3
Patch: Jens Geyer
---
lib/as3/src/org/apache/thrift/protocol/TProtocolUtil.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/as3/src/org/apache/thrift/protocol/TProtocolUtil.as
b/lib/as3/src/org/apache/thrift/protocol/TProtocolUtil.as
index 513df95..22877b7 100644
--- a/lib/as3/src/org/apache/thrift/protocol/TProtocolUtil.as
+++ b/lib/as3/src/org/apache/thrift/protocol/TProtocolUtil.as
@@ -141,7 +141,7 @@ package org.apache.thrift.protocol {
break;
}
default:
- break;
+ throw new TProtocolError(TProtocolError.INVALID_DATA, "invalid
data");
}
}
}