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 2855

Summary: [PATCH] Segfault CreateMIDIEventList
Product: SDL_mixer Reporter: Jean-Baptiste Noblot <jb.noblot>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: x86_64   
OS: All   
Attachments: A Patch to solve Segfault

Description Jean-Baptiste Noblot 2015-01-24 23:13:13 UTC
Created attachment 2003 [details]
A Patch to solve Segfault

A Segfault is possible because eventList line 383 (native_midi_common.c)
is affected with MIDItoStream and is possible to return NULL without set mididata->tracks. But 2 lines later we use 
mididata->tracks[trackID](SEGFAULT)
Comment 1 Sam Lantinga 2017-10-13 06:19:43 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_mixer/rev/4bb26a86096e