summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 11:47:08 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-03-12 11:21:27 +0300
commitdfb252c7b680b0d1f88aa0af0b54577fd29ac525 (patch)
treeb70508c71e34b83dd5936f845388234e489729f4 /tools/perf/scripts/python/export-to-postgresql.py
parentbc8f237823bca96a879d17a96a4c2b1a10c38b6d (diff)
downloadlinux-dfb252c7b680b0d1f88aa0af0b54577fd29ac525.tar.xz
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions