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 4910 - [PATCH] Missing joystick-driver type check in haptic
Summary: [PATCH] Missing joystick-driver type check in haptic
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: haptic (show other bugs)
Version: 2.0.10
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-21 14:02 UTC by Mathieu Eyraud
Modified: 2019-12-22 21:57 UTC (History)
0 users

See Also:


Attachments
Add driver type check (2.21 KB, patch)
2019-12-21 14:02 UTC, Mathieu Eyraud
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Eyraud 2019-12-21 14:02:40 UTC
Created attachment 4130 [details]
Add driver type check

On Linux and MacOS, some haptic system functions access joystick->hw_data without checking the driver type.
Comment 1 Sam Lantinga 2019-12-22 21:57:10 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/ff5c48e07c40