]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
lsattr: check whether path is NULL in lsattr_dir_proc()
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Wed, 28 Jul 2021 01:56:48 +0000 (09:56 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 Aug 2021 02:35:02 +0000 (22:35 -0400)
commitc8e9e0135b3eb0d8a18387d58645e7cc1062da58
treed0dbd53fe4d11d0be6e41ce75828c7dc582b1961
parent212827d1909d66f57bb76524c18c113d6bc71909
lsattr: check whether path is NULL in lsattr_dir_proc()

In lsattr_dir_proc(), if malloc() return NULL, it will cause
a segmentation fault problem.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/lsattr.c