commit | 93fea15b51494a79992a5323c803325537134bd8 | [log] [tgz] |
---|---|---|
author | Konrad Grochowski <hcorg@apache.org> | Thu Oct 02 16:29:14 2014 +0200 |
committer | Konrad Grochowski <hcorg@minions.org.pl> | Wed Oct 08 13:35:54 2014 +0200 |
tree | 9b30a4cebbdf9f0a655223fd79699d0c036345ef | |
parent | 9a7cb9f6c8e6cab5970075e2faf40944ce331ad2 [diff] [blame] |
THRIFT-2757: py - Added integer limits checks in compact and JSON protocols Client: Python Patch: Bret Curtis This closes: #234
diff --git a/lib/py/src/protocol/TCompactProtocol.py b/lib/py/src/protocol/TCompactProtocol.py index 79deda8..7054ab0 100644 --- a/lib/py/src/protocol/TCompactProtocol.py +++ b/lib/py/src/protocol/TCompactProtocol.py
@@ -45,6 +45,7 @@ def makeZigZag(n, bits): + checkIntegerLimits(n, bits) return (n << 1) ^ (n >> (bits - 1))