From 802a3530658ff49274e2ad5087bbb71bed694fe5 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 19 Aug 2014 12:13:14 +0000 Subject: Buffer not null terminated CID 1094354 llvm-svn: 215976 --- lldb/source/API/SBModule.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/API/SBModule.cpp') diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp index b1e39ff9e759..0d7dda1aa1f7 100644 --- a/lldb/source/API/SBModule.cpp +++ b/lldb/source/API/SBModule.cpp @@ -221,6 +221,7 @@ SBModule::GetUUIDString () const if (!uuid_string.empty()) { strncpy (uuid_string_buffer, uuid_string.c_str(), sizeof (uuid_string_buffer)); + uuid_string_buffer[sizeof (uuid_string_buffer) - 1] = '\0'; uuid_c_string = uuid_string_buffer; } -- cgit v1.2.3