[Lldb-commits] [lldb] r215976 - Buffer not null terminated CID 1094354
Sylvestre Ledru
sylvestre at debian.org
Tue Aug 19 05:13:14 PDT 2014
Author: sylvestre
Date: Tue Aug 19 07:13:14 2014
New Revision: 215976
URL: http://llvm.org/viewvc/llvm-project?rev=215976&view=rev
Log:
Buffer not null terminated CID 1094354
Modified:
lldb/trunk/source/API/SBModule.cpp
Modified: lldb/trunk/source/API/SBModule.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBModule.cpp?rev=215976&r1=215975&r2=215976&view=diff
==============================================================================
--- lldb/trunk/source/API/SBModule.cpp (original)
+++ lldb/trunk/source/API/SBModule.cpp Tue Aug 19 07:13:14 2014
@@ -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;
}
More information about the lldb-commits
mailing list