From 2b70c1df2bb2c1667f30dff6d4b263459fabe91a Mon Sep 17 00:00:00 2001 From: Jens Geyer Date: Sat, 9 Feb 2019 11:50:03 +0100 Subject: [PATCH] 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 513df954be..22877b75b2 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"); } } }