Crash when importing/previewing MIDI files with high division value

• Apr 17, 2015 - 11:34
Type
Functional
Severity
S2 - Critical
Status
closed
Project

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