[obs] fix oob cursor writes

Allocate enough memory for the cursor data!
This commit is contained in:
arcnmx 2021-05-22 16:28:40 -07:00 committed by Geoffrey McRae
parent 9db3cd7b51
commit 1a530da139

View File

@ -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;