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

   ## Summary
   
   - Adds a thread-local recursion depth counter in `thrift.codegen.base`
   - `readStruct` and `writeStruct` increment on entry and decrement via 
`scope(exit)` on normal or exceptional return
   - Limit is 64; raises `TProtocolException.DEPTH_LIMIT` on excess
   - Includes `unittest` verifying depth limit and rollback behaviour
   
   ## Test plan
   
   - [ ] `unittest` block in `lib/d/` verifies depth limit and counter 
restoration
   
   🤖 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