gvisor/pkg/sentry/socket/unix/transport
Dean Deng 4cb55a7a3b Prevent arbitrary size allocation when sending UDS messages.
Currently, Send() will copy data into a new byte slice without regard to the
original size. Size checks should be performed before the allocation takes
place.

Note that for the sake of performance, we avoid putting the buffer
allocation into the critical section. As a result, the size checks need to be
performed again within Enqueue() in case the limit has changed.

PiperOrigin-RevId: 292058147
2020-01-28 18:46:14 -08:00
..
BUILD Update package locations. 2020-01-27 15:31:32 -08:00
connectioned.go Update package locations. 2020-01-27 15:31:32 -08:00
connectioned_state.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
connectionless.go Update package locations. 2020-01-27 15:31:32 -08:00
queue.go Prevent arbitrary size allocation when sending UDS messages. 2020-01-28 18:46:14 -08:00
unix.go Prevent arbitrary size allocation when sending UDS messages. 2020-01-28 18:46:14 -08:00