summaryrefslogtreecommitdiff
path: root/mm/zpool.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 12:33:53 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2020-03-19 21:37:56 +0300
commitc6d5789bea5187c2716959f8954a1e00b8a7835d (patch)
tree68e2690031ed012ca0d1b3671fecd34af8b4d31b /mm/zpool.c
parent2536ac6872e5265b4d9d263122cee02e3d5cae1d (diff)
downloadlinux-c6d5789bea5187c2716959f8954a1e00b8a7835d.tar.xz
f2fs: 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> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'mm/zpool.c')
0 files changed, 0 insertions, 0 deletions