Error: COMPILER_WARNING (CWE-252): [#def1] 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:330:9: warning[-Wunused-result]: ignoring return value of ‘setresuid’ declared with attribute ‘warn_unused_result’ # 330 | setresuid(suid, suid, suid); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 328| # 329| if (getresuid(&ruid, &euid, &suid) == 0) { # 330|-> setresuid(suid, suid, suid); # 331| } # 332| if (getresgid(&rgid, &egid, &sgid) == 0) { Error: COMPILER_WARNING (CWE-252): [#def2] sssd-2.12.0/src/providers/ipa/selinux_child.c:333:9: warning[-Wunused-result]: ignoring return value of ‘setresgid’ declared with attribute ‘warn_unused_result’ # 333 | setresgid(sgid, sgid, sgid); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 331| } # 332| if (getresgid(&rgid, &egid, &sgid) == 0) { # 333|-> setresgid(sgid, sgid, sgid); # 334| } # 335| Error: GCC_ANALYZER_WARNING (CWE-404): [#def3] sssd-2.12.0/src/providers/ipa/selinux_child_semanage.c: scope_hint: In function ‘sss_semanage_error_callback’ sssd-2.12.0/src/providers/ipa/selinux_child_semanage.c:54:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’ # 52| # 53| va_start(ap, fmt); # 54|-> sss_vdebug_fn(__FILE__, __LINE__, "libsemanage", level, # 55| APPEND_LINE_FEED, fmt, ap); # 56| va_end(ap); Error: GCC_ANALYZER_WARNING (CWE-775): [#def4] sssd-2.12.0/src/util/util.h:54: included_from: Included from here. sssd-2.12.0/src/providers/be_netlink.c:37: included_from: Included from here. sssd-2.12.0/src/providers/be_netlink.c: scope_hint: In function ‘has_ethernet_encapsulation’ sssd-2.12.0/src/util/atomic_io.h:37:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&type_path, 0)’ sssd-2.12.0/src/providers/be_netlink.c:201:11: note: in expansion of macro ‘sss_atomic_read_s’ sssd-2.12.0/src/util/atomic_io.h:27: included_from: Included from here. sssd-2.12.0/src/providers/be_netlink.c:201:11: note: in expansion of macro ‘sss_atomic_read_s’ sssd-2.12.0/src/providers/be_netlink.c:201:11: note: in expansion of macro ‘sss_atomic_read_s’ # 35| ssize_t sss_atomic_io_s(int fd, void *buf, size_t n, bool do_read); # 36| # 37|-> #define sss_atomic_read_s(fd, buf, n) sss_atomic_io_s(fd, buf, n, true) # 38| #define sss_atomic_write_s(fd, buf, n) sss_atomic_io_s(fd, buf, n, false) # 39| Error: GCC_ANALYZER_WARNING (CWE-404): [#def5] sssd-2.12.0/src/util/debug.c: scope_hint: In function 'journal_send' sssd-2.12.0/src/util/debug.c:248:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end' sssd-2.12.0/src/util/util.h:58: included_from: Included from here. sssd-2.12.0/src/util/debug.c:37: included_from: Included from here. sssd-2.12.0/src/util/debug.c:288:14: note: in expansion of macro 'DEBUG_IS_SET' # 246| * source code location and other tracking data. # 247| */ # 248|-> res = sd_journal_send_with_location( # 249| code_file, code_line, function, # 250| "MESSAGE=%s", message, Error: GCC_ANALYZER_WARNING (CWE-404): [#def6] sssd-2.12.0/src/util/debug.c: scope_hint: In function 'sss_vdebug_fn' sssd-2.12.0/src/util/debug.c:322:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end' sssd-2.12.0/src/util/debug.c:288:14: note: in expansion of macro 'DEBUG_IS_SET' # 320| /* Emergency fallback, send to STDERR */ # 321| vfprintf(stderr, format, ap_fallback); # 322|-> fflush(stderr); # 323| } # 324| va_end(ap_fallback);
| 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-170.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 | sssd-2.12.0-99.20260113114717866330.pr7262.345.ga0f6f8576 |
| diffbase-store-results-to | /tmp/tmp29ctkls1/sssd-2.12.0-99.20260113114717866330.pr7262.345.ga0f6f8576.tar.xz |
| diffbase-time-created | 2026-01-13 12:11:51 |
| diffbase-time-finished | 2026-01-13 12:22:15 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp29ctkls1/sssd-2.12.0-99.20260113114717866330.pr7262.345.ga0f6f8576.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp29ctkls1/sssd-2.12.0-99.20260113114717866330.pr7262.345.ga0f6f8576.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-170.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 | sssd-2.12.0-99.20260113112859513909.master.342.g44b938a2f |
| store-results-to | /tmp/tmpqfx0qq6_/sssd-2.12.0-99.20260113112859513909.master.342.g44b938a2f.tar.xz |
| time-created | 2026-01-13 12:01:13 |
| time-finished | 2026-01-13 12:11:37 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpqfx0qq6_/sssd-2.12.0-99.20260113112859513909.master.342.g44b938a2f.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpqfx0qq6_/sssd-2.12.0-99.20260113112859513909.master.342.g44b938a2f.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |