Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] polkit-127/src/polkitagent/polkitagenthelper-pam.c:256:7: warning[-Wanalyzer-null-argument]: use of NULL ‘user_to_auth’ where non-null expected polkit-127/src/polkitagent/polkitagenthelper-pam.c:105:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:109:3: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:117:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:130:3: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:133:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:141:7: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:141:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:182:12: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:183:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:186:7: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:209:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:216:8: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:217:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:224:8: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:225:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:237:8: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:238:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:247:8: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:248:6: branch_false: following ‘false’ branch... polkit-127/src/polkitagent/polkitagenthelper-pam.c:256:7: branch_false: ...to here polkit-127/src/polkitagent/polkitagenthelper-pam.c:256:7: danger: argument 2 (‘user_to_auth’) NULL where non-null expected # 254| } # 255| # 256|-> if (strcmp (authed_user, user_to_auth) != 0) # 257| { # 258| fprintf (stderr, "polkit-agent-helper-1: Tried to auth user '%s' but we got auth for user '%s' instead",
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-103.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | polkit-126-6.fc43 |
| diffbase-store-results-to | /tmp/tmprzdvzrm3/polkit-126-6.fc43.tar.xz |
| diffbase-time-created | 2026-01-08 20:19:05 |
| diffbase-time-finished | 2026-01-08 20:21:32 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmprzdvzrm3/polkit-126-6.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmprzdvzrm3/polkit-126-6.fc43.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-103.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | polkit-127-1.fc44 |
| store-results-to | /tmp/tmp9kuy7h4y/polkit-127-1.fc44.tar.xz |
| time-created | 2026-01-08 20:22:09 |
| time-finished | 2026-01-08 20:24:08 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp9kuy7h4y/polkit-127-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp9kuy7h4y/polkit-127-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |