Jens-G opened a new pull request, #3561:
URL: https://github.com/apache/thrift/pull/3561

   ## Summary
   
   - Adds `_recursionDepth` counter, `incrementRecursionDepth()` / 
`decrementRecursionDepth()` to `TProtocol`
   - Limit is 64; throws `TProtocolError` with `TProtocolErrorType.DEPTH_LIMIT` 
on excess
   - Dart generator wraps struct read/write bodies with `try/finally` to 
guarantee counter restoration
   
   ## Test plan
   
   - [ ] `lib/dart/test/protocol/t_protocol_recursion_depth_test.dart` — covers 
allow/reject/restore
   - [ ] `dart test` in `lib/dart` passes
   
   🤖 Generated with [Claude Code](https://claude.ai/claude-code)
   
   Co-Authored-By: Claude Sonnet 4.6 <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to