Task #1385 - iw-6.7-2.fc40/scan-results.err
back to task #1385download
Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/bitrate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/coalesce.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/event.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-570): iw-6.7-build/iw-6.7/event.c:320: error[subtractPointers]: Subtracting pointers that point to different objects # 318| printf("vendor event %.6x:%d", vendor_id, subcmd); # 319| # 320|-> for (i = 0; i < &__stop_vendor_event - __start_vendor_event; i++) { # 321| struct vendor_event *ev = __start_vendor_event[i]; # 322| Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/ftm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-758): iw-6.7-build/iw-6.7/info.c:630: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 628| printf(", radar detect widths: {"); # 629| for (width = 0; width < 32; width++) # 630|-> if (widths & (1 << width)) { # 631| printf("%s %s", # 632| first ? "":",", Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/interface.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/iw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-570): iw-6.7-build/iw-6.7/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): iw-6.7-build/iw-6.7/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): iw-6.7-build/iw-6.7/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): iw-6.7-build/iw-6.7/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: iw-6.7-build/iw-6.7/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: iw-6.7-build/iw-6.7/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: iw-6.7-build/iw-6.7/link.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/measurements.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): iw-6.7-build/iw-6.7/measurements.c: scope_hint: In function ‘parse_ftm_config’ iw-6.7-build/iw-6.7/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): iw-6.7-build/iw-6.7/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): iw-6.7-build/iw-6.7/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): iw-6.7-build/iw-6.7/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): iw-6.7-build/iw-6.7/measurements.c: scope_hint: In function ‘handle_ftm_req’ iw-6.7-build/iw-6.7/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: iw-6.7-build/iw-6.7/mesh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: iw-6.7-build/iw-6.7/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: iw-6.7-build/iw-6.7/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: iw-6.7-build/iw-6.7/mpath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/phy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/reg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: iw-6.7-build/iw-6.7/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: iw-6.7-build/iw-6.7/sha256.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/station.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: iw-6.7-build/iw-6.7/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: iw-6.7-build/iw-6.7/survey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: iw-6.7-build/iw-6.7/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: iw-6.7-build/iw-6.7/vendor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: iw-6.7-build/iw-6.7/wowlan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.