fsck.f2fs: fix to avoid overflow during print_inode_info()
authorChao Yu <yuchao0@huawei.com>
Wed, 15 Apr 2020 03:26:48 +0000 (11:26 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 6 May 2020 14:41:06 +0000 (07:41 -0700)
commite8d9f6d7b345c2a649dfc52ce3babc8f3770cb39
treec4f268319b9486e6d7fa48176da952d04153ee43
parent7a22451bc2b41eabf343c20512ad30bcdc7d3ba9
fsck.f2fs: fix to avoid overflow during print_inode_info()

While dumping files during fsck, print_inode_info() didn't check
sanity of inode, so insane i_extra_isize could cause overflow
when printing i_addr, to avoid that, let's add a check condition.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/mount.c