You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 2.1 Reported for operating system, platform: Linux, All
Comments on the original bug report:
On 2014-05-27 05:55:33 +0000, Zachary L wrote:
Created attachment 1662
Patch containing mentioned fix.
SDL_hapticlist and SDL_hapticlist_tail are not set correctly when quitting the subsystem. This matters because they are represented as global variables. In the case you quit and reinitialize the subsystems, problems with dangling pointers arise.
For instance, SDL_hapticlist_tail will not be null on second initialization and because of the check on line 298, it will fail to set SDL_hapticlist appropriately. This can cause a few things to go wrong, like feeding SDL_strcmp a null fname which can cause a segfault.
This patch is simple. It just sets SDL_hapticlist and SDL_hapticlist_tail to NULL.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.1
Reported for operating system, platform: Linux, All
Comments on the original bug report:
On 2014-05-27 05:55:33 +0000, Zachary L wrote:
On 2014-06-22 03:41:18 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: