Searched hist:ca3b7b9dc9bc1fa552f4697b7cccfa0258a44d00 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/soc/intel/avs/ |
H A D | pcm.c | diff ca3b7b9dc9bc1fa552f4697b7cccfa0258a44d00 Mon Aug 01 11:54:18 CDT 2022 Takashi Iwai <tiwai@suse.de> ASoC: Intel: avs: 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 a buffer overflow (although it's unrealistic).
This patch replaces it with a safer version, scnprintf() for papering over such a potential issue.
Fixes: f1b3b320bd65 ("ASoC: Intel: avs: Generic soc component driver") Signed-off-by: Takashi Iwai <tiwai@suse.de> Acked-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20220801165420.25978-2-tiwai@suse.de Signed-off-by: Mark Brown <broonie@kernel.org>
|