fsck.f2fs: fix potential stack overflow issue
authorChao Yu <yuchao0@huawei.com>
Thu, 16 Nov 2017 11:50:56 +0000 (19:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 27 Nov 2017 04:21:48 +0000 (20:21 -0800)
commit877821c8b51c8c1e7480e2e2ad62c36588d52218
treee06c99666bf147d1b30ce6d6ca3efb1928875ed1
parent2a8d6909deb358588db9db07dfebc91f167617f4
fsck.f2fs: fix potential stack overflow issue

In fsck_chk_inode_blk, we will allocate 256 bytes memory in stack before
traversing sub-directory recursively, it's not safe, in order to avoid
potential stack overflow, use malloc instead.

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