The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3381
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Fixes: Coverity 1461752. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From 83b25c4d371676bbdf164f14227ab9260a8ad530 Mon Sep 17 00:00:00 2001 From: Christian Brauner <christian.brau...@ubuntu.com> Date: Wed, 15 Apr 2020 11:56:54 +0200 Subject: [PATCH] cgroups: do not pass NULL pointer Fixes: Coverity 1461752. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com> --- src/lxc/cgroups/cgfsng.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index a6ee6875e3..cabc39fb34 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2736,6 +2736,9 @@ static int device_cgroup_rule_parse_devpath(struct device_item *device, return ret_set_errno(-1, EINVAL); } + if (!mode) + return ret_errno(EINVAL); + if (device_cgroup_parse_access(device, mode) < 0) return -1;
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel