mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[obs] fix oob cursor writes
Allocate enough memory for the cursor data!
This commit is contained in:
parent
9db3cd7b51
commit
1a530da139
2
obs/lg.c
2
obs/lg.c
@ -259,7 +259,7 @@ static void * pointerThread(void * data)
|
|||||||
|
|
||||||
case CURSOR_TYPE_MONOCHROME:
|
case CURSOR_TYPE_MONOCHROME:
|
||||||
{
|
{
|
||||||
dataSize = cursor->height * sizeof(uint32_t);
|
dataSize = cursor->height * cursor->width * sizeof(uint32_t);
|
||||||
allocCursorData(this, dataSize);
|
allocCursorData(this, dataSize);
|
||||||
|
|
||||||
const int hheight = cursor->height / 2;
|
const int hheight = cursor->height / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user