brave-browser#60900 gRPC stream parser never emits a trailing zero-length message
State: open · created · updated · discovered via search:lightwalletd, search:zcash · matched body:zcash
bug feature/web3/wallet
components/brave_wallet/browser/zcash/zcash_grpc_utils.cc:34 OnDataReceived only parses a 5-byte frame header when data_view.size() > kGrpcHeaderSize. A frame with a zero-length body is exactly 5 bytes, so when it's the last thing in the buffer it's never passed to ProcessMessage; it's only processed if more bytes arrive after it. >= is the correct bound, since a zero-length protobuf is a valid all-defaults message. When it happens: Only via lightwalletd responses on the…