linux-loongson/sound/pci/ac97
Takashi Iwai 9263595881 ALSA: ac97: Copy string more safely
snd_ac97_get_name() blindly assumes that the name buffer is large
enough, but we should be more careful.  Pass the max buffer length and
allow trimming to the size.

Only a cosmetic safety matter, no functional changes intended.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-101-tiwai@suse.de
2025-07-11 09:53:35 +02:00
..
ac97_codec.c ALSA: ac97: Copy string more safely 2025-07-11 09:53:35 +02:00
ac97_id.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ac97_local.h ALSA: ac97: Copy string more safely 2025-07-11 09:53:35 +02:00
ac97_patch.c ALSA: ac97: Use safer strscpy() instead of strcpy() 2025-07-11 09:53:16 +02:00
ac97_patch.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ac97_pcm.c ALSA: Fix some typo 2021-12-06 10:04:05 +01:00
ac97_proc.c ALSA: ac97: Copy string more safely 2025-07-11 09:53:35 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00