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,
| analyzer-version-clippy | 1.96.0 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.96.0 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| 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-28.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | dbus-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-created | 2026-06-26 15:13:16 |
| diffbase-time-finished | 2026-06-26 15:16:41 |
| diffbase-tool | csmock |
| 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-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-28.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | dbus-broker-37-1.20260626150249760946.pr440.74.g6e46eba |
| store-results-to | /tmp/tmpbg2fxq9y/dbus-broker-37-1.20260626150249760946.pr440.74.g6e46eba.tar.xz |
| time-created | 2026-06-26 15:17:32 |
| time-finished | 2026-06-26 15:20:41 |
| title | Newly introduced findings |
| tool | csmock |
| 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-version | csmock-3.8.7.HEAD-1.el9 |