Task #1562 - added.err
back to task #1562download
Error: GCC_ANALYZER_WARNING (CWE-401):
util-linux-2.40/misc-utils/uuidgen.c:22: included_from: Included from here.
util-linux-2.40/include/xalloc.h: scope_hint: In function ‘unhex’
util-linux-2.40/include/xalloc.h:33:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((*valuelen >> 1) + 1)’
# 31| void *ret = malloc(size);
# 32|
# 33|-> if (!ret && size)
# 34| err(XALLOC_EXIT_CODE, "cannot allocate %zu bytes", size);
# 35| return ret;
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.40/misc-utils/blkid.c: scope_hint: In function ‘main’
util-linux-2.40/misc-utils/blkid.c:859:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8) + (long unsigned int)numdev * 8’
util-linux-2.40/misc-utils/blkid.c:47: included_from: Included from here.
util-linux-2.40/misc-utils/blkid.c:17: included_from: Included from here.
# 857| continue;
# 858|
# 859|-> devices[numdev++] = dev;
# 860| }
# 861|
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.40/misc-utils/cal.c: scope_hint: In function ‘monthly’
util-linux-2.40/misc-utils/cal.c:1016:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)*ctl.months_in_row, 208) + (sizetype)i * 208’
util-linux-2.40/misc-utils/cal.c:79: included_from: Included from here.
# 1014|
# 1015| for (i = 0; i < ctl->months_in_row - 1; i++)
# 1016|-> ms[i].next = &ms[i + 1];
# 1017|
# 1018| rows = (ctl->num_months - 1) / ctl->months_in_row;
Error: CLANG_WARNING:
util-linux-2.40/misc-utils/lslocks.c:244:7: warning[deadcode.DeadStores]: Although the value stored to 'sz' is used in the enclosing expression, the value is never actually read from 'sz'
# 242| return NULL;
# 243|
# 244|-> if ((sz = strlen(path)) >= (sizeof(path) - 2))
# 245| goto out;
# 246|
Error: CLANG_WARNING:
util-linux-2.40/text-utils/more.c:1065:14: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 1063| }
# 1064|
# 1065|-> if ((*sp < ' ' && *sp != '\n') || *sp == CERASE) {
# 1066| --ctl->prompt_len;
# 1067| erase_one_column(ctl);