Task #70281 - added.err
back to task #70281download
Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/criu.c:1072:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_215.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:894:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 1070| if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)
# 1071| {
# 1072|-> inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1073| if (UNLIKELY (inherit_new_net_fd < 0))
# 1074| return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path);
Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/criu.c:1083:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_236.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:894:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 1081| if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)
# 1082| {
# 1083|-> inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1084| if (UNLIKELY (inherit_new_pid_fd < 0))
# 1085| return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path);
Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'libcrun_open_seccomp_bpf'
crun-HEAD/src/libcrun/seccomp.c:467:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open_rundir_dirfd(*container_49->context.state_root, err)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'libcrun_open_seccomp_bpf'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
# 465|
# 466| ret = libcrun_get_state_directory (&dir, state_root, NULL, err);
# 467|-> if (UNLIKELY (ret < 0))
# 468| return ret;
# 469|
Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache'
crun-HEAD/src/libcrun/seccomp.c:467:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open_rundir_dirfd(<unknown>, err)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
# 465|
# 466| ret = libcrun_get_state_directory (&dir, state_root, NULL, err);
# 467|-> if (UNLIKELY (ret < 0))
# 468| return ret;
# 469|
Error: GCC_ANALYZER_WARNING (CWE-476):
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache'
crun-HEAD/src/libcrun/seccomp.c:597:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '**ctx.container.context'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache'
# 595|
# 596| /* relative path to dirfd. */
# 597|-> ret = append_paths (&src_path, err, container->context->id, "seccomp.bpf", NULL);
# 598| if (UNLIKELY (ret < 0))
# 599| return ret;
Error: GCC_ANALYZER_WARNING (CWE-476):
crun-HEAD/src/libcrun/seccomp.c:597:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '*container.context'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'store_seccomp_cache'
# 595|
# 596| /* relative path to dirfd. */
# 597|-> ret = append_paths (&src_path, err, container->context->id, "seccomp.bpf", NULL);
# 598| if (UNLIKELY (ret < 0))
# 599| return ret;