Task #25558 - fixed.err
back to task #25558download
Error: COMPILER_WARNING (CWE-457):
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'format_default_id_mapping'
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.c:1560:12: warning[-Wmaybe-uninitialized]: 'from' may be used uninitialized
# 1560 | from += used;
# | ^~
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.c:1544:12: note: 'from' was declared here
# 1544 | uint32_t from, available;
# | ^~~~
# 1558| uint32_t used = MIN (container_id, available);
# 1559| written += sprintf (buffer + written, "%d %d %d\n", 0, from, used);
# 1560|-> from += used;
# 1561| available -= used;
# 1562| }
Error: COMPILER_WARNING (CWE-457):
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.c:1561:17: warning[-Wmaybe-uninitialized]: 'available' may be used uninitialized
# 1561 | available -= used;
# | ^~
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.c:1544:18: note: 'available' was declared here
# 1544 | uint32_t from, available;
# | ^~~~~~~~~
# 1559| written += sprintf (buffer + written, "%d %d %d\n", 0, from, used);
# 1560| from += used;
# 1561|-> available -= used;
# 1562| }
# 1563|
Error: GCC_ANALYZER_WARNING (CWE-401):
crun-1.18.2-build/crun-HEAD/src/libcrun/cgroup-internal.h:22: included_from: Included from here.
crun-1.18.2-build/crun-HEAD/src/libcrun/cgroup.c:24: included_from: Included from here.
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'libcrun_cgroup_enter'
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.h:71:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc0(24)'
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY'
crun-1.18.2-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY'
# 69| {
# 70| void *res = calloc (1, size);
# 71|-> if (UNLIKELY (res == NULL))
# 72| OOM ();
# 73| return res;