Fixed findings

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
sssd-2.12.0/src/providers/ipa/selinux_child.c:203: error[uninitvar]: Uninitialized variable: &chain_id
#  201|           {"debug-fd", 0, POPT_ARG_INT, &debug_fd, 0,
#  202|            _("An open file descriptor for the debug logs"), NULL},
#  203|->         {"chain-id", 0, POPT_ARG_LONG, &chain_id,
#  204|            0, _("Tevent chain ID used for logging purposes"), NULL},
#  205|           SSSD_LOGGER_OPTS

Error: COMPILER_WARNING (CWE-252): [#def2]
sssd-2.12.0/src/providers/ipa/selinux_child.c: scope_hint: In function ‘main’
sssd-2.12.0/src/providers/ipa/selinux_child.c:360:9: warning[-Wunused-result]: ignoring return value of ‘setresuid’ declared with attribute ‘warn_unused_result’
#  360 |         setresuid(suid, suid, suid);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  358|   
#  359|       if (getresuid(&ruid, &euid, &suid) == 0) {
#  360|->         setresuid(suid, suid, suid);
#  361|       }
#  362|       if (getresgid(&rgid, &egid, &sgid) == 0) {

Error: COMPILER_WARNING (CWE-252): [#def3]
sssd-2.12.0/src/providers/ipa/selinux_child.c:363:9: warning[-Wunused-result]: ignoring return value of ‘setresgid’ declared with attribute ‘warn_unused_result’
#  363 |         setresgid(sgid, sgid, sgid);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  361|       }
#  362|       if (getresgid(&rgid, &egid, &sgid) == 0) {
#  363|->         setresgid(sgid, sgid, sgid);
#  364|       }
#  365|   

Scan Properties

analyzer-version-clippy1.90.0
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.90.0
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-49.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-namesssd-2.12.0-99.20250923115647965306.pr7262.134.gc346e2444
diffbase-store-results-to/tmp/tmp_vgu0_kg/sssd-2.12.0-99.20250923115647965306.pr7262.134.gc346e2444.tar.xz
diffbase-time-created2025-09-23 12:19:30
diffbase-time-finished2025-09-23 12:27:51
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,gcc,unicontrol,clippy' '-o' '/tmp/tmp_vgu0_kg/sssd-2.12.0-99.20250923115647965306.pr7262.134.gc346e2444.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp_vgu0_kg/sssd-2.12.0-99.20250923115647965306.pr7262.134.gc346e2444.src.rpm'
diffbase-tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-49.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-namesssd-2.12.0-99.20250922080406484319.master.132.ge60fcddbb
store-results-to/tmp/tmpucuovmmy/sssd-2.12.0-99.20250922080406484319.master.132.ge60fcddbb.tar.xz
time-created2025-09-23 12:09:49
time-finished2025-09-23 12:18:53
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,gcc,unicontrol,clippy' '-o' '/tmp/tmpucuovmmy/sssd-2.12.0-99.20250922080406484319.master.132.ge60fcddbb.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpucuovmmy/sssd-2.12.0-99.20250922080406484319.master.132.ge60fcddbb.src.rpm'
tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9