From b6d38284ea601ee47321426d6b1ec97dd5603900 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 14 May 2013 11:42:06 -0400 Subject: [PATCH] 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 --- src/common/sessiond-comm/sessiond-comm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.34.1