waddlesplash / QMidi

Qt library for MIDI output & MIDI file I/O.
MIT License
84 stars 38 forks source link

Wrong track format check #5

Closed iv41879 closed 8 years ago

iv41879 commented 8 years ago

If midi file has wrong track format than function QMidiFile::load stucks in indefinite loop where condition is always true... while (number_of_tracks_read < number_of_tracks)

Please see attached example midi file

+Careless.zip

waddlesplash commented 8 years ago

I'm not closing this so I can look into the unsupported track format further.

waddlesplash commented 8 years ago

Yeah, it appears that file is just plain corrupt, two other players I tried give errors when attempting to load it.