From bd5d07fa4fb530b7209e27436b9c17a0a9d4e09a Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 12 Aug 2026 05:01:17 +1000 Subject: [PATCH] [client] render: reject empty cursor images --- client/src/render_queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/render_queue.c b/client/src/render_queue.c index 443da401..cb985235 100644 --- a/client/src/render_queue.c +++ b/client/src/render_queue.c @@ -164,7 +164,8 @@ static void setCommandSource(RenderCommand * cmd, RenderQueueSource source, static bool copyCursorImage(RenderCommand * cmd, const void * data) { - if (!data || cmd->cursorImage.height <= 0 || cmd->cursorImage.pitch <= 0) + if (!data || cmd->cursorImage.width <= 0 || + cmd->cursorImage.height <= 0 || cmd->cursorImage.pitch <= 0) return false; if ((size_t)cmd->cursorImage.height >