diff options
author | 2020-03-22 14:03:03 +0800 | |
---|---|---|
committer | 2020-03-22 10:06:57 -0600 | |
commit | 9876e38609a8ea98bbb447eb5a8f1c0400a6ccb8 (patch) | |
tree | c8cd41f891b631399a578b22e7fd1ce115441f82 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bcache: make bch_sectors_dirty_init() to be multithreaded (diff) | |
download | wireguard-linux-9876e38609a8ea98bbb447eb5a8f1c0400a6ccb8.tar.xz wireguard-linux-9876e38609a8ea98bbb447eb5a8f1c0400a6ccb8.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions