Task #70270 - added.err

back to task #70270
download
Error: GCC_ANALYZER_WARNING (CWE-775):
crun-HEAD/src/libcrun/criu.c:1068:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_207.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'
# 1066|         if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)
# 1067|           {
# 1068|->           inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1069|             if (UNLIKELY (inherit_new_net_fd < 0))
# 1070|               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:1079:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_228.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'
# 1077|         if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)
# 1078|           {
# 1079|->           inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1080|             if (UNLIKELY (inherit_new_pid_fd < 0))
# 1081|               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;