Task #61896 - added.err
back to task #61896download
Error: GCC_ANALYZER_WARNING (CWE-688):
crun-HEAD/src/libcrun/cgroup-resources.c:153:12: warning[-Wanalyzer-null-argument]: use of NULL 'controllers' where non-null expected
<built-in>: note: argument 1 of '__builtin_strchr' must be non-null
# 151| key = xstrdup (name);
# 152|
# 153|-> it = strchr (key, '.');
# 154| if (it == NULL)
# 155| {
Error: GCC_ANALYZER_WARNING (CWE-688):
crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'bpfprog_path_from_scope'
crun-HEAD/src/libcrun/cgroup-systemd.c:1378:16: warning[-Wanalyzer-null-argument]: use of NULL 'it' where non-null expected
crun-HEAD/src/libcrun/cgroup-internal.h:22: included_from: Included from here.
crun-HEAD/src/libcrun/cgroup-systemd.c:23: included_from: Included from here.
<built-in>: note: argument 1 of '__builtin_strchr' must be non-null
# 1376| /* Remove dots as EBPF code don't like them. */
# 1377| it = flat_scope;
# 1378|-> while ((it = strchr (it, '.')) != NULL)
# 1379| *it = '_';
# 1380|
Error: GCC_ANALYZER_WARNING (CWE-688):
crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'get_cgroup_scope_path'
crun-HEAD/src/libcrun/cgroup-systemd.c:2009:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_strchr' must be non-null
# 2007| path_to_scope = xstrdup (cgroup_path);
# 2008|
# 2009|-> cur = strchr (path_to_scope, '/');
# 2010| while (cur)
# 2011| {
Error: GCC_ANALYZER_WARNING (CWE-401):
crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'libcrun_destroy_cgroup_systemd'
crun-HEAD/src/libcrun/cgroup-systemd.c:2010:10: warning[-Wanalyzer-malloc-leak]: leak of 'get_cgroup_scope_path(*cgroup_status.path, *cgroup_status.scope)'
# 2008|
# 2009| cur = strchr (path_to_scope, '/');
# 2010|-> while (cur)
# 2011| {
# 2012| char *next = strchr (cur + 1, '/');
Error: GCC_ANALYZER_WARNING (CWE-401):
crun-HEAD/src/libcrun/cgroup-systemd.c:2012:32: warning[-Wanalyzer-malloc-leak]: leak of 'get_cgroup_scope_path(*cgroup_status.path, *cgroup_status.scope)'
# 2010| while (cur)
# 2011| {
# 2012|-> char *next = strchr (cur + 1, '/');
# 2013| if (next == NULL)
# 2014| break;
Error: GCC_ANALYZER_WARNING (CWE-476):
crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_update'
crun-HEAD/src/libcrun/container.c:3986:29: warning[-Wanalyzer-null-dereference]: dereference of NULL 'container'
crun-HEAD/src/libcrun/container.c:582:7: note: in expansion of macro 'crun_make_error'
crun-HEAD/src/libcrun/container.c:1626:12: note: in expansion of macro 'crun_make_error'
# 3984| }
# 3985|
# 3986|-> dedup_resources (container->container_def->linux->resources, resources);
# 3987| ret = libcrun_linux_container_update (&status, state_root, resources, err);
# 3988|
Error: GCC_ANALYZER_WARNING (CWE-1341):
crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '<unknown>'
crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0'
# 106| int *pp = (int *) p;
# 107| if (*pp >= 0)
# 108|-> TEMP_FAILURE_RETRY (close (*pp));
# 109| }
# 110|