You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@thrift.apache.org by "Jens-G (via GitHub)" <gi...@apache.org> on 2026/05/28 11:47:09 UTC
[PR] THRIFT-6053: Limit struct read/write recursion depth in D library [thrift]
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 <no...@anthropic.com>
--
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: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] THRIFT-6053: Limit struct read/write recursion depth in D library [thrift]
Posted by "Jens-G (via GitHub)" <gi...@apache.org>.
Jens-G merged PR #3558:
URL: https://github.com/apache/thrift/pull/3558
--
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: notifications-unsubscribe@thrift.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org