This is an automated email from the ASF dual-hosted git repository.
Jens-G pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
from ec54db5a0 THRIFT-6057: Limit struct write recursion depth in the Rust
library
add 26ba56a5b THRIFT-6044: Limit struct read/write recursion depth in Go
library Client: go
No new revisions were added by this update.
Summary of changes:
compiler/cpp/src/thrift/generate/t_go_generator.cc | 14 +
lib/go/test/Makefile.am | 3 +
lib/go/test/tests/client_error_test.go | 263 ++++++++--------
lib/go/test/tests/optional_fields_test.go | 66 ++--
lib/go/test/tests/recursion_depth_test.go | 332 +++++++++++++++++++++
lib/go/test/tests/required_fields_test.go | 36 +--
lib/go/thrift/recursion_tracker.go | 58 ++++
7 files changed, 589 insertions(+), 183 deletions(-)
create mode 100644 lib/go/test/tests/recursion_depth_test.go
create mode 100644 lib/go/thrift/recursion_tracker.go