Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
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:942:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
#  940|     if (!push_subject (cx, subject, user_for_subject, subject_is_local, subject_is_active, &error))
#  941|       {
#  942|->       polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),
#  943|                                       LOG_LEVEL_ERROR,
#  944|                                       "Error converting subject to JS object: %s",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
polkit-126/src/polkitbackend/polkitbackendduktapeauthority.c: scope_hint: In function ‘polkit_backend_common_js_authority_check_authorization_sync’
polkit-126/src/polkitbackend/polkitbackendduktapeauthority.c:1024:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
# 1022|     if (!push_subject (cx, subject, user_for_subject, subject_is_local, subject_is_active, &error))
# 1023|       {
# 1024|->       polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),
# 1025|                                       LOG_LEVEL_ERROR,
# 1026|                                       "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.20251211165500190398.pr617.64.g054ee6d
diffbase-store-results-to/tmp/tmpb3n43bgx/polkit-126-1.20251211165500190398.pr617.64.g054ee6d.tar.xz
diffbase-time-created2025-12-11 17:07:51
diffbase-time-finished2025-12-11 17:10:02
diffbase-toolcsmock
diffbase-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'
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.20251211144409266482.main.63.g7c466c5
store-results-to/tmp/tmp7jdjk71b/polkit-126-1.20251211144409266482.main.63.g7c466c5.tar.xz
time-created2025-12-11 17:04:46
time-finished2025-12-11 17:07:27
titleFixed findings
toolcsmock
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'
tool-versioncsmock-3.8.3.20251124.152119.g92ed7a6-1.el9