From 170cf99ffb426d707bd9ea2a8df216239f4d5e69 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sat, 11 Nov 2017 20:16:40 +0000 Subject: [PATCH] Fix out-of-bounds array access in Mouse Systems mouse emulation. --- src/mouse_msystems.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mouse_msystems.c b/src/mouse_msystems.c index baa0aea..9424191 100644 --- a/src/mouse_msystems.c +++ b/src/mouse_msystems.c @@ -16,7 +16,7 @@ static void mouse_msystems_poll(int x, int y, int z, int b, void *p) { mouse_msystems_t *mouse = (mouse_msystems_t *)p; SERIAL *serial = mouse->serial; - uint8_t mousedat[4]; + uint8_t mousedat[5]; if (!x && !y && b == mouse->oldb) return;