[obs] fix oob cursor writes

Allocate enough memory for the cursor data!
This commit is contained in:
arcnmx authored and Geoffrey McRae committed 2021-05-23 12:28:35 +10:00
1 parent 9db3cd7b51
commit 1a530da139
1 file changed
+1 -1
+1 -1
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;