gvisor/pkg/sentry/socket/unix
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
..
transport Prevent arbitrary size allocation when sending UDS messages. 2020-01-28 18:46:14 -08:00
BUILD Update package locations. 2020-01-27 15:31:32 -08:00
device.go Update canonical repository. 2019-06-13 16:50:15 -07:00
io.go Update package locations. 2020-01-27 15:31:32 -08:00
unix.go Update package locations. 2020-01-27 15:31:32 -08:00