From: David Goulet Date: Tue, 14 May 2013 15:42:06 +0000 (-0400) Subject: Fix: out of bounds access to buffer uuid X-Git-Tag: v2.2.0-rc3~79 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b6d38284ea601ee47321426d6b1ec97dd5603900;p=lttng-tools.git Fix: out of bounds access to buffer uuid In ask_channel_creation: Out-of-bounds access to a buffer (CWE-119) Issue 1019926 of coverity scan. Signed-off-by: David Goulet --- diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index ebb896b58..c0b89a123 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -338,7 +338,7 @@ struct lttcomm_consumer_msg { uint32_t gid; /* Group ID ot the session */ uint64_t relayd_id; /* Relayd id if apply. */ uint64_t key; /* Unique channel key. */ - unsigned char uuid[UUID_STR_LEN]; /* uuid for ust tracer. */ + unsigned char uuid[UUID_LEN]; /* uuid for ust tracer. */ uint32_t chan_id; /* Channel ID on the tracer side. */ uint64_t tracefile_size; /* bytes */ uint32_t tracefile_count; /* number of tracefiles */