diff options
| author | Takashi Iwai <[email protected]> | 2020-03-22 14:03:03 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-03-22 10:06:57 -0600 |
| commit | 9876e38609a8ea98bbb447eb5a8f1c0400a6ccb8 (patch) | |
| tree | c8cd41f891b631399a578b22e7fd1ce115441f82 /tools/perf/scripts/python | |
| parent | b144e45fc57649e15cbc79ff2d32a942af1d91d5 (diff) | |
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 <[email protected]>
Signed-off-by: Coly Li <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions