mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-24 06:41:46 +00:00
[client] fixed incorrect cursor dataPos validation
This commit is contained in:
parent
9b7f54fa35
commit
e854723aa3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue