Task #33993 - added.err
back to task #33993download
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c: scope_hint: In function ‘parse_pids’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c:54:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4)’
util-linux-2.41.devel-build/util-linux-2.41.devel/include/strutils.h:53:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’
# 52|
# 53| for (size_t i = 0; i < n_strings; i++)
# 54|-> pids[i] = strtopid_or_err(strings[i], _("failed to parse pid"));
# 55|
# 56| return pids;
Error: GCC_ANALYZER_WARNING (CWE-688):
util-linux-2.41.devel-build/util-linux-2.41.devel/sys-utils/ipcutils.c: scope_hint: In function ‘posix_ipc_msg_get_info’
util-linux-2.41.devel-build/util-linux-2.41.devel/sys-utils/ipcutils.c:685:22: warning[-Wanalyzer-null-argument]: use of NULL ‘opendir("/dev/mqueue")’ where non-null expected
util-linux-2.41.devel-build/util-linux-2.41.devel/sys-utils/ipcutils.c:16: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/include/c.h:18: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/sys-utils/ipcutils.c:14: included_from: Included from here.
/usr/include/features.h:524: included_from: Included from here.
/usr/include/inttypes.h:25: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/sys-utils/ipcutils.c:12: included_from: Included from here.
/usr/include/dirent.h:167:23: note: argument 1 of ‘readdir’ must be non-null
# 683| }
# 684|
# 685|-> while ((de = readdir(d)) != NULL) {
# 686| if ((de->d_name[0] == '.' && de->d_name[1] == '\0') ||
# 687| (de->d_name[0] == '.' && de->d_name[1] == '.' &&