[PATCH 1/3] ASoC: Intel: avs: Fix potential buffer overflow by snprintf()
Cezary Rojewski
cezary.rojewski at intel.com
Tue Aug 2 12:22:32 CEST 2022
On 2022-08-01 6:54 PM, Takashi Iwai wrote:
> 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 at suse.de>
Acked-by: Cezary Rojewski <cezary.rojewski at intel.com>
More information about the Alsa-devel
mailing list