Buffer not null terminated CID 1094354
llvm-svn: 215976
This commit is contained in:
1 parent
3aaab669c8
commit
802a353065
1 file changed
+1
@@ -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