diff options
| author | 2020-03-11 09:47:08 +0100 | |
|---|---|---|
| committer | 2020-03-12 10:21:27 +0200 | |
| commit | dfb252c7b680b0d1f88aa0af0b54577fd29ac525 (patch) | |
| tree | b70508c71e34b83dd5936f845388234e489729f4 /tools/perf/scripts/python | |
| parent | ath11k: Use scnprintf() for avoiding potential buffer overflow (diff) | |
| download | linux-dev-dfb252c7b680b0d1f88aa0af0b54577fd29ac525.tar.xz linux-dev-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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
