diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 09:47:08 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-03-12 09:21:27 +0100 |
commit | dfb252c7b680b0d1f88aa0af0b54577fd29ac525 (patch) | |
tree | b70508c71e34b83dd5936f845388234e489729f4 /drivers/net/wireless/intel/iwlwifi/iwl-config.h | |
parent | ath11k: Use scnprintf() for avoiding potential buffer overflow (diff) | |
download | linux-dfb252c7b680b0d1f88aa0af0b54577fd29ac525.tar.xz linux-dfb252c7b680b0d1f88aa0af0b54577fd29ac525.zip |
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>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-config.h')
0 files changed, 0 insertions, 0 deletions