Skip to content

Add depth limit of 128 for BSON document parsing#45214

Open
etruong42 wants to merge 1 commit into
envoyproxy:mainfrom
etruong42:bson_limit
Open

Add depth limit of 128 for BSON document parsing#45214
etruong42 wants to merge 1 commit into
envoyproxy:mainfrom
etruong42:bson_limit

Conversation

@etruong42
Copy link
Copy Markdown
Contributor

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Ethan Truong <ethantruong@google.com>
@etruong42 etruong42 requested a review from mattklein123 as a code owner May 21, 2026 16:35
void fromBuffer(Buffer::Instance& data);
void fromBuffer(Buffer::Instance& data, uint32_t depth);

static constexpr uint32_t MaxDepth = 128;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider adding a runtime value for this max_depth default to 128.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants