summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-08-01 18:54:19 +0200
committerMark Brown <broonie@kernel.org>2022-08-05 12:57:23 +0100
commit1eb123ce985e6cf302ac6e3f19862d132d86fa8f (patch)
tree446ce426f6bc282c83dffe5f48e0b7593f86ad1b /Kbuild
parentca3b7b9dc9bc1fa552f4697b7cccfa0258a44d00 (diff)
downloadlinux-stable-1eb123ce985e6cf302ac6e3f19862d132d86fa8f.tar.gz
linux-stable-1eb123ce985e6cf302ac6e3f19862d132d86fa8f.tar.bz2
linux-stable-1eb123ce985e6cf302ac6e3f19862d132d86fa8f.zip
ASoC: SOF: debug: Fix potential buffer overflow by snprintf()
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: 5b10b6298921 ("ASoC: SOF: Add `memory_info` file to debugfs") Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20220801165420.25978-3-tiwai@suse.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions