Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
polkit-126/src/polkitbackend/polkitbackendduktapeauthority.c: scope_hint: In function ‘report_error’
polkit-126/src/polkitbackend/polkitbackendduktapeauthority.c:87:31: warning[-Wunused-variable]: unused variable ‘authority’
#   87 |     PolkitBackendJsAuthority *authority = udata;
#      |                               ^~~~~~~~~
#   85|                             const char *msg)
#   86|   {
#   87|->     PolkitBackendJsAuthority *authority = udata;
#   88|       polkit_backend_log (LOG_LEVEL_ERROR,
#   89|                           "fatal Duktape JS backend error: %s",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
polkit-126/src/polkitbackend/polkitbackendduktapeauthority.c: scope_hint: In function ‘polkit_backend_common_js_authority_get_admin_auth_identities’
polkit-126/src/polkitbackend/polkitbackendduktapeauthority.c:934:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
#  932|     if (!push_subject (cx, subject, user_for_subject, subject_is_local, subject_is_active, &error))
#  933|       {
#  934|->       polkit_backend_log (
#  935|                                       LOG_LEVEL_ERROR,
#  936|                                       "Error converting subject to JS object: %s",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
polkit-126/src/polkitbackend/polkitbackendduktapeauthority.c: scope_hint: In function ‘polkit_backend_common_js_authority_check_authorization_sync’
polkit-126/src/polkitbackend/polkitbackendduktapeauthority.c:1016:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
# 1014|     if (!push_subject (cx, subject, user_for_subject, subject_is_local, subject_is_active, &error))
# 1015|       {
# 1016|->       polkit_backend_log (
# 1017|                                       LOG_LEVEL_ERROR,
# 1018|                                       "Error converting subject to JS object: %s",

Scan Properties

analyzer-version-clippy1.91.1
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.91.1
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer15.2.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-119.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namepolkit-126-1.20251211144409266482.main.63.g7c466c5
diffbase-store-results-to/tmp/tmp7jdjk71b/polkit-126-1.20251211144409266482.main.63.g7c466c5.tar.xz
diffbase-time-created2025-12-11 17:04:46
diffbase-time-finished2025-12-11 17:07:27
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmp7jdjk71b/polkit-126-1.20251211144409266482.main.63.g7c466c5.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-add-flag=-flto=auto' '/tmp/tmp7jdjk71b/polkit-126-1.20251211144409266482.main.63.g7c466c5.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251124.152119.g92ed7a6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-119.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepolkit-126-1.20251211165500190398.pr617.64.g054ee6d
store-results-to/tmp/tmpb3n43bgx/polkit-126-1.20251211165500190398.pr617.64.g054ee6d.tar.xz
time-created2025-12-11 17:07:51
time-finished2025-12-11 17:10:02
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpb3n43bgx/polkit-126-1.20251211165500190398.pr617.64.g054ee6d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-add-flag=-flto=auto' '/tmp/tmpb3n43bgx/polkit-126-1.20251211165500190398.pr617.64.g054ee6d.src.rpm'
tool-versioncsmock-3.8.3.20251124.152119.g92ed7a6-1.el9