summaryrefslogtreecommitdiff
path: root/test/v4l2_videodevice/stream_on_off.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-01-04 07:38:37 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-01-07 14:14:07 +0200
commita0c31b2ca39fdf06364553194ce725c4912265b3 (patch)
tree7acff7fb2ac43f89b98d7911c9a2167fcbf01d5b /test/v4l2_videodevice/stream_on_off.cpp
parentabce49655af00e2cfbdfba8cdf2a68d68345f2a1 (diff)
libcamera: ipc_unixsocket: Don't send uninitialized bytes over the socket
IPCUnixSocket::send() sends a IPCUnixSocket::Header allocated on the stack. All the fields of the header are initialized, but the padding bytes are not. This results in random data being sent over the UNIX socket, potentially leaking information. Fix this by initializing the whole header to 0. Fixes: 13dd7a01ecbe ("libcamera: ipc: unix: Add a IPC mechanism based on Unix sockets") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/v4l2_videodevice/stream_on_off.cpp')
0 files changed, 0 insertions, 0 deletions