diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-15 12:34:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-16 03:06:22 +0300 |
commit | 13bde56c5b7cc6489eb50c40449d461c7ca4da2d (patch) | |
tree | 9e575a199d5330aa7c1240b5b6253d59f642db37 /tools/perf/scripts/python/check-perf-trace.py | |
parent | cb851c01b51bb610a9093d01624565ce1d4e38fa (diff) | |
download | linux-13bde56c5b7cc6489eb50c40449d461c7ca4da2d.tar.xz |
net: caif: 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: "David S . Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions