Task #62022 - added.err
back to task #62022download
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:1389: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
# 1387| /* Remove dots as EBPF code don't like them. */
# 1388| it = flat_scope;
# 1389|-> while ((it = strchr (it, '.')) != NULL)
# 1390| *it = '_';
# 1391|
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:2028:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_strchr' must be non-null
# 2026| path_to_scope = xstrdup (cgroup_path);
# 2027|
# 2028|-> cur = strchr (path_to_scope, '/');
# 2029| while (cur)
# 2030| {
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:2029:10: warning[-Wanalyzer-malloc-leak]: leak of 'get_cgroup_scope_path(*cgroup_status.path, *cgroup_status.scope)'
# 2027|
# 2028| cur = strchr (path_to_scope, '/');
# 2029|-> while (cur)
# 2030| {
# 2031| char *next = strchr (cur + 1, '/');
Error: GCC_ANALYZER_WARNING (CWE-401):
crun-HEAD/src/libcrun/cgroup-systemd.c:2031:32: warning[-Wanalyzer-malloc-leak]: leak of 'get_cgroup_scope_path(*cgroup_status.path, *cgroup_status.scope)'
# 2029| while (cur)
# 2030| {
# 2031|-> char *next = strchr (cur + 1, '/');
# 2032| if (next == NULL)
# 2033| 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:4019:33: 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'
# 4017| * This allows to skip applying same device rules during update.
# 4018| */
# 4019|-> ret = dedup_devices (container->container_def->linux->resources, resources, state_root, id, err);
# 4020| if (UNLIKELY (ret < 0))
# 4021| return ret;
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|