* commit 'ccecfd7192f0f46ccaa4c4f1ee5b2b14c372b472': NULL terminate device unique ID before use
This commit is contained in:
@@ -155,6 +155,9 @@ bool CryptoSession::GetDeviceUniqueId(std::string* device_id) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
id.resize(id_length + 1);
|
||||||
|
id[id_length] = '\0';
|
||||||
|
|
||||||
*device_id = reinterpret_cast<const char*>(&id[0]);
|
*device_id = reinterpret_cast<const char*>(&id[0]);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user