aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBModule.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-08-19 12:13:14 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-08-19 12:13:14 +0000
commit802a3530658ff49274e2ad5087bbb71bed694fe5 (patch)
tree22fc299049726b1dae885513f3f371ab647d5714 /lldb/source/API/SBModule.cpp
parent3aaab669c82c246f6cf452a3667d619419343339 (diff)
downloadllvm-802a3530658ff49274e2ad5087bbb71bed694fe5.zip
llvm-802a3530658ff49274e2ad5087bbb71bed694fe5.tar.gz
llvm-802a3530658ff49274e2ad5087bbb71bed694fe5.tar.bz2
Buffer not null terminated CID 1094354
llvm-svn: 215976
Diffstat (limited to 'lldb/source/API/SBModule.cpp')
-rw-r--r--lldb/source/API/SBModule.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index b1e39ff..0d7dda1 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;
}