summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-cache-target.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-22 07:03:03 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-22 17:06:57 +0100
commit9876e38609a8ea98bbb447eb5a8f1c0400a6ccb8 (patch)
treec8cd41f891b631399a578b22e7fd1ce115441f82 /drivers/md/dm-cache-target.c
parentbcache: make bch_sectors_dirty_init() to be multithreaded (diff)
downloadlinux-9876e38609a8ea98bbb447eb5a8f1c0400a6ccb8.tar.xz
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 'drivers/md/dm-cache-target.c')
0 files changed, 0 insertions, 0 deletions