Task #60767 - fixed.err
back to task #60767download
Error: GCC_ANALYZER_WARNING (CWE-401):
dbus-broker-37/src/launch/config.c: scope_hint: In function ‘config_path_new_dir’
dbus-broker-37/src/launch/config.c:88:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<Uad20>.bustype.name’
dbus-broker-37/src/launch/config.c: scope_hint: In function ‘config_path_new_dir’
# 86| (*filep)->is_dir = true;
# 87|
# 88|-> return r;
# 89| }
# 90|
Error: GCC_ANALYZER_WARNING (CWE-401):
dbus-broker-37/src/launch/config.c: scope_hint: In function ‘config_parser_end_fn’
dbus-broker-37/src/launch/config.c:1034:27: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<Uad20>.bustype.name’
# 1032| case CONFIG_NODE_TYPE:
# 1033| state->current->bustype.name = strdup(state->current->cdata);
# 1034|-> if (!state->current->bustype.name) {
# 1035| state->error = error_origin(-ENOMEM);
# 1036| return;
Error: GCC_ANALYZER_WARNING (CWE-401):
dbus-broker-37/src/launch/config.c:1155:27: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<Uad20>.bustype.name’
# 1153| case CONFIG_NODE_SERVICEDIR: {
# 1154| state->current->servicedir.path = strdup(state->current->cdata);
# 1155|-> if (!state->current->servicedir.path) {
# 1156| state->error = error_origin(-ENOMEM);
# 1157| return;
Error: GCC_ANALYZER_WARNING (CWE-775):
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/src/util/test-sockopt.c:119:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
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/util/test-sockopt.c:113:9: 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/src/util/test-sockopt.c:118:9: note: in expansion of macro ‘c_assert’
# 117| r = pipe2(pipes, O_CLOEXEC | O_DIRECT);
# 118| c_assert(r >= 0);
# 119|-> rpipe_up = pipes[0];
# 120| wpipe_up = pipes[1];
# 121|
Error: GCC_ANALYZER_WARNING (CWE-775):
dbus-broker-37/src/util/test-sockopt.c:150:38: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 526337, 0)’
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/util/test-sockopt.c:150: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/src/util/test-sockopt.c:113:9: 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/src/util/test-sockopt.c:118:9: 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/src/util/test-sockopt.c:125:9: 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/src/util/test-sockopt.c:137:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
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/util/test-sockopt.c:32:9: 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/src/util/test-sockopt.c:35:9: 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/src/util/test-sockopt.c:146: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/src/util/test-sockopt.c:150: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/src/util/test-sockopt.c:150: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/src/util/test-sockopt.c:150:17: note: in expansion of macro ‘c_assert’
# 148| /* wait with exit until told */
# 149| l = read(rpipe_down, &c, 1);
# 150|-> c_assert(l == 1 && c == '!');
# 151|
# 152| _exit(0);
Error: GCC_ANALYZER_WARNING (CWE-775):
dbus-broker-37/src/util/test-sockopt.c:161:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[1]’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:150:29: note: in definition 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/util/test-sockopt.c:161:9: 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/src/util/test-sockopt.c:113:9: 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/src/util/test-sockopt.c:118:9: 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/src/util/test-sockopt.c:125:9: 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/src/util/test-sockopt.c:137:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
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/util/test-sockopt.c:161:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:150:29: note: in definition 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/util/test-sockopt.c:161:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:150:29: note: in definition 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/util/test-sockopt.c:161:9: note: in expansion of macro ‘c_assert’
# 159|
# 160| l = read(rpipe_up, &c, 1);
# 161|-> c_assert(l == 1 && c == '!');
# 162|
# 163| n_address = sizeof(address);
Error: GCC_ANALYZER_WARNING (CWE-775):
dbus-broker-37/src/util/test-sockopt.c:161:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 526337, 0)’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:150:29: note: in definition 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/util/test-sockopt.c:161:9: 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/src/util/test-sockopt.c:113:9: 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/src/util/test-sockopt.c:118:9: 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/src/util/test-sockopt.c:125:9: 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/src/util/test-sockopt.c:137:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
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/util/test-sockopt.c:161:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:150:29: note: in definition 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/util/test-sockopt.c:161:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:150:29: note: in definition 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/util/test-sockopt.c:161:9: note: in expansion of macro ‘c_assert’
# 159|
# 160| l = read(rpipe_up, &c, 1);
# 161|-> c_assert(l == 1 && c == '!');
# 162|
# 163| n_address = sizeof(address);
Error: GCC_ANALYZER_WARNING (CWE-775):
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:150:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[1]’
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/util/test-sockopt.c:125:9: 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/src/util/test-sockopt.c:113:9: 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/src/util/test-sockopt.c:118:9: 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/src/util/test-sockopt.c:125:9: note: in expansion of macro ‘c_assert’
# 148| */ \
# 149| \
# 150|-> if (_x) \
# 151| C_VAR(b, _uniq) = 1; \
# 152| else \
Error: GCC_ANALYZER_WARNING (CWE-775):
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:150:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 526337, 0)’
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/util/test-sockopt.c:137:9: 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/src/util/test-sockopt.c:113:9: 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/src/util/test-sockopt.c:118:9: 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/src/util/test-sockopt.c:125:9: 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/src/util/test-sockopt.c:137:9: note: in expansion of macro ‘c_assert’
# 148| */ \
# 149| \
# 150|-> if (_x) \
# 151| C_VAR(b, _uniq) = 1; \
# 152| else \
Error: GCC_ANALYZER_WARNING (CWE-1341):
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-unix.h:62:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘pipes[1]’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
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/util/test-sockopt.c:113:9: 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/src/util/test-sockopt.c:118:9: 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/src/util/test-sockopt.c:125:9: 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/src/util/test-sockopt.c:137:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:768:17: note: in definition of macro ‘C_DEFINE_DIRECT_CLEANUP’
# 60| static inline int c_close(int fd) {
# 61| if (fd >= 0)
# 62|-> close(fd);
# 63| return -1;
# 64| }
Error: GCC_ANALYZER_WARNING (CWE-1341):
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-unix.h:62:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘rpipe_down’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
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/util/test-sockopt.c:113:9: 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/src/util/test-sockopt.c:118:9: 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/src/util/test-sockopt.c:125:9: 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/src/util/test-sockopt.c:137:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:768:17: note: in definition of macro ‘C_DEFINE_DIRECT_CLEANUP’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:768:17: note: in definition of macro ‘C_DEFINE_DIRECT_CLEANUP’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:768:17: note: in definition of macro ‘C_DEFINE_DIRECT_CLEANUP’
# 60| static inline int c_close(int fd) {
# 61| if (fd >= 0)
# 62|-> close(fd);
# 63| return -1;
# 64| }
Error: GCC_ANALYZER_WARNING (CWE-1341):
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-unix.h:62:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘rpipe_up’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
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/util/test-sockopt.c:113:9: 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/src/util/test-sockopt.c:118:9: 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/src/util/test-sockopt.c:125:9: 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/src/util/test-sockopt.c:137:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
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/util/test-sockopt.c:161:9: 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/src/util/test-sockopt.c:165:9: 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/src/util/test-sockopt.c:173:9: note: in expansion of macro ‘c_assert’
dbus-broker-37/src/util/test-sockopt.c: scope_hint: In function ‘test_peerpidfd’
dbus-broker-37/subprojects/libcstdaux-1/src/c-stdaux-generic.h:768:17: note: in definition of macro ‘C_DEFINE_DIRECT_CLEANUP’
# 60| static inline int c_close(int fd) {
# 61| if (fd >= 0)
# 62|-> close(fd);
# 63| return -1;
# 64| }