diff options
author | Yuxuan 'fishy' Wang <yuxuan.wang@reddit.com> | 2022-05-10 13:18:51 -0700 |
---|---|---|
committer | Yuxuan 'fishy' Wang <fishywang@gmail.com> | 2022-05-12 13:28:14 -0700 |
commit | 71ba05ba2dd50aff11f1e88df0712aa9f6df8c9d (patch) | |
tree | 5a301ebf3ebfb66809298555ac866865d112d1f7 | |
parent | 5b158389b01d028e98e59f0ea41c01d625a84242 (diff) | |
download | thrift-71ba05ba2dd50aff11f1e88df0712aa9f6df8c9d.tar.gz |
THRIFT-5569: Fix size check in TCompactProtocol.ReadListBegin
Client: go
This was a copy-paste error in the original implementation in
6583f4e52345c3b05a76f0b188836599628356e8.
-rw-r--r-- | lib/go/thrift/compact_protocol.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/go/thrift/compact_protocol.go b/lib/go/thrift/compact_protocol.go index ff3999c0e..dc86fe605 100644 --- a/lib/go/thrift/compact_protocol.go +++ b/lib/go/thrift/compact_protocol.go @@ -516,7 +516,7 @@ func (p *TCompactProtocol) ReadListBegin(ctx context.Context) (elemType TType, s } size = int(size2) } - err = checkSizeForProtocol(size32, p.cfg) + err = checkSizeForProtocol(int32(size), p.cfg) if err != nil { return } |