Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
dbus-broker-37/src/bus/activation.c: scope_hint: In function ‘activation_timeout_rearm’
dbus-broker-37/src/bus/activation.c:129:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘broker’
dbus-broker-37/src/bus/activation.c: scope_hint: In function ‘activation_timeout_rearm’
dbus-broker-37/src/bus/activation.c: scope_hint: In function ‘activation_timeout_rearm’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:136:18: note: in definition of macro ‘C_INTERNAL_EXPR_ASSERT’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:295:9: note: in expansion of macro ‘C_EXPR_ASSERT’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:172:25: note: in expansion of macro ‘C_CONTAINER_OF’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:165:38: note: in expansion of macro ‘C_INTERNAL_CC_MACRO1’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:293:46: note: in expansion of macro ‘C_CC_MACRO1’
dbus-broker-37/src/broker/broker.h:64:16: note: in expansion of macro ‘c_container_of’
dbus-broker-37/src/bus/activation.c: scope_hint: In function ‘activation_timeout_rearm’
#  127|           Activation *head;
#  128|   
#  129|->         if (broker->activation_timer_fd < 0)
#  130|                   return 0;
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
dbus-broker-37/src/bus/activation.c: scope_hint: In function ‘activation_timeout_dispatch’
dbus-broker-37/src/bus/activation.c:162:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:136:18: note: in definition of macro ‘C_INTERNAL_EXPR_ASSERT’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:295:9: note: in expansion of macro ‘C_EXPR_ASSERT’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:172:25: note: in expansion of macro ‘C_CONTAINER_OF’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:165:38: note: in expansion of macro ‘C_INTERNAL_CC_MACRO1’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:293:46: note: in expansion of macro ‘C_CC_MACRO1’
dbus-broker-37/src/bus/activation.c:149:26: note: in expansion of macro ‘c_container_of’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux.h:43: included_from: Included from here.
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:134:30: note: in expansion of macro ‘_c_internal_boolean_expr_’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:171:53: note: in expansion of macro ‘_c_boolean_expr_’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:169:24: note: in expansion of macro ‘_c_internal_likely_’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:327:17: note: in expansion of macro ‘_c_likely_’
dbus-broker-37/src/bus/activation.c:156:9: note: in expansion of macro ‘c_assert’
#  160|            * cached event, or the dispatcher busy-loops on the ready-list.
#  161|            */
#  162|->         l = read(broker->activation_timer_fd, &v, sizeof(v));
#  163|           if (l < 0) {
#  164|                   if (errno == EAGAIN) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
dbus-broker-37/src/bus/activation.c: scope_hint: In function ‘activation_timeout_arm’
dbus-broker-37/src/bus/activation.c:242:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:136:18: note: in definition of macro ‘C_INTERNAL_EXPR_ASSERT’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:295:9: note: in expansion of macro ‘C_EXPR_ASSERT’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:172:25: note: in expansion of macro ‘C_CONTAINER_OF’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:165:38: note: in expansion of macro ‘C_INTERNAL_CC_MACRO1’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-gnuc.h:293:46: note: in expansion of macro ‘C_CC_MACRO1’
dbus-broker-37/src/broker/broker.h:64:16: note: in expansion of macro ‘c_container_of’
dbus-broker-37/src/bus/activation.c: scope_hint: In function ‘activation_timeout_arm’
#  240|   
#  241|           /* timeout disabled: no timerfd was created, nothing to arm */
#  242|->         if (broker->activation_timer_fd < 0)
#  243|                   return 0;
#  244|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
dbus-broker-37/test/dbus/test-driver.c: scope_hint: In function ‘test_activation_timeout’
dbus-broker-37/test/dbus/test-driver.c:934:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524288)’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux.h:43: included_from: Included from here.
dbus-broker-37/test/dbus/test-driver.c:6: included_from: Included from here.
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:134:30: note: in expansion of macro ‘_c_internal_boolean_expr_’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:171:53: note: in expansion of macro ‘_c_boolean_expr_’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:169:24: note: in expansion of macro ‘_c_internal_likely_’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:327:17: note: in expansion of macro ‘_c_likely_’
dbus-broker-37/test/dbus/test-driver.c:932:17: note: in expansion of macro ‘c_assert’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:134:30: note: in expansion of macro ‘_c_internal_boolean_expr_’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:171:53: note: in expansion of macro ‘_c_boolean_expr_’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:169:24: note: in expansion of macro ‘_c_internal_likely_’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:327:17: note: in expansion of macro ‘_c_likely_’
dbus-broker-37/test/dbus/test-driver.c:932:17: note: in expansion of macro ‘c_assert’
#  932|                   c_assert(fd >= 0);
#  933|   
#  934|->                 r = sd_bus_message_new_method_call(bus,
#  935|                                                      &m,
#  936|                                                      UTIL_BROKER_ACTIVATABLE_NAME,

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-28.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.20260624093042741306.main.72.gbde3440
diffbase-store-results-to/tmp/tmpeicwjbvw/dbus-broker-37-1.20260624093042741306.main.72.gbde3440.tar.xz
diffbase-time-created2026-06-26 15:13:16
diffbase-time-finished2026-06-26 15:16:41
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpeicwjbvw/dbus-broker-37-1.20260624093042741306.main.72.gbde3440.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpeicwjbvw/dbus-broker-37-1.20260624093042741306.main.72.gbde3440.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-28.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.20260626150249760946.pr440.74.g6e46eba
store-results-to/tmp/tmpbg2fxq9y/dbus-broker-37-1.20260626150249760946.pr440.74.g6e46eba.tar.xz
time-created2026-06-26 15:17:32
time-finished2026-06-26 15:20:41
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpbg2fxq9y/dbus-broker-37-1.20260626150249760946.pr440.74.g6e46eba.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpbg2fxq9y/dbus-broker-37-1.20260626150249760946.pr440.74.g6e46eba.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9