Fix: relayd: send_viewer_streams sends stack data in padding
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Jul 2020 16:39:20 +0000 (12:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 17 Jul 2020 18:34:03 +0000 (14:34 -0400)
commit198083871a1e3b68d62a445a7ad3f008c92103c6
tree460fca5f0adefbf119773501a61cae2c3ca15f40
parent27e2fa5df07c5bed5a077bdf475c93e9a4d4459d
Fix: relayd: send_viewer_streams sends stack data in padding

A single stack-allocated instance of `struct lttng_viewer_stream` is
used to send the various streams to the live viewer. This structure
contains a path and channel name which remain uninitialized beyond the
null terminator.

The structure is zeroed on every iteration.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I1c60ee18e01e8f56157f0fe44bd3bd64b1194703
src/bin/lttng-relayd/live.c
This page took 0.025637 seconds and 4 git commands to generate.