diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 12:17:39 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-03-12 16:44:12 +0300 |
commit | ca44e47a2b8611178d38d4ed9532f793cf4244a8 (patch) | |
tree | 0dd00994e407afa11c35bd4c7eb12e1255970c21 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 1da740e08a2d48012803a381108e0e8062cbd683 (diff) | |
download | linux-ca44e47a2b8611178d38d4ed9532f793cf4244a8.tar.xz |
ssb: 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().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions