From: Jérémie Galarneau Date: Thu, 22 Apr 2021 23:54:47 +0000 (-0400) Subject: Fix: consumerd: strlen called on uninitialized path X-Git-Tag: v2.13.0-rc1~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d00fb4907762551c3e4b91d60747704f17b41fe2;p=lttng-tools.git Fix: consumerd: strlen called on uninitialized path closed_trace_chunk_path is uninitialized when relayd_id != 0. Signed-off-by: Jérémie Galarneau Change-Id: Ica3763e5e73a9f2796b96c8030c551e730fe63d8 --- diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index c4ee7446d..bdfb8a0bb 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -2190,7 +2190,7 @@ end_rotate_channel_nosignal: const uint64_t relayd_id = msg.u.close_trace_chunk.relayd_id.value; struct lttcomm_consumer_close_trace_chunk_reply reply; - char closed_trace_chunk_path[LTTNG_PATH_MAX]; + char closed_trace_chunk_path[LTTNG_PATH_MAX] = {}; int ret; ret_code = lttng_consumer_close_trace_chunk(