Task #96058 - added.err
back to task #96058download
Error: GCC_ANALYZER_WARNING (CWE-401):
util-linux-2.42.start/login-utils/lslogins.c: scope_hint: In function ‘build_sgroups_string’
util-linux-2.42.start/login-utils/lslogins.c:415:45: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
# 413| x = snprintf(p, len, "%u,", sgroups[n]);
# 414| else {
# 415|-> struct group *grp = getgrgid(sgroups[n]);
# 416| if (!grp) {
# 417| free(res);
Error: GCC_ANALYZER_WARNING (CWE-401):
util-linux-2.42.start/lsfd-cmd/lsfd.c:2382:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xcalloc(ct + 1, 8) + i * 8’
util-linux-2.42.start/lsfd-cmd/lsfd.c:50: included_from: Included from here.
util-linux-2.42.start/lsfd-cmd/lsfd.c:2402:9: note: in expansion of macro ‘list_for_each’
# 2380| struct libscols_counter *ct;
# 2381|
# 2382|-> f = new_filter(spec->expr, false, ctl);
# 2383|
# 2384| ct = scols_filter_new_counter(f);
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:1099: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.
# 1097|
# 1098| for (i = 0; i < ctl->months_in_row - 1; i++)
# 1099|-> ms[i].next = &ms[i + 1];
# 1100|
# 1101| rows = (ctl->num_months - 1) / ctl->months_in_row;