commit | f35ba45c39c9ddc9e94e28fd0d3989e07964ba08 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 09:47:12 2020 +0100 |
committer | Kalle Valo <kvalo@codeaurora.org> | Thu Mar 12 15:43:40 2020 +0200 |
tree | 1122dca2f04a5627b88ee775e6d3f1cb579d7794 | |
parent | d3f8c708c0d7c8b2b2bc5d3ba5c7d8a5a0af5f2b [diff] |
ipw2x00: 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: Stanislav Yakovlev <stas.yakovlev@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>