should we need to pre-validate the sendmsg size and validate it using fixed value math.MaxUint32 #7897
Labels
Area: RPC Features
Includes Compression, Encoding, Attributes/Metadata, Interceptors.
stale
Status: Requires Reporter Clarification
Type: Bug
NOTE: if you are reporting is a potential security vulnerability or a crash,
please follow our CVE process at
https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md instead of
filing an issue here.
Please see the FAQ in our main README.md, then answer the questions below
before submitting your issue.
What version of gRPC are you using?
grpc v1.59.0
What version of Go are you using (
go version
)?go1.22.0
What operating system (Linux, Windows, …) and version?
linux amd64
What did you do?
If possible, provide a recipe for reproducing the error.
I used
grpc.MaxSendMsgSize(math.MaxUint64)
to create grpcServer. Butgrpc-go/rpc_util.go
Line 695 in 5565631
this method validates the send msg size with fixed MaxUint32. This is less than math.MaxUint64. So may be we need to remove this code chunk and validate the send msg size after compressing and involving header data in
grpc-go/server.go
Line 1140 in 5565631
What did you expect to see?
math.MaxUint64 value will work
What did you see instead?
get error
grpc: message too large
The text was updated successfully, but these errors were encountered: