Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
authselect-1.7.0/src/cli/main.c: scope_hint: In function ‘requirements’
authselect-1.7.0/src/cli/main.c:639:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘features’
#  637|   done:
#  638|       free(requirements);
#  639|->     authselect_array_free((char **)features);
#  640|       free(profile_id);
#  641|       authselect_profile_free(profile);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
authselect-1.7.0/src/cli/main.c: scope_hint: In function ‘test’
authselect-1.7.0/src/cli/main.c:730:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘features’
#  728|   
#  729|   done:
#  730|->     authselect_array_free((char **)features);
#  731|       free(profile_id);
#  732|       return ret;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def3]
authselect-1.7.0/src/lib/util/string_array.c: scope_hint: In function ‘string_array_free.part.0’
authselect-1.7.0/src/lib/util/string_array.c:100:22: warning[-Wanalyzer-use-after-free]: use after ‘reallocarray’ of ‘array’
authselect-1.7.0/src/lib/util/string_array.c: scope_hint: In function ‘string_array_free.part.0’
authselect-1.7.0/src/lib/util/config.h:24: included_from: Included from here.
authselect-1.7.0/src/lib/util/string_array.c:21: included_from: Included from here.
authselect-1.7.0/src/lib/util/string_array.c:81:19: note: in expansion of macro ‘realloc_array’
authselect-1.7.0/src/lib/util/string_array.c: scope_hint: In function ‘string_array_free.part.0’
#   98|       }
#   99|   
#  100|->     for (i = 0; array[i] != NULL; i++) {
#  101|           free(array[i]);
#  102|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def4]
authselect-1.7.0/src/lib/util/string_array.c: scope_hint: In function ‘string_array_del_value’
authselect-1.7.0/src/lib/util/string_array.c:189:13: warning[-Wanalyzer-null-argument]: use of NULL ‘*array’ where non-null expected
authselect-1.7.0/src/common/gettext.h:184: included_from: Included from here.
authselect-1.7.0/src/common/common.h:30: included_from: Included from here.
/usr/include/string.h:171:12: note: argument 1 of ‘strcmp’ must be non-null
#  187|       count = string_array_count(array);
#  188|       for (i = 0; i < count; i++) {
#  189|->         if (strcmp(array[i], value) == 0) {
#  190|               free(array[i]);
#  191|               array[i] = NULL;

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-204.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameauthselect-1.7.0-99.20260602120133066715.master.12.g409da73
diffbase-store-results-to/tmp/tmpyuc1wkw3/authselect-1.7.0-99.20260602120133066715.master.12.g409da73.tar.xz
diffbase-time-created2026-06-02 12:59:30
diffbase-time-finished2026-06-02 13:02:29
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpyuc1wkw3/authselect-1.7.0-99.20260602120133066715.master.12.g409da73.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpyuc1wkw3/authselect-1.7.0-99.20260602120133066715.master.12.g409da73.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-204.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameauthselect-1.7.0-99.20260602124816253471.pr451.17.gf4d37d0
store-results-to/tmp/tmp39l0ncq3/authselect-1.7.0-99.20260602124816253471.pr451.17.gf4d37d0.tar.xz
time-created2026-06-02 13:02:38
time-finished2026-06-02 13:05:02
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp39l0ncq3/authselect-1.7.0-99.20260602124816253471.pr451.17.gf4d37d0.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp39l0ncq3/authselect-1.7.0-99.20260602124816253471.pr451.17.gf4d37d0.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9