commit | 215a423cc0799b054bdabbc5ba68a7178924621d | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 08:17:28 2020 +0100 |
committer | Borislav Petkov <bp@suse.de> | Tue Mar 17 19:26:09 2020 +0100 |
tree | 63e0a31af0f2d2651fe745b2b51c83a54931fdc6 | |
parent | 52cff04a81e9571735976e4d70984e89a7ee3885 [diff] |
EDAC/armada_xp: Use scnprintf() for avoiding potential buffer overflow Since snprintf() returns the would-be-output size instead of the actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Jan Luebbe <jlu@pengutronix.de> Link: https://lkml.kernel.org/r/20200311071728.4541-1-tiwai@suse.de