Repository navigation
Conversation
The parser followed nested structs, lists, sets and maps without any limit. Each level of nesting costs only a few bytes on the wire, and deeply nested values could overflow the goroutine stack. A stack overflow is a fatal runtime error that recover cannot catch, so it terminated the whole Packetbeat process rather than just the affected stream. Thread a depth through readStruct, readListOrSet and readMap, and treat composite types beyond 64 levels as unknown so the stream is dropped as a parse error. The limit matches the default recursion limit of the Apache Thrift libraries. Add tests for each composite type at the limit, just beyond it, and at a depth that overflows the stack without the limit, plus a test through Parse. Document the limit.
Contributor
🤖 GitHub commentsJust comment with:
|
Contributor
🔍 Preview links for changed docs |
Contributor
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
efd6
marked this pull request as ready for review
November 26, 2026 04:31
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
marc-gr
approved these changes
Nov 26, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.Disruptive User Impact
How to test this PR locally
Related issues
Use cases
Screenshots
Logs