Task #6405 - added.err
back to task #6405download
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.41.devel-build/util-linux-2.41.devel/disk-utils/fdformat.c: scope_hint: In function ‘verify_disk’
util-linux-2.41.devel-build/util-linux-2.41.devel/disk-utils/fdformat.c:127:49: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)track_size) + (sizetype)count’
util-linux-2.41.devel-build/util-linux-2.41.devel/disk-utils/fdformat.c:28: included_from: Included from here.
# 125| }
# 126| for (count = 0; count < track_size; count++)
# 127|-> if (data[count] != FD_FILL_BYTE) {
# 128| if (retries_left) {
# 129| format_begin(ctrl);
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c: scope_hint: In function 'mnt_table_find_target'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1196:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'fs'
util-linux-2.41.devel-build/util-linux-2.41.devel/include/c.h:22: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:27: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:52: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:29: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:60:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1714:9: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:60:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1720:17: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:60:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1100:9: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:60:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:60:25: note: in expansion of macro '__UL_DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1179:9: note: in expansion of macro 'DBG'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:186:28: note: in expansion of macro 'IS_ITER_FORWARD'
util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:868:17: note: in expansion of macro 'MNT_ITER_INIT'
# 1194| char *p;
# 1195|
# 1196|-> if (!fs->target
# 1197| || mnt_fs_is_swaparea(fs)
# 1198| || mnt_fs_is_kernel(fs)
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/blkid.c: scope_hint: In function ‘main’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/blkid.c:889:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8) + (long unsigned int)numdev * 8’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/blkid.c:48: included_from: Included from here.
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/blkid.c:17: included_from: Included from here.
# 887| continue;
# 888|
# 889|-> devices[numdev++] = dev;
# 890| }
# 891|
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/hardlink.c:522:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)n, 8)’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
# 520|
# 521| for (i = 0; i < n; i++) {
# 522|-> table[i] = names;
# 523| names += strlen(names) + 1;
# 524| }
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:52: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-476):
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c: scope_hint: In function ‘open_pidfds’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c:64:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_pids, 4) + i * 4’
util-linux-2.41.devel-build/util-linux-2.41.devel/include/strutils.h:52: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 ‘_’
# 62|
# 63| for (size_t i = 0; i < n_pids; i++) {
# 64|-> pidfds[i] = pidfd_open(pids[i], 0);
# 65| if (pidfds[i] == -1) {
# 66| if (allow_exited && errno == ESRCH) {