aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hsi/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorAlexander A. Klimov <grandmaster@al2klimov.de>2026-05-13 21:08:52 +0200
committerMark Brown <broonie@kernel.org>2026-05-15 11:14:55 +0900
commit0d435a7ebcd4e97e47673c1ab6fb27f973a053ec (patch)
tree647fef66c9f2811d56dea00e9422e7558da24aa3 /include/linux/hsi/ssh:/git@git.zx2c4.com
parentASoC: cs35l56: Log SoundWire status updates only on changes (diff)
ASoC: codecs: fs210x: fix possible buffer overflow
In fs210x_effect_scene_info(), a string was copied like this: strscpy(DST, SRC, strlen(SRC) + 1); A buffer overflow would happen if strlen(SRC) >= sizeof(DST). Actually, strscpy() must be used this way: strscpy(DST, SRC, sizeof(DST)); strscpy(DST, SRC); // defaults to sizeof(DST) Fixes: 756117701779 ("ASoC: codecs: Add FourSemi FS2104/5S audio amplifier driver") Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de> Link: https://patch.msgid.link/20260513190852.196723-2-grandmaster@al2klimov.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/hsi/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions