mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:21:57 +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;
|
||||
|
||||
// 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)
|
||||
{
|
||||
DEBUG_ERROR("The guest sent an invalid mouse dataPos");
|
||||
|
|
Loading…
Reference in a new issue