Skip to content

ttrpc: add a message length check before send#119

Closed
cosmoer wants to merge 1 commit intocontainerd:mainfrom
cosmoer:main
Closed

ttrpc: add a message length check before send#119
cosmoer wants to merge 1 commit intocontainerd:mainfrom
cosmoer:main

Conversation

@cosmoer
Copy link
Contributor

@cosmoer cosmoer commented May 26, 2022

In channel.go:recv() function, may be recv a invalid message header,
while the mh.Length value is an unusually large value, a large amount of data will be received and discarded.(But it may not actually send that much data.)
So,ttrpc server will discard all RPC requests, it wasn't what we were hoping for.

Signed-off-by: Qian Zhang cosmoer@qq.com

Signed-off-by: Qian Zhang <cosmoer@qq.com>
@klihub
Copy link
Member

klihub commented Sep 27, 2024

Closing, PR #171 merged with implementation for sender-side reject.

@klihub klihub closed this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants