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 - Android, SDL_IsGameController() crashes is index is out of range
Summary: Android, SDL_IsGameController() crashes is index is out of range
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: don't know
Hardware: All Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-18 21:15 UTC by Sylvain
Modified: 2017-12-19 18:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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