[lxc/lxc] 47f5be: string utils: Make sure don't return uninitialized...

0 views
Skip to first unread message

Christian Brauner

unread,
Jun 14, 2021, 5:34:32 AM6/14/21
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 47f5be06a4793f46cc5e609261486ce072ffcb80
https://github.com/lxc/lxc/commit/47f5be06a4793f46cc5e609261486ce072ffcb80
Author: LiFeng <life...@huawei.com>
Date: 2021-06-12 (Sat, 12 Jun 2021)

Changed paths:
M src/lxc/string_utils.c

Log Message:
-----------
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 <life...@huawei.com>


Commit: 51bbca901bebc2ff8e22bd5f841ceafdcb4a3066
https://github.com/lxc/lxc/commit/51bbca901bebc2ff8e22bd5f841ceafdcb4a3066
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-06-14 (Mon, 14 Jun 2021)

Changed paths:
M src/lxc/string_utils.c

Log Message:
-----------
Merge pull request #3864 from lifeng68/master

string utils: Make sure don't return uninitialized memory.


Compare: https://github.com/lxc/lxc/compare/a197d2fb5bcb...51bbca901beb
Reply all
Reply to author
Forward
0 new messages