Jens-G opened a new pull request, #3559: URL: https://github.com/apache/thrift/pull/3559
## Summary - Adds recursion depth checking to `TProtocol.readStruct()` and `TProtocol.writeStruct()` — the helper methods used by all Kotlin-generated struct serialization code - Reuses the existing `incrementRecursionDepth()` / `decrementRecursionDepth()` infrastructure in `TProtocol`; decrement is guaranteed via `try/finally` - Limit is 64; throws `TProtocolException(TProtocolException.DEPTH_LIMIT)` on excess ## Test plan - [ ] `lib/kotlin/.../RecursionDepthTest.kt` — covers allow/reject/restore - [ ] `./gradlew test` in `lib/kotlin` 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]
