libDaisy icon indicating copy to clipboard operation
libDaisy copied to clipboard

MIDI - Specific SysEx can crash MidiHandler

Open stephenhensley opened this issue 2 years ago • 1 comments

Seems like it's possible to trip up the MidiHandler with certain SysEx data

Reported on slack:

So I've just found that the following midi message will freeze the libdaisy midi handler but no idea why. SysEx Universal Real Time 3 bytes F0 7F 7F F7 kills the midi input and yet SysEx Universal Real Time 6 bytes F0 7F 7F 06 01 F7 is fine. The first message is coming out of a RK006 midi filter box, its probably not meant to be but I wanted to make sure my module was bullet proof enough to not be tripped up by it.

stephenhensley avatar Mar 21 '22 19:03 stephenhensley

Would the first Sysex look to the parser as having no content? So be parsed as Start - End - End - End but the parser expect an actual value? The second message has 06 and 01 as values that could potentially be valid.

makingsoundmachines avatar Apr 02 '22 18:04 makingsoundmachines