mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] fixed incorrect cursor dataPos validation
This commit is contained in:
parent
9b7f54fa35
commit
e854723aa3
@ -234,7 +234,7 @@ int cursorThread(void * unused)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
// check the data position is sane
|
// check the data position is sane
|
||||||
const uint64_t dataSize = header.detail.frame.height * header.detail.frame.pitch;
|
const uint64_t dataSize = header.detail.cursor.height * header.detail.cursor.pitch;
|
||||||
if (header.detail.cursor.dataPos + dataSize > state.shmSize)
|
if (header.detail.cursor.dataPos + dataSize > state.shmSize)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("The guest sent an invalid mouse dataPos");
|
DEBUG_ERROR("The guest sent an invalid mouse dataPos");
|
||||||
|
Loading…
Reference in New Issue
Block a user