We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4005

Summary: Android, SDL_IsGameController() crashes is index is out of range
Product: SDL Reporter: Sylvain <sylvain.becker>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: don't know   
Hardware: All   
OS: Android (All)   

Description Sylvain 2017-12-18 21:15:38 UTC
On Android, if you give an invalid index to SDL_IsGameController(), it will crash in SDL_SYS_IsDPAD_DeviceIndex().
Comment 1 Sam Lantinga 2017-12-19 18:48:49 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/c2f3e4187c9d