Whamcloud - gitweb
lib/ss/error.c: check return value malloc in ss_name()
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Wed, 30 Jun 2021 08:27:21 +0000 (16:27 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Jul 2021 03:45:20 +0000 (23:45 -0400)
commita6aee13bc2b9557c25942a197e6d7a5ec7504fe8
tree95598b22e64f5867094387d25cc3ba06ad416d67
parentf9033bd2e82c6f5963034cd59f7273770374b598
lib/ss/error.c: check return value malloc in ss_name()

In ss_name(), we should check return value of malloc(),
otherwise, it may 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>
lib/ss/error.c