[PATCH 10/36] cmd/libsnap-confine-private: Fix use of uninitialised variable
authorAlex Murray <alex.murray@canonical.com>
Wed, 17 Nov 2021 03:53:25 +0000 (14:23 +1030)
committerAlex Murray <alex.murray@canonical.com>
Tue, 29 Nov 2022 12:01:21 +0000 (12:01 +0000)
commit28d51ce76fd3f91173cbd4ec9020e1728eb27915
treeb554fd65c6332ab1da182a9e8d4dd207dad08e8b
parent0015ff5a97a8ee53714a8e256ea48828f7e35b7d
[PATCH 10/36] cmd/libsnap-confine-private: Fix use of uninitialised variable

Ensure xdg_runtime_dir_env is zero initialisd in
sc_call_snap_update_ns_as_user() otherwise when XDG_RUNTIME_DIR is not
defined the uninitialised contents of this buffer will be passed to
snap-update-ns. This is unlikely to be an issue in practice as
snap-update-ns is quite defensive in terms of environment variable handing
already.

Signed-off-by: Alex Murray <alex.murray@canonical.com>
Gbp-Pq: Topic cve202144730
Gbp-Pq: Name 0010-cmd-libsnap-confine-private-Fix-use-of-uninitialised.patch
cmd/libsnap-confine-private/tool.c