]> git.ipfire.org Git - thirdparty/lxc.git/commit
string utils: Make sure don't return uninitialized memory. 3864/head
authorLiFeng <lifeng68@huawei.com>
Sat, 12 Jun 2021 06:52:46 +0000 (14:52 +0800)
committerLiFeng <lifeng68@huawei.com>
Sat, 12 Jun 2021 06:56:04 +0000 (14:56 +0800)
commit47f5be06a4793f46cc5e609261486ce072ffcb80
treeea7855288ea05f9d7c9438b230aac619b9e11590
parenta197d2fb5bcbbc722cebb3fb9c3add685bf94cd2
string utils: Make sure don't return uninitialized memory.

The function lxc_string_split_quoted and lxc_string_split_and_trim use
realloc to reduce the memory. But the result may be NULL, the the
returned memory will be uninitialized

Signed-off-by: LiFeng <lifeng68@huawei.com>
src/lxc/string_utils.c