diff options
| author | 2025-11-19 14:52:17 +0100 | |
|---|---|---|
| committer | 2025-11-19 17:16:49 +0100 | |
| commit | ad5f82ab04bcad56de85723bdd48e44b70a16948 (patch) | |
| tree | be90e90c79fa5d3de700d36d0c887f0a616ad6a0 /samples/kobject/ssh:/git@git.zx2c4.com/git: | |
| parent | ALSA: hda/realtek: Add match for ASUS Xbox Ally projects (diff) | |
ALSA: pcmtest: Replace deprecated strcpy with strscpy_pad in setup_patt_bufs
strcpy() has been deprecated [1] because it performs no bounds checking
on the destination buffer, which can lead to buffer overflows. Replace
it with the safer strscpy_pad(), and use kmalloc() instead of kzalloc()
because strscpy_pad() zero-pads the destination buffer and therefore
avoids writing to it twice.
Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1]
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20251119135217.233084-1-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'samples/kobject/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
