iw-6.9-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
iw-6.9-build/iw-6.9/bitrate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
iw-6.9-build/iw-6.9/coalesce.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
iw-6.9-build/iw-6.9/connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
iw-6.9-build/iw-6.9/event.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-570): [#def5]
iw-6.9-build/iw-6.9/event.c:322: error[subtractPointers]: Subtracting pointers that point to different objects
#  320|   	printf("vendor event %.6x:%d", vendor_id, subcmd);
#  321|   
#  322|-> 	for (i = 0; i < &__stop_vendor_event - __start_vendor_event; i++) {
#  323|   		struct vendor_event *ev = __start_vendor_event[i];
#  324|   

Error: CPPCHECK_WARNING: [#def6]
iw-6.9-build/iw-6.9/ftm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
iw-6.9-build/iw-6.9/info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def8]
iw-6.9-build/iw-6.9/info.c:632: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  630|   					printf(", radar detect widths: {");
#  631|   					for (width = 0; width < 32; width++)
#  632|-> 						if (widths & (1 << width)) {
#  633|   							printf("%s %s",
#  634|   							       first ? "":",",

Error: CPPCHECK_WARNING: [#def9]
iw-6.9-build/iw-6.9/interface.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
iw-6.9-build/iw-6.9/iw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-570): [#def11]
iw-6.9-build/iw-6.9/iw.c:207: error[subtractPointers]: Subtracting pointers that point to different objects
#  205|   	printf("\t--version\tshow version (%s)\n", iw_version);
#  206|   	printf("Commands:\n");
#  207|-> 	for_each_cmd(section, i) {
#  208|   		if (section->parent)
#  209|   			continue;

Error: CPPCHECK_WARNING (CWE-570): [#def12]
iw-6.9-build/iw-6.9/iw.c:217: error[subtractPointers]: Subtracting pointers that point to different objects
#  215|   			__usage_cmd(section, "\t", full);
#  216|   
#  217|-> 		for_each_cmd(cmd, j) {
#  218|   			if (section != cmd->parent)
#  219|   				continue;

Error: CPPCHECK_WARNING (CWE-570): [#def13]
iw-6.9-build/iw-6.9/iw.c:418: error[subtractPointers]: Subtracting pointers that point to different objects
#  416|   	argv++;
#  417|   
#  418|-> 	for_each_cmd(sectcmd, i) {
#  419|   		if (sectcmd->parent)
#  420|   			continue;

Error: CPPCHECK_WARNING (CWE-570): [#def14]
iw-6.9-build/iw-6.9/iw.c:436: error[subtractPointers]: Subtracting pointers that point to different objects
#  434|   		command = *argv;
#  435|   
#  436|-> 		for_each_cmd(cmd, i) {
#  437|   			if (!cmd->handler)
#  438|   				continue;

Error: CLANG_WARNING: [#def15]
iw-6.9-build/iw-6.9/iw.c:632:8: warning[deadcode.DeadStores]: Although the value stored to 'idx' is used in the enclosing expression, the value is never actually read from 'idx'
#  630|    detect:
#  631|   		idby = II_NONE;
#  632|-> 		if ((idx = if_nametoindex(argv[0])) != 0)
#  633|   			idby = II_NETDEV;
#  634|   		else if ((idx = phy_lookup(argv[0])) >= 0)

Error: CLANG_WARNING: [#def16]
iw-6.9-build/iw-6.9/iw.c:634:13: warning[deadcode.DeadStores]: Although the value stored to 'idx' is used in the enclosing expression, the value is never actually read from 'idx'
#  632|   		if ((idx = if_nametoindex(argv[0])) != 0)
#  633|   			idby = II_NETDEV;
#  634|-> 		else if ((idx = phy_lookup(argv[0])) >= 0)
#  635|   			idby = II_PHY_NAME;
#  636|   		err = __handle_cmd(&nlstate, idby, argc, argv, &cmd);

Error: CPPCHECK_WARNING: [#def17]
iw-6.9-build/iw-6.9/link.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
iw-6.9-build/iw-6.9/measurements.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
iw-6.9-build/iw-6.9/measurements.c: scope_hint: In function ‘parse_ftm_config’
iw-6.9-build/iw-6.9/measurements.c:240:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
#  238|   	}
#  239|   
#  240|-> 	for (line_num = 1; fgets(line, sizeof(line), input); line_num++) {
#  241|   		if (line[0] == '#')
#  242|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
iw-6.9-build/iw-6.9/measurements.c:240:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
#  238|   	}
#  239|   
#  240|-> 	for (line_num = 1; fgets(line, sizeof(line), input); line_num++) {
#  241|   		if (line[0] == '#')
#  242|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
iw-6.9-build/iw-6.9/measurements.c:241:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
#  239|   
#  240|   	for (line_num = 1; fgets(line, sizeof(line), input); line_num++) {
#  241|-> 		if (line[0] == '#')
#  242|   			continue;
#  243|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
iw-6.9-build/iw-6.9/measurements.c:241:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
#  239|   
#  240|   	for (line_num = 1; fgets(line, sizeof(line), input); line_num++) {
#  241|-> 		if (line[0] == '#')
#  242|   			continue;
#  243|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
iw-6.9-build/iw-6.9/measurements.c: scope_hint: In function ‘handle_ftm_req’
iw-6.9-build/iw-6.9/measurements.c:269:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘req_argv’
#  267|   
#  268|   	req_argv = calloc(argc + 1, sizeof(req_argv[0]));
#  269|-> 	req_argv[0] = argv[0];
#  270|   	req_argv[1] = "measurement";
#  271|   	req_argv[2] = "ftm_request_send";

Error: CPPCHECK_WARNING: [#def24]
iw-6.9-build/iw-6.9/mesh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def25]
iw-6.9-build/iw-6.9/mgmt.c:140:3: warning[deadcode.DeadStores]: Value stored to 'argc' is never read
#  138|   			count = 1;
#  139|   
#  140|-> 		argc -= 2;
#  141|   		argv += 2;
#  142|   	} else if (argc) {

Error: CLANG_WARNING: [#def26]
iw-6.9-build/iw-6.9/mgmt.c:141:3: warning[deadcode.DeadStores]: Value stored to 'argv' is never read
#  139|   
#  140|   		argc -= 2;
#  141|-> 		argv += 2;
#  142|   	} else if (argc) {
#  143|   		err = HANDLER_RET_USAGE;

Error: CPPCHECK_WARNING: [#def27]
iw-6.9-build/iw-6.9/mpath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
iw-6.9-build/iw-6.9/phy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
iw-6.9-build/iw-6.9/reg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
iw-6.9-build/iw-6.9/scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def31]
iw-6.9-build/iw-6.9/scan.c:538:2: warning[unix.Malloc]: Potential leak of memory pointed to by 'meshid'
#  536|   	err = 0;
#  537|    nla_put_failure:
#  538|-> 	nlmsg_free(ssids);
#  539|   	nlmsg_free(freqs);
#  540|   	if (meshid)

Error: CPPCHECK_WARNING: [#def32]
iw-6.9-build/iw-6.9/sha256.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
iw-6.9-build/iw-6.9/station.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def34]
iw-6.9-build/iw-6.9/station.c:284:3: warning[deadcode.DeadStores]: Value stored to 'pos' is never read
#  282|   				" EHT-GI %d", nla_get_u8(rinfo[NL80211_RATE_INFO_EHT_GI]));
#  283|   	if (rinfo[NL80211_RATE_INFO_EHT_RU_ALLOC])
#  284|-> 		pos += snprintf(pos, buflen - (pos - buf),
#  285|   				" EHT-RU-ALLOC %d", nla_get_u8(rinfo[NL80211_RATE_INFO_EHT_RU_ALLOC]));
#  286|   }

Error: CPPCHECK_WARNING: [#def35]
iw-6.9-build/iw-6.9/survey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
iw-6.9-build/iw-6.9/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def37]
iw-6.9-build/iw-6.9/util.c:1890:3: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 1888|   		offset += sprintf(buf + offset, "%s", ((cap >> 1) & 0x8) ? " 8" : "");
# 1889|   		offset += sprintf(buf + offset, "%s", ((cap >> 1) & 0x10) ? " 16" : "");
# 1890|-> 		offset += sprintf(buf + offset, " MHz");
# 1891|   		printf("\t\t\t%s\n", buf);
# 1892|   	}

Error: CPPCHECK_WARNING: [#def38]
iw-6.9-build/iw-6.9/vendor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def39]
iw-6.9-build/iw-6.9/wowlan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-171.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameiw-6.9-1.fc41
store-results-to/tmp/tmplytnpjiu/iw-6.9-1.fc41.tar.xz
time-created2024-07-03 13:39:19
time-finished2024-07-03 13:40:26
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmplytnpjiu/iw-6.9-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmplytnpjiu/iw-6.9-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9