mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
[fix] remove data length check in OnReceiveDataBufferCb
This commit is contained in:
@@ -277,13 +277,8 @@ void Render::OnReceiveDataBufferCb(const char *data, size_t size,
|
||||
return;
|
||||
}
|
||||
|
||||
if (size < sizeof(RemoteAction)) {
|
||||
LOG_ERROR("Received data too small for RemoteAction");
|
||||
return;
|
||||
}
|
||||
|
||||
RemoteAction remote_action;
|
||||
memcpy(&remote_action, data, sizeof(remote_action));
|
||||
memcpy(&remote_action, data, size);
|
||||
|
||||
std::string remote_id(user_id, user_id_size);
|
||||
if (render->client_properties_.find(remote_id) !=
|
||||
|
||||
2
thirdparty/projectx
vendored
2
thirdparty/projectx
vendored
Submodule thirdparty/projectx updated: 6d4feff315...a09fbd0be4
Reference in New Issue
Block a user