commit | 0f760537c3f17502e7694c61417dafc02fc3aa3a | [log] [tgz] |
---|---|---|
author | 郑桐 <yuesen.xys@alibaba-inc.com> | Sat Oct 09 16:01:28 2021 +0800 |
committer | Jens Geyer <Jens-G@users.noreply.github.com> | Mon Oct 18 23:00:55 2021 +0200 |
tree | 7a8861bd74cc760bbb27906acc6a099b0d143a0e | |
parent | 6a7278b9db78777f146b09fdfe42eb342faec171 [diff] |
skip map value with depth limit
diff --git a/lib/go/thrift/protocol.go b/lib/go/thrift/protocol.go index bd76bcc..8543b5f 100644 --- a/lib/go/thrift/protocol.go +++ b/lib/go/thrift/protocol.go
@@ -146,7 +146,11 @@ if err != nil { return err } - self.Skip(ctx, valueType) + + err = Skip(ctx, self, valueType, maxDepth-1) + if err != nil { + return err + } } return self.ReadMapEnd(ctx) case SET: