ttrpc icon indicating copy to clipboard operation
ttrpc copied to clipboard

ttrpc: add a message length check before send

Open cosmoer opened this issue 2 years ago • 0 comments

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 [email protected]

cosmoer avatar May 26 '22 15:05 cosmoer