Task #274 - authselect-1.5.0-6.fc41/scan-results.err
back to task #274download
Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/cli/cli_tool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/cli/cli_tool.c:42:17: warning[deadcode.DeadStores]: Value stored to 'category' during its initialization is never read # 40| const char *msg) # 41| { # 42|-> const char *category = "unknown"; # 43| # 44| switch (level) { Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/cli/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): authselect-1.5.0-build/authselect-1.5.0/src/cli/main.c: scope_hint: In function ‘requirements’ authselect-1.5.0-build/authselect-1.5.0/src/cli/main.c:540:12: warning[-Wanalyzer-malloc-leak]: leak of ‘features’ authselect-1.5.0-build/authselect-1.5.0/src/cli/main.c:32: included_from: Included from here. authselect-1.5.0-build/authselect-1.5.0/src/common/common.h:42:22: note: in definition of macro ‘malloc_zero_array’ authselect-1.5.0-build/authselect-1.5.0/src/cli/main.c:83:16: note: in expansion of macro ‘malloc_zero_array’ authselect-1.5.0-build/authselect-1.5.0/src/cli/main.c:516:9: note: in expansion of macro ‘ERROR’ # 538| authselect_profile_free(profile); # 539| # 540|-> return ret; # 541| } # 542| Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/lib/authselect_backup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/lib/authselect_files.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/lib/authselect_profile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/lib/files/system.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/lib/profiles/read.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): authselect-1.5.0-build/authselect-1.5.0/src/lib/profiles/read.c: scope_hint: In function 'authselect_profile_read' authselect-1.5.0-build/authselect-1.5.0/src/lib/profiles/read.c:289:19: warning[-Wanalyzer-malloc-leak]: leak of 'authselect_profile_init(profile_id)' authselect-1.5.0-build/authselect-1.5.0/src/lib/profiles/read.c:27: included_from: Included from here. authselect-1.5.0-build/authselect-1.5.0/src/lib/profiles/read.c:254:15: note: in expansion of macro 'malloc_zero' authselect-1.5.0-build/authselect-1.5.0/src/lib/profiles/read.c:168:13: note: in expansion of macro 'ERROR' # 287| } # 288| # 289|-> profile->path = location; # 290| # 291| ret = authselect_profile_read_readme(location, dirfd, &profile->name, Error: GCC_ANALYZER_WARNING (CWE-401): authselect-1.5.0-build/authselect-1.5.0/src/lib/profiles/read.c:315:8: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' authselect-1.5.0-build/authselect-1.5.0/src/lib/profiles/read.c:168:13: note: in expansion of macro 'ERROR' # 313| close(dirfd); # 314| # 315|-> if (ret != EOK) { # 316| ERROR("Unable to find profile [%s] [%d]: %s", # 317| profile_id, ret, strerror(ret)); Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/lib/util/evaluator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): authselect-1.5.0-build/authselect-1.5.0/src/lib/util/file.c: scope_hint: In function 'file_make_path.part.0' authselect-1.5.0-build/authselect-1.5.0/src/lib/util/file.c:340:11: warning[-Wanalyzer-null-argument]: use of NULL 'path' where non-null expected authselect-1.5.0-build/authselect-1.5.0/src/common/gettext.h:25: included_from: Included from here. authselect-1.5.0-build/authselect-1.5.0/src/common/common.h:30: included_from: Included from here. authselect-1.5.0-build/authselect-1.5.0/src/lib/util/file.c:31: included_from: Included from here. authselect-1.5.0-build/authselect-1.5.0/src/lib/util/file.c:281:9: note: in expansion of macro 'ERROR' authselect-1.5.0-build/authselect-1.5.0/src/lib/util/file.c:28: included_from: Included from here. /usr/include/sys/stat.h:389:12: note: argument 1 of 'mkdir' must be non-null # 338| } # 339| # 340|-> ret = mkdir(path, mode); # 341| if (ret != 0) { # 342| return errno; Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/lib/util/string_array.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-416): authselect-1.5.0-build/authselect-1.5.0/src/lib/util/string_array.c: scope_hint: In function 'string_array_free.part.0' authselect-1.5.0-build/authselect-1.5.0/src/lib/util/string_array.c:100:22: warning[-Wanalyzer-use-after-free]: use after 'reallocarray' of 'array' authselect-1.5.0-build/authselect-1.5.0/src/lib/util/string_array.c:28: included_from: Included from here. authselect-1.5.0-build/authselect-1.5.0/src/lib/util/string_array.c:81:19: note: in expansion of macro 'realloc_array' # 98| } # 99| # 100|-> for (i = 0; array[i] != NULL; i++) { # 101| free(array[i]); # 102| } Error: CPPCHECK_WARNING: authselect-1.5.0-build/authselect-1.5.0/src/lib/util/template.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.