Task #67935 - fixed.err
back to task #67935download
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.42.start/misc-utils/cal.c: scope_hint: In function ‘monthly’
util-linux-2.42.start/misc-utils/cal.c:1084:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)*ctl.months_in_row, 208) + (sizetype)i * 208’
util-linux-2.42.start/misc-utils/cal.c:79: included_from: Included from here.
# 1082|
# 1083| for (i = 0; i < ctl->months_in_row - 1; i++)
# 1084|-> ms[i].next = &ms[i + 1];
# 1085|
# 1086| rows = (ctl->num_months - 1) / ctl->months_in_row;
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.42.start/misc-utils/waitpid.c: scope_hint: In function ‘parse_pids’
util-linux-2.42.start/misc-utils/waitpid.c:53:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4) + i * 4’
util-linux-2.42.start/include/strutils.h:55:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.42.start/misc-utils/waitpid.c:53:55: note: in expansion of macro ‘_’
# 51|
# 52| for (size_t i = 0; i < n_strings; i++)
# 53|-> pids[i] = strtopid_or_err(strings[i], _("invalid PID argument"));
# 54|
# 55| return pids;
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.42.start/misc-utils/waitpid.c: scope_hint: In function ‘open_pidfds’
util-linux-2.42.start/misc-utils/waitpid.c:63:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_pids, 4) + i * 4’
util-linux-2.42.start/include/strutils.h:55:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.42.start/misc-utils/waitpid.c:53:55: note: in expansion of macro ‘_’
# 61|
# 62| for (size_t i = 0; i < n_pids; i++) {
# 63|-> pidfds[i] = pidfd_open(pids[i], 0);
# 64| if (pidfds[i] == -1) {
# 65| if (allow_exited && errno == ESRCH) {