commit | 1e41be40d8c0bcccda698c57f77fb5cb2a66f044 | [log] [tgz] |
---|---|---|
author | Jens Geyer <jensg@apache.org> | Sat Feb 09 11:50:03 2019 +0100 |
committer | Jens Geyer <jensg@apache.org> | Mon Feb 25 22:14:33 2019 +0100 |
tree | 28f48d468e7c88d745dd196d70c8c2ea5f6e6764 | |
parent | 384647d290e2e4a55a14b1b7ef1b7e66293a2c33 [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"); } } }