WSL2-Linux-Kernel/sound
Takashi Iwai 6ee1310f4d ASoC: SOF: Intel: hda: Fix potential buffer overflow by snprintf()
[ Upstream commit 94c1ceb043 ]

snprintf() returns the would-be-filled size when the string overflows
the given buffer size, hence using this value may result in the buffer
overflow (although it's unrealistic).

This patch replaces with a safer version, scnprintf() for papering
over such a potential issue.

Fixes: 29c8e4398f ("ASoC: SOF: Intel: hda: add extended rom status dump to error log")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20220801165420.25978-4-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:40:28 +02:00
..
ac97
aoa
arm
atmel
core ALSA: info: Fix llseek return value when using callback 2022-08-25 11:39:53 +02:00
drivers
firewire
hda
i2c
isa
mips
oss
parisc
pci ALSA: hda/realtek: Add quirk for Clevo NS50PU, NS70PU 2022-08-25 11:39:53 +02:00
pcmcia
ppc
sh
soc ASoC: SOF: Intel: hda: Fix potential buffer overflow by snprintf() 2022-08-25 11:40:28 +02:00
sparc
spi
synth
usb ALSA: usb-audio: More comprehensive mixer map for ASUS ROG Zenith II 2022-08-25 11:39:58 +02:00
virtio
x86
xen
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c