Buffer not null terminated CID 1094354
llvm-svn: 215976
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user