Web MIDI: MIDI input messages may be lost or cause a crash on OS X
MIDIPacketList can contain multiple MIDIPacket, but MIDIPacket objects have different sizes depending on packet contents. So we should not refer to MIDIPackets via array index, but should use MIDIPacketNext that Core MIDI API provides to obtain the next object. As a result, previous code may refer invalid memory region if large MIDI messages are received at the same time. BUG=456780, 374560 Review URL: https://codereview.chromium.org/965793002 Cr-Commit-Position: refs/heads/master@{#318653}
Showing
Please register or sign in to comment