commit | 802a3530658ff49274e2ad5087bbb71bed694fe5 | [log] [tgz] |
---|---|---|
author | Sylvestre Ledru <sylvestre@debian.org> | Tue Aug 19 12:13:14 2014 +0000 |
committer | Sylvestre Ledru <sylvestre@debian.org> | Tue Aug 19 12:13:14 2014 +0000 |
tree | 22fc299049726b1dae885513f3f371ab647d5714 | |
parent | 3aaab669c82c246f6cf452a3667d619419343339 [diff] [blame] |
Buffer not null terminated CID 1094354 llvm-svn: 215976
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 @@ 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; }