linux-stable/fs/ocfs2/dlm
Takashi Iwai d293d3af2d ocfs2: 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: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Link: http://lkml.kernel.org/r/20200311093516.25300-1-tiwai@suse.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-04-02 09:35:26 -07:00
..
dlmapi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145 2019-05-30 11:25:18 -07:00
dlmast.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmcommon.h ocfs2: dlm: replace zero-length array with flexible-array member 2020-04-02 09:35:25 -07:00
dlmconvert.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmconvert.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145 2019-05-30 11:25:18 -07:00
dlmdebug.c ocfs2: use scnprintf() for avoiding potential buffer overflow 2020-04-02 09:35:26 -07:00
dlmdebug.h ocfs2: further debugfs cleanups 2019-09-24 15:54:07 -07:00
dlmdomain.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmdomain.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145 2019-05-30 11:25:18 -07:00
dlmlock.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmmaster.c ocfs2: remove unused macros 2020-04-02 09:35:25 -07:00
dlmrecovery.c ocfs2/dlm: remove redundant assignment to ret 2020-01-31 10:30:36 -08:00
dlmthread.c ocfs2: remove dlm_lock_is_remote 2020-04-02 09:35:25 -07:00
dlmunlock.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
Makefile ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00