commit | 2b70c1df2bb2c1667f30dff6d4b263459fabe91a | [log] [tgz] |
---|---|---|
author | Jens Geyer <jensg@apache.org> | Sat Feb 09 11:50:03 2019 +0100 |
committer | James E. King III <jking@apache.org> | Sat Feb 09 10:47:31 2019 -0500 |
tree | 374a8ef89f2d809ef8d571e69d192fde2e65dfd6 | |
parent | 6c26e098cab78a965ff14460f2fee52e6940b2ed [diff] |
THRIFT-4784 Thrift should throw when skipping over unexpected data Client: as3 Patch: Jens Geyer
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 @@ break; } default: - break; + throw new TProtocolError(TProtocolError.INVALID_DATA, "invalid data"); } } }