This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch 0.12.1
in repository https://gitbox.apache.org/repos/asf/thrift.git

commit 1e41be40d8c0bcccda698c57f77fb5cb2a66f044
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");
       }
     }
   }

Reply via email to