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

Summary: [PATCH] Missing joystick-driver type check in haptic
Product: SDL Reporter: Mathieu Eyraud <meyraud705>
Component: hapticAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.10   
Hardware: x86_64   
OS: Linux   
Attachments: Add driver type check

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