linux-kernelorg-stable/sound/core
Takashi Iwai bee60f0196 ALSA: core: Copy string more safely
Replace the remaining strcpy() and sprintf() usages in the ALSA core
code with the safer versions.

The first strcpy() points actually to card->id, hence just use
strscpy() with card->id instead.

The append of suffix string is slightly rewritten so that we can use
scnprintf() and strscpy().

Only for safety, no actual behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250710100727.22653-104-tiwai@suse.de
2025-07-11 09:53:36 +02:00
..
oss ALSA: mixer_oss: Remove deprecated strcpy() function calls 2025-06-23 17:10:32 +02:00
seq ALSA: seq: Use safer strscpy() instead of strcpy() 2025-07-11 09:51:08 +02:00
.kunitconfig
Kconfig
Makefile
compress_offload.c ALSA: compress_offload: tighten ioctl command number checks 2025-07-10 10:10:08 +02:00
control.c ALSA: control: Use safer strscpy() instead of strcpy() 2025-07-11 09:51:08 +02:00
control_compat.c
control_led.c
ctljack.c
device.c
hrtimer.c ALSA: hrtimer: Replace deprecated strcpy() with strscpy() 2025-06-30 14:08:07 +02:00
hwdep.c
hwdep_compat.c
info.c
info_oss.c
init.c ALSA: core: Copy string more safely 2025-07-11 09:53:36 +02:00
isadma.c
jack.c USB/Thunderbolt changes for 6.16-rc1 2025-06-06 12:45:35 -07:00
memalloc.c
memory.c
misc.c
pcm.c
pcm_compat.c ALSA: pcm: Replace [audio_]tstamp_[n]sec by struct __snd_timespec in struct snd_pcm_mmap_status32 2025-06-16 08:25:27 +02:00
pcm_dmaengine.c
pcm_drm_eld.c
pcm_iec958.c
pcm_lib.c
pcm_local.h
pcm_memory.c
pcm_misc.c
pcm_native.c ALSA: pcm: Convert snd_pcm_sync_ptr() to user_access_begin/user_access_end() 2025-06-16 08:25:32 +02:00
pcm_param_trace.h
pcm_timer.c
pcm_trace.h
rawmidi.c ALSA: rawmidi: Use safer strscpy() instead of strcpy() 2025-07-11 09:51:08 +02:00
rawmidi_compat.c
seq_device.c
sound.c
sound_kunit.c
sound_oss.c
timer.c ALSA: timer: Replace deprecated strcpy() with strscpy() 2025-06-30 14:07:42 +02:00
timer_compat.c
ump.c
ump_convert.c
vmaster.c