commit | dfb252c7b680b0d1f88aa0af0b54577fd29ac525 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 09:47:08 2020 +0100 |
committer | Kalle Valo <kvalo@codeaurora.org> | Thu Mar 12 10:21:27 2020 +0200 |
tree | b70508c71e34b83dd5936f845388234e489729f4 | |
parent | bc8f237823bca96a879d17a96a4c2b1a10c38b6d [diff] |
ath5k: 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: Jiri Slaby <jirislaby@gmail.com> Cc: Nick Kossifidis <mickflemm@gmail.com> Cc: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>