Task #124518 - added.err
back to task #124518download
Error: GCC_ANALYZER_WARNING (CWE-476):
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):
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):
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):
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,