Skip to content

fix: Consolidate depth limit checks#2246

Merged
dcodeIO merged 1 commit into
masterfrom
patch/limits
May 12, 2026
Merged

fix: Consolidate depth limit checks#2246
dcodeIO merged 1 commit into
masterfrom
patch/limits

Conversation

@dcodeIO
Copy link
Copy Markdown
Member

@dcodeIO dcodeIO commented May 12, 2026

Consolidates depth limit checks across parser, descriptor, JSON and textformat, and introduces util.nestingLimit as a second limit aligned with protoc’s MaxMessageDeclarationNestingDepth.

Also removes the util.checkDepth helper again, given that it is less clear with multiple limits.

@dcodeIO dcodeIO requested a review from alexander-fenster May 12, 2026 00:15
@dcodeIO dcodeIO merged commit 9050289 into master May 12, 2026
5 checks passed
@github-actions github-actions Bot mentioned this pull request May 12, 2026
@dcodeIO dcodeIO deleted the patch/limits branch May 12, 2026 17:09
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