diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 10:30:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-12 09:49:28 +0100 |
commit | 0de005d0e4270f2dad5289d6dea8db041fba6199 (patch) | |
tree | 1c3e5129ea2f453291fedcea1b947a29be3d56dd /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 8e567ed9e244f6af2ecfd22a7204612ec361d334 (diff) |
USB: mon: 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>
Link: https://lore.kernel.org/r/20200311093003.24604-1-tiwai@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions