commit | 9876e38609a8ea98bbb447eb5a8f1c0400a6ccb8 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Sun Mar 22 14:03:03 2020 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Mar 22 10:06:57 2020 -0600 |
tree | c8cd41f891b631399a578b22e7fd1ce115441f82 | |
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 <tiwai@suse.de> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>