Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
dbus-broker-37/src/util/sockopt.c: scope_hint: In function ‘sockopt_get_peergroups’
dbus-broker-37/src/util/sockopt.c:86:24: warning[-Wunused-variable]: unused variable ‘i’
#   86 |         int r, n_gids, i, j;
#      |                        ^
#   84|           _c_cleanup_(c_freep) gid_t *gids = NULL;
#   85|           socklen_t socklen;
#   86|->         int r, n_gids, i, j;
#   87|           void *tmp;
#   88|   

Error: CPPCHECK_WARNING (CWE-457): [#def2]
dbus-broker-37/src/util/sockopt.c:135: error[uninitvar]: Uninitialized variable: j
#  133|                                           gids = tmp;
#  134|                           }
#  135|->                         n_gids = j + 1;
#  136|   
#  137|                           if (gidsp) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
dbus-broker-37/src/util/sockopt.c: scope_hint: In function ‘sockopt_get_peergroups’
dbus-broker-37/src/util/sockopt.c:135:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘j’
#  133|                                           gids = tmp;
#  134|                           }
#  135|->                         n_gids = j + 1;
#  136|   
#  137|                           if (gidsp) {

Error: CPPCHECK_WARNING (CWE-401): [#def4]
dbus-broker-37/src/util/sockopt.c:163: error[memleak]: Memory leak: gids
#  161|                                                "resolution using nss.\n");
#  162|                           if (r)
#  163|->                                 return error_fold(r);
#  164|                   }
#  165|           }

Error: CPPCHECK_WARNING (CWE-401): [#def5]
dbus-broker-37/src/util/sockopt.c:184: error[memleak]: Memory leak: gids
#  182|                   passwd = getpwuid(uid);
#  183|                   if (!passwd)
#  184|->                         return error_origin(-errno);
#  185|   
#  186|                   n_gids = 8;

Scan Properties

analyzer-version-clippy1.96.0
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.96.0
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.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-141.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namedbus-broker-37-1.20260629082923143557.main.76.gaaa9fd6
diffbase-store-results-to/tmp/tmpb5e4akn0/dbus-broker-37-1.20260629082923143557.main.76.gaaa9fd6.tar.xz
diffbase-time-created2026-06-29 16:18:56
diffbase-time-finished2026-06-29 16:22:10
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpb5e4akn0/dbus-broker-37-1.20260629082923143557.main.76.gaaa9fd6.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpb5e4akn0/dbus-broker-37-1.20260629082923143557.main.76.gaaa9fd6.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-141.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namedbus-broker-37-1.20260629160923464360.pr445.78.g35b27bd
store-results-to/tmp/tmp2vk89ab5/dbus-broker-37-1.20260629160923464360.pr445.78.g35b27bd.tar.xz
time-created2026-06-29 16:23:04
time-finished2026-06-29 16:26:06
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmp2vk89ab5/dbus-broker-37-1.20260629160923464360.pr445.78.g35b27bd.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp2vk89ab5/dbus-broker-37-1.20260629160923464360.pr445.78.g35b27bd.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9