Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ttrpc: add a message length check before send #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cosmoer
Copy link

@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>
channel.go Show resolved Hide resolved
@dmcgowan dmcgowan added this to Needs Discussion in Code Review May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Code Review
Needs Discussion
Status: Needs Triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants