Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c: scope_hint: In function 'sdap_add_incomplete_groups'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:71:31: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sysdb_groupnames'
sssd-2.13.0/src/util/util.h:45: included_from: Included from here.
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:24: included_from: Included from here.
#   69|       mi = 0;
#   70|   
#   71|->     for (i=0; sysdb_groupnames[i]; i++) {
#   72|           subdomain = find_domain_by_object_name(domain, sysdb_groupnames[i]);
#   73|           if (subdomain == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
sssd-2.13.0/src/util/util.h:168: included_from: Included from here.
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c: scope_hint: In function 'sdap_initgr_store_group_memberships'
sssd-2.13.0/src/util/dlinklist.h:32:31: warning[-Wanalyzer-null-dereference]: dereference of NULL 'memberships'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:1218:9: note: in expansion of macro 'DLIST_ADD'
sssd-2.13.0/src/util/util.h:58: included_from: Included from here.
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:145:21: note: in expansion of macro 'DEBUG'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:156:25: note: in expansion of macro 'DEBUG'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:190:21: note: in expansion of macro 'DEBUG'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:201:21: note: in expansion of macro 'DEBUG'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:201:21: note: in expansion of macro 'DEBUG'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:201:21: note: in expansion of macro 'DEBUG'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:1218:9: note: in expansion of macro 'DLIST_ADD'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:1218:9: note: in expansion of macro 'DLIST_ADD'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:1218:9: note: in expansion of macro 'DLIST_ADD'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:1218:9: note: in expansion of macro 'DLIST_ADD'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:1218:9: note: in expansion of macro 'DLIST_ADD'
sssd-2.13.0/src/providers/ldap/sdap_async_initgroups.c:1218:9: note: in expansion of macro 'DLIST_ADD'
#   30|       if (!(list)) { \
#   31|           (list) = (p); \
#   32|->         (p)->next = (p)->prev = NULL; \
#   33|       } else { \
#   34|           (list)->prev = (p); \

Scan Properties

analyzer-version-clippy1.93.1
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.93.1
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.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-208.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.20260119.105402.g7a5be1b.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namesssd-2.13.0-99.20260218151837201853.pr8464.54.g884e4f42a
diffbase-store-results-to/tmp/tmpjbayx4bb/sssd-2.13.0-99.20260218151837201853.pr8464.54.g884e4f42a.tar.xz
diffbase-time-created2026-02-18 15:48:29
diffbase-time-finished2026-02-18 15:56:47
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpjbayx4bb/sssd-2.13.0-99.20260218151837201853.pr8464.54.g884e4f42a.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpjbayx4bb/sssd-2.13.0-99.20260218151837201853.pr8464.54.g884e4f42a.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20260128.181932.g41af877-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-208.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namesssd-2.13.0-99.20260218083329559258.master.50.g157194618
store-results-to/tmp/tmp8ukwvcot/sssd-2.13.0-99.20260218083329559258.master.50.g157194618.tar.xz
time-created2026-02-18 15:39:36
time-finished2026-02-18 15:48:14
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmp8ukwvcot/sssd-2.13.0-99.20260218083329559258.master.50.g157194618.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp8ukwvcot/sssd-2.13.0-99.20260218083329559258.master.50.g157194618.src.rpm'
tool-versioncsmock-3.8.3.20260128.181932.g41af877-1.el9