Task #105110 - added.err

back to task #105110
download
Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.43.devel/misc-utils/blkid.c: scope_hint: In function ‘main’
util-linux-2.43.devel/misc-utils/blkid.c:882:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8)’
util-linux-2.43.devel/misc-utils/blkid.c:49: included_from: Included from here.
util-linux-2.43.devel/misc-utils/blkid.c:18: included_from: Included from here.
#  880|   				continue;
#  881|   
#  882|-> 			devices[numdev++] = dev;
#  883|   		}
#  884|   

Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.43.devel/misc-utils/cal.c: scope_hint: In function ‘monthly’
util-linux-2.43.devel/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.43.devel/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;

Error: COMPILER_WARNING:
util-linux-2.43.devel/term-utils/agetty.c: scope_hint: In function ‘cred_to_bool’
util-linux-2.43.devel/term-utils/agetty.c:3137:27: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
# 3137 |         static const char const *pos_bool_val[] = {
#      |                           ^~~~~
# 3135|   static int cred_to_bool(const char *str)
# 3136|   {
# 3137|-> 	static const char const *pos_bool_val[] = {
# 3138|   		"true", "t", "yes",
# 3139|   		"y", "on", "1", };

Error: COMPILER_WARNING:
util-linux-2.43.devel/term-utils/agetty.c:3140:27: warning[-Wduplicate-decl-specifier]: duplicate ‘const’ declaration specifier
# 3140 |         static const char const *neg_bool_val[] = {
#      |                           ^~~~~
# 3138|   		"true", "t", "yes",
# 3139|   		"y", "on", "1", };
# 3140|-> 	static const char const *neg_bool_val[] = {
# 3141|   		"false", "f", "no",
# 3142|   		"n", "off", "0", };

Error: COMPILER_WARNING (CWE-681):
util-linux-2.43.devel/term-utils/agetty.c: scope_hint: In function ‘load_credentials’
util-linux-2.43.devel/term-utils/agetty.c:3230:47: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘ul_strtou32’ differ in signedness
# 3230 |                         rc = ul_strtou32(str, &num, 10);
#      |                                               ^~~~
#      |                                               |
#      |                                               int *
util-linux-2.43.devel/term-utils/agetty.c:38: included_from: Included from here.
util-linux-2.43.devel/include/strutils.h:31:51: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
#   31 | extern int ul_strtou32(const char *str, uint32_t *num, int base);
#      |                                         ~~~~~~~~~~^~~
# 3228|   		if (strcmp(d->d_name, "agetty.delay") == 0) {
# 3229|   			ul_path_read_string(pc, &str, d->d_name);
# 3230|-> 			rc = ul_strtou32(str, &num, 10);
# 3231|   			if (rc)
# 3232|   				log_warn(_("invalid 'delay' argument provided by credential"));