diff options
author | 2024-07-05 09:58:28 +0200 | |
---|---|---|
committer | 2024-07-05 10:02:07 +0200 | |
commit | a892b700e63bcb3679ebed1a0c3160e7b9225138 (patch) | |
tree | 743af937f2e4c036e23a39958050834865dd1a24 /scripts/generate_rust_analyzer.py | |
parent | ALSA: pcm: Fix missing export of snd_pcm_set_sync_per-card() (diff) | |
download | linux-rng-a892b700e63bcb3679ebed1a0c3160e7b9225138.tar.xz linux-rng-a892b700e63bcb3679ebed1a0c3160e7b9225138.zip |
ALSA: pcm: Fix id copying in snd_pcm_set_sync_per_card()
Avoid to use strncpy and do proper length limiting (12 bytes)
to avoid out of array access.
Fixes: d712c58c55d9 ("ALSA: pcm: optimize and clarify stream synchronization ID API")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407050501.o5Z3bibi-lkp@intel.com/
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://patch.msgid.link/20240705075828.19746-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions