mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-30 18:46:26 +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:
|
||||
{
|
||||
dataSize = cursor->height * sizeof(uint32_t);
|
||||
dataSize = cursor->height * cursor->width * sizeof(uint32_t);
|
||||
allocCursorData(this, dataSize);
|
||||
|
||||
const int hheight = cursor->height / 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user