thrift/CVE-2019-0205.patch

24 lines
888 B
Diff
Raw Normal View History

2021-01-12 14:17:45 +08:00
From 2b70c1df2bb2c1667f30dff6d4b263459fabe91a Mon Sep 17 00:00:00 2001
From: Jens Geyer <jensg@apache.org>
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");
}
}
}