mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[obs] fix oob cursor writes
Allocate enough memory for the cursor data!
This commit is contained in:
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;
|
||||||
|
Reference in New Issue
Block a user