summaryrefslogtreecommitdiffhomepage
path: root/pkg/compressio
diff options
context:
space:
mode:
authorBrian Geffon <bgeffon@google.com>2018-06-08 10:32:30 -0700
committerShentubot <shentubot@google.com>2018-06-08 10:33:25 -0700
commit2f3895d6f7ad37915edcdd80706f880ce50c519c (patch)
tree31a4be0b3fe7631e6f386b633d6e187adcba7fb9 /pkg/compressio
parent5c51bc51e43a0f1d1f06ae490b0d352d1b483766 (diff)
rpcinet is not correctly handling MSG_TRUNC on recvmsg(2).
MSG_TRUNC can cause recvmsg(2) to return a value larger than the buffer size. In this situation it's an indication that the buffer was completely filled and that the msg was truncated. Previously in rpcinet we were returning the buffer size but we should actually be returning the payload length as returned by the syscall. PiperOrigin-RevId: 199814221 Change-Id: If09aa364219c1bf193603896fcc0dc5c55e85d21
Diffstat (limited to 'pkg/compressio')
0 files changed, 0 insertions, 0 deletions