Skip to content

Bound gRPC frame sizes#220

Open
benthecarman wants to merge 2 commits into
lightningdevkit:mainfrom
benthecarman:fix-bounded-grpc-stream-frames
Open

Bound gRPC frame sizes#220
benthecarman wants to merge 2 commits into
lightningdevkit:mainfrom
benthecarman:fix-bounded-grpc-stream-frames

Conversation

@benthecarman
Copy link
Copy Markdown
Collaborator

Reject oversized server-streaming gRPC messages as soon as their frame
header is available. Also reject compressed stream frames consistently
and avoid unchecked frame length arithmetic before slicing buffers.

Read unary client responses incrementally and reject bodies above the
configured limit before protobuf decoding. Preallocate only after a
valid Content-Length has been checked.

tested with all the graph clis and they still fit within the limit

Reject oversized server-streaming gRPC messages as soon as their frame
header is available. Also reject compressed stream frames consistently
and avoid unchecked frame length arithmetic before slicing buffers.
Read unary client responses incrementally and reject bodies above the
configured limit before protobuf decoding. Preallocate only after a
valid Content-Length has been checked.
@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented May 23, 2026

I've assigned @valentinewallace as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

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