correctly check length of MIDI_SYSEX_TUNING_NOTE_TUNE_BANK

fixes #127
This commit is contained in:
derselbst 2017-07-01 18:24:02 +02:00
parent 8af2eb4d7c
commit cf1975e35f
1 changed files with 1 additions and 1 deletions

View File

@ -1396,7 +1396,7 @@ fluid_synth_sysex_midi_tuning (fluid_synth_t *synth, const char *data, int len,
else else
{ {
if (len < 11 || data[4] & 0x80 || data[5] & 0x80 || data[6] & 0x80 if (len < 11 || data[4] & 0x80 || data[5] & 0x80 || data[6] & 0x80
|| len != data[5] * 4 + 7) || len != data[6] * 4 + 7)
return FLUID_OK; return FLUID_OK;
bank = *dataptr++; bank = *dataptr++;