OSDN Git Service

ALSA: line6: fix stack overflow in line6_midi_transmit
authorArtem Egorkine <arteme@gmail.com>
Sun, 25 Dec 2022 10:57:28 +0000 (12:57 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 26 Dec 2022 08:07:49 +0000 (09:07 +0100)
commitb8800d324abb50160560c636bfafe2c81001b66c
treeabdae8fe3de8e7c366d556a627f8f036c9b801e8
parent8508fa2e7472f673edbeedf1b1d2b7a6bb898ecc
ALSA: line6: fix stack overflow in line6_midi_transmit

Correctly calculate available space including the size of the chunk
buffer. This fixes a buffer overflow when multiple MIDI sysex
messages are sent to a PODxt device.

Signed-off-by: Artem Egorkine <arteme@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20221225105728.1153989-2-arteme@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/midi.c