authselect-1.5.0-6.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
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: [#def2]
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: [#def3]
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): [#def4]
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: [#def5]
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: [#def6]
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: [#def7]
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: [#def8]
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: [#def9]
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): [#def10]
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): [#def11]
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: [#def12]
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): [#def13]
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: [#def14]
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): [#def15]
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: [#def16]
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.

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-65.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameauthselect-1.5.0-6.fc41
store-results-to/tmp/tmp57q1lm7g/authselect-1.5.0-6.fc41.tar.xz
time-created2024-07-03 12:01:03
time-finished2024-07-03 12:02:58
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp57q1lm7g/authselect-1.5.0-6.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp57q1lm7g/authselect-1.5.0-6.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9