]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: ump: Copy FB name string more safely
authorTakashi Iwai <tiwai@suse.de>
Fri, 10 Jan 2025 15:59:37 +0000 (16:59 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 12 Jan 2025 12:12:20 +0000 (13:12 +0100)
commite3f035edadcc1c5901311c03d098bc3dedc5c525
tree1e8ff2d3a3c0a82f96410bf8db5e2ef856d91638
parent7bb49d2e8b52adace88249d9dece41e36af3bba0
ALSA: ump: Copy FB name string more safely

The UMP group names are referred as the corresponding sequencer port
names, hence they should be proper ASCII strings.  OTOH, the UMP group
names are composed from the UMP FB strings that are received from the
device; i.e. a device may give some bogus letters and we can't trust
them fully.

To assure that the group names consist of the proper ASCII strings,
replace the normal string copy and append operations with special ones
that strip the non-printable letters.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250110155943.31578-5-tiwai@suse.de
sound/core/ump.c