commit | 1da740e08a2d48012803a381108e0e8062cbd683 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 09:47:13 2020 +0100 |
committer | Kalle Valo <kvalo@codeaurora.org> | Thu Mar 12 15:43:41 2020 +0200 |
tree | 6094b7c7aa53eac28e96b1cdbf1bdfc4a0284ea6 | |
parent | f35ba45c39c9ddc9e94e28fd0d3989e07964ba08 [diff] |
prism54: 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(). Cc: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>