summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-22 09:03:03 +0300
committerJens Axboe <axboe@kernel.dk>2020-03-22 19:06:57 +0300
commit9876e38609a8ea98bbb447eb5a8f1c0400a6ccb8 (patch)
treec8cd41f891b631399a578b22e7fd1ce115441f82 /tools/perf/scripts/python/exported-sql-viewer.py
parentb144e45fc57649e15cbc79ff2d32a942af1d91d5 (diff)
downloadlinux-9876e38609a8ea98bbb447eb5a8f1c0400a6ccb8.tar.xz
bcache: 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: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions