Task #61570 - added.err

back to task #61570
download
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-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|