Error: GCC_ANALYZER_WARNING (CWE-775): [#def1] 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): [#def2] 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): [#def3] 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): [#def4] 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): [#def5] 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);
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.90.0 |
| diffbase-analyzer-version-cppcheck | 2.18.3 |
| diffbase-analyzer-version-gcc | 15.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| 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-138.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.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
| diffbase-project-name | rdma-core-59.0-4.fc44 |
| diffbase-store-results-to | /tmp/tmpxljxt6yi/rdma-core-59.0-4.fc44.tar.xz |
| diffbase-time-created | 2025-10-28 20:34:39 |
| diffbase-time-finished | 2025-10-28 20:39:48 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpxljxt6yi/rdma-core-59.0-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpxljxt6yi/rdma-core-59.0-4.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-138.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | rdma-core-58.0-4.fc43 |
| store-results-to | /tmp/tmpo_ib4kmz/rdma-core-58.0-4.fc43.tar.xz |
| time-created | 2025-10-28 20:28:29 |
| time-finished | 2025-10-28 20:34:02 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpo_ib4kmz/rdma-core-58.0-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpo_ib4kmz/rdma-core-58.0-4.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |