Buffer not null terminated CID 1094354

llvm-svn: 215976
This commit is contained in:
Sylvestre Ledru
2014-08-19 12:13:14 +00:00
parent 3aaab669c8
commit 802a353065

View File

@@ -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;
}