Crash when importing/previewing MIDI files with high division value
Steps to reproduce:
Go to File->Open and select the file attached to this forum entry
MuseScore 2.0 will crash on trying to read/preview this file.
Analysis:
The problem is a multiplication overflow. The file uses a midi division of 15360 which limits the number of measures, that can be handled by toMuseScoreTicks (in importmidi_fraction.cpp) to 73 measures. The file however has 75 measures.
Comments
I opened a PR to fix this.
Fixed in aef550015b
Automatically closed -- issue fixed for 2 weeks with no activity.