[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)
committerMichael Vogt <mvo@debian.org>
Thu, 17 Feb 2022 15:29:46 +0000 (15:29 +0000)
commite0e21d5c5677fdb38b1bab770bc5c5cbf4871eb9
tree273ffc3ab3a84f1456983cf662338895ee8b2ce7
parent780889893b3ebef50195dd286059aa04d799a006
[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