Jens Geyer created THRIFT-6014:
----------------------------------
Summary: Add recursion depth limit to skip() in JavaScript library
Key: THRIFT-6014
URL: https://issues.apache.org/jira/browse/THRIFT-6014
Project: Thrift
Issue Type: Improvement
Components: JavaScript - Library
Reporter: Jens Geyer
The skip() method in the browser JavaScript library (lib/js/src/thrift.js)
recurses without a depth bound on nested container and struct types. The
Node.js protocols (binary, compact, JSON) already enforce a depth limit of 64.
This aligns the browser library with the Node.js implementation by adding a
depth parameter and throwing TProtocolException with DEPTH_LIMIT when depth
exceeds 64.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)