Fix out-of-bounds array access in Mouse Systems mouse emulation.
This commit is contained in:
parent
4c42cc1596
commit
170cf99ffb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue