|author||Sam Lantinga <firstname.lastname@example.org>||Fri May 29 21:22:11 2020 -0700|
|committer||Sam Lantinga <email@example.com>||Fri May 29 21:22:11 2020 -0700|
Fixed bug 5155 - HIDAPI_JoystickDisconnected incorrect array shift Anthony Pesch I was looking into my own input bug and noticed an issue in the HIDAPI code while looking over it. I don't have a controller that goes down this path to test and try to provoke the issue, but it looks pretty straight forward. The memmove to shift the joystick id array on disconnect isn't scaling the size by sizeof(SDL_JoystickID), likely corrupting the ids on disconnect.