g0orx / linhpsdr

Linux HPSDR
GNU General Public License v3.0
74 stars 44 forks source link

Memory protection violation fixed if number of found midi devices is greater than declared in MAX_MIDI_DEVICES. #97

Open sq8mvy opened 3 years ago

sq8mvy commented 3 years ago

Memory protection violation fixed if number of found midi devices is greater than declared in MAX_MIDI_DEVICES. In the case of more subdevices midi (e.g. virmidi - virtual midi has 16 subdevices) on the list there were empty items in the absence of the subdevice name

andreasdotorg commented 2 years ago

Merged to andreasdotorg/linhpsdr. This would be better with an error message on overflow, or even dynamic memory allocation.