Task #65421 - added.err
back to task #65421download
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)’
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)’
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-688):
util-linux-2.42.start/term-utils/agetty.c: scope_hint: In function ‘dump_iface_all’
util-linux-2.42.start/term-utils/agetty.c:2686:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.42.start/include/netlink.h:28: included_from: Included from here.
util-linux-2.42.start/include/netaddrq.h:17: included_from: Included from here.
util-linux-2.42.start/term-utils/agetty.c:51: included_from: Included from here.
util-linux-2.42.start/include/netaddrq.h:62:46: note: in expansion of macro ‘list_for_each’
util-linux-2.42.start/term-utils/agetty.c:2938:17: note: in expansion of macro ‘list_for_each_netaddrq_iface’
/usr/include/stdio.h:360:12: note: argument 1 of ‘fprintf’ must be non-null
# 2684| if (first)
# 2685| {
# 2686|-> fprintf(ie->output, "%s: ", ifaceq->ifname);
# 2687| first = false;
# 2688| }
Error: GCC_ANALYZER_WARNING (CWE-688):
util-linux-2.42.start/term-utils/agetty.c:2698:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ie.output’ where non-null expected
util-linux-2.42.start/include/netaddrq.h:62:46: note: in expansion of macro ‘list_for_each’
util-linux-2.42.start/term-utils/agetty.c:2938:17: note: in expansion of macro ‘list_for_each_netaddrq_iface’
util-linux-2.42.start/term-utils/agetty.c:2681:9: note: in expansion of macro ‘list_for_each’
util-linux-2.42.start/term-utils/agetty.c:2693:9: note: in expansion of macro ‘list_for_each’
/usr/include/stdio.h:360:12: note: argument 1 of ‘fprintf’ must be non-null
# 2696| if (first)
# 2697| {
# 2698|-> fprintf(ie->output, "%s: ", ifaceq->ifname);
# 2699| first = false;
# 2700| }