Task #78369 - fixed.err
back to task #78369download
Error: GCC_ANALYZER_WARNING (CWE-775):
rdma-core-58.0/librdmacm/examples/cmtime.c:220:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listen_sock’
rdma-core-58.0/librdmacm/examples/cmtime.c:914:5: enter_function: entry to ‘main’
rdma-core-58.0/librdmacm/examples/cmtime.c:976:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:981:19: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:982:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:987:15: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:988:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
rdma-core-58.0/librdmacm/examples/cmtime.c:993:17: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:994:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:999:15: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:1000:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:1003:13: call_function: inlined call to ‘is_client’ from ‘main’
rdma-core-58.0/librdmacm/examples/cmtime.c:1003:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:1009:20: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:1009:20: branch_true: following ‘true’ branch (when ‘socktest != 0’)...
rdma-core-58.0/librdmacm/examples/cmtime.c:1010:25: branch_true: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:1010:25: call_function: calling ‘sock_server’ from ‘main’
# 218| ret = bind(*listen_sock, ai->ai_addr, ai->ai_addrlen);
# 219| if (ret) {
# 220|-> perror("bind");
# 221| exit(EXIT_FAILURE);
# 222| }
Error: GCC_ANALYZER_WARNING (CWE-775):
rdma-core-58.0/librdmacm/examples/cmtime.c:226:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listen_sock’
rdma-core-58.0/librdmacm/examples/cmtime.c:914:5: enter_function: entry to ‘main’
rdma-core-58.0/librdmacm/examples/cmtime.c:976:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:981:19: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:982:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:987:15: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:988:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
rdma-core-58.0/librdmacm/examples/cmtime.c:993:17: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:994:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:999:15: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:1000:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:1003:13: call_function: inlined call to ‘is_client’ from ‘main’
rdma-core-58.0/librdmacm/examples/cmtime.c:1003:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:1009:20: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:1009:20: branch_true: following ‘true’ branch (when ‘socktest != 0’)...
rdma-core-58.0/librdmacm/examples/cmtime.c:1010:25: branch_true: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:1010:25: call_function: calling ‘sock_server’ from ‘main’
# 224| ret = listen(*listen_sock, backlog);
# 225| if (ret) {
# 226|-> perror("listen");
# 227| exit(EXIT_FAILURE);
# 228| }
Error: GCC_ANALYZER_WARNING (CWE-775):
rdma-core-58.0/librdmacm/examples/cmtime.c:242:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
rdma-core-58.0/librdmacm/examples/cmtime.c:914:5: enter_function: entry to ‘main’
rdma-core-58.0/librdmacm/examples/cmtime.c:976:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:981:19: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:982:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:987:15: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:988:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
rdma-core-58.0/librdmacm/examples/cmtime.c:993:17: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:994:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:999:15: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:1000:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:1003:13: call_function: inlined call to ‘is_client’ from ‘main’
rdma-core-58.0/librdmacm/examples/cmtime.c:1003:12: branch_false: following ‘false’ branch...
rdma-core-58.0/librdmacm/examples/cmtime.c:1009:20: branch_false: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:1009:20: branch_true: following ‘true’ branch (when ‘socktest != 0’)...
rdma-core-58.0/librdmacm/examples/cmtime.c:1010:25: branch_true: ...to here
rdma-core-58.0/librdmacm/examples/cmtime.c:1010:25: call_function: calling ‘sock_server’ from ‘main’
# 240| printf("Accept sockets\n");
# 241| for (i = 0; i < iter; i++) {
# 242|-> nodes[i].sock = accept(listen_sock, NULL, NULL);
# 243| if (nodes[i].sock < 0) {
# 244| perror("accept");
Error: GCC_ANALYZER_WARNING (CWE-401):
rdma-core-58.0/providers/efa/verbs.c:947:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cq’
rdma-core-58.0/providers/efa/verbs.c:918:12: branch_false: following ‘false’ branch...
rdma-core-58.0/providers/efa/verbs.c:919:14: branch_false: ...to here
rdma-core-58.0/providers/efa/verbs.c:918:13: branch_false: following ‘false’ branch...
rdma-core-58.0/providers/efa/verbs.c:926:13: branch_false: ...to here
rdma-core-58.0/providers/efa/verbs.c:932:14: acquire_memory: allocated here
rdma-core-58.0/providers/efa/verbs.c:934:12: branch_false: following ‘false’ branch (when ‘cq’ is non-NULL)...
rdma-core-58.0/providers/efa/verbs.c:937:12: branch_false: ...to here
rdma-core-58.0/providers/efa/verbs.c:943:12: branch_false: following ‘false’ branch...
rdma-core-58.0/providers/efa/verbs.c:946:40: branch_false: ...to here
rdma-core-58.0/providers/efa/verbs.c:947:15: danger: ‘cq’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 945|
# 946| attr->cqe = roundup_pow_of_two(attr->cqe);
# 947|-> err = ibv_cmd_create_cq_ex(ibvctx, attr, &cq->verbs_cq,
# 948| &cmd.ibv_cmd, sizeof(cmd),
# 949| &resp.ibv_resp, sizeof(resp), 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
rdma-core-58.0/providers/rxe/rxe.c:433:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cq’
rdma-core-58.0/providers/rxe/rxe.c:424:12: branch_false: following ‘false’ branch...
rdma-core-58.0/providers/rxe/rxe.c:429:14: branch_false: ...to here
rdma-core-58.0/providers/rxe/rxe.c:429:14: acquire_memory: allocated here
rdma-core-58.0/providers/rxe/rxe.c:430:12: branch_false: following ‘false’ branch (when ‘cq’ is non-NULL)...
rdma-core-58.0/providers/rxe/rxe.c:433:15: branch_false: ...to here
rdma-core-58.0/providers/rxe/rxe.c:433:15: danger: ‘cq’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 431| goto err;
# 432|
# 433|-> ret = ibv_cmd_create_cq_ex(context, attr, &cq->vcq,
# 434| NULL, 0,
# 435| &resp.ibv_resp, sizeof(resp), 0);