[lxc/lxc] 176a24: string utils: Make sure don't return uninitialized...

0 views
Skip to first unread message

Ruben Jenster

unread,
Jun 14, 2021, 8:23:37 AM6/14/21
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/stable-4.0
Home: https://github.com/lxc/lxc
Commit: 176a249d21f7b47edf196e7d20e1ab98159b4c71
https://github.com/lxc/lxc/commit/176a249d21f7b47edf196e7d20e1ab98159b4c71
Author: LiFeng <life...@huawei.com>
Date: 2021-06-14 (Mon, 14 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: ae3fb5405bf2f1c236c0f729647005733153d9af
https://github.com/lxc/lxc/commit/ae3fb5405bf2f1c236c0f729647005733153d9af
Author: Ruben Jenster <r.je...@drachenfels.de>
Date: 2021-06-14 (Mon, 14 Jun 2021)

Changed paths:
M src/lxc/lxccontainer.h
M src/lxc/start.c

Log Message:
-----------
Add support for LISTEN_FDS environment variable.

The LISTEN_FDS environment variable defines the number of
file descriptors that should be inherited by the container,
in addition to stdio.
The LISTEN_FDS environment variable is defined in the OCI spec
and used to support socket activation.

Refs #3845

Signed-off-by: Ruben Jenster <r.je...@drachenfels.de>
Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/19b18b697048...ae3fb5405bf2
Reply all
Reply to author
Forward
0 new messages