Re: [f2fs-dev] [PATCH] fsck.f2fs: do not print content beyond sb->version

2018-06-07 Thread Junling Zheng
On 2018/6/7 18:53, Chao Yu wrote: > On 2018/6/6 22:39, Junling Zheng wrote: >> Currently, versions in f2fs_configuration have one more byte than >> those in sb, so versions in sb may not end with '\0', and then >> print_raw_sb_info() will print something beyond sb->version. >> >> Signed-off-by:

[f2fs-dev] [PATCH v2] fsck.f2fs: do not print content beyond sb->version

2018-06-07 Thread Junling Zheng
Currently, versions in f2fs_configuration have one more byte than those in sb, so versions in sb may not end with '\0', and then print_raw_sb_info() will print something beyond sb->version. Signed-off-by: Junling Zheng --- fsck/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [f2fs-dev] [PATCH] fsck.f2fs: do not print content beyond sb->version

2018-06-07 Thread Chao Yu
On 2018/6/6 22:39, Junling Zheng wrote: > Currently, versions in f2fs_configuration have one more byte than > those in sb, so versions in sb may not end with '\0', and then > print_raw_sb_info() will print something beyond sb->version. > > Signed-off-by: Junling Zheng > --- > fsck/mount.c | 5