From 1a530da1392ea4bd032d10beaea603314dd80ef9 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Sat, 22 May 2021 16:28:40 -0700 Subject: [PATCH] [obs] fix oob cursor writes Allocate enough memory for the cursor data! --- obs/lg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obs/lg.c b/obs/lg.c index f2a1a61f..f2b3b9ca 100644 --- a/obs/lg.c +++ b/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;