Error: CLANG_WARNING: [#def1] rdma-core-48.0-build/rdma-core-48.0/infiniband-diags/ibnetdiscover.c:391:3: warning[deadcode.DeadStores]: Value stored to 'cap_mask' is never read # 389| # 390| if (!port->node->ports[0]) { # 391|-> cap_mask = 0; # 392| ispeed = 0; # 393| espeed = 0; Error: CLANG_WARNING: [#def2] rdma-core-48.0-build/rdma-core-48.0/infiniband-diags/ibtracert.c:153:2: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 151| } # 152| # 153|-> memset(pi, 0, sizeof(port->portinfo)); # 154| if (!smp_query_via(pi, portid, IB_ATTR_PORT_INFO, 0, timeout, srcport)) # 155| return -1; Error: CLANG_WARNING: [#def3] rdma-core-48.0-build/rdma-core-48.0/infiniband-diags/ibtracert.c:460:6: warning[core.NullDereference]: Access to field 'portguid' results in a dereference of a null pointer (loaded from variable 'port') # 458| static int new_node(Node * node, Port * port, ib_portid_t * path, int dist) # 459| { # 460|-> if (port->portguid == target_portguid) { # 461| node->dist = -1; /* tag as target */ # 462| link_port(port, node); Error: CLANG_WARNING: [#def4] rdma-core-48.0-build/rdma-core-48.0/infiniband-diags/ibtracert.c:657:26: warning[core.NullDereference]: Access to field 'portnum' results in a dereference of a null pointer (loaded from variable 'remoteport') # 655| # 656| remotenode->upnode = node; # 657|-> remotenode->upport = remoteport->portnum; # 658| remoteport->remoteport = port; # 659| Error: GCC_ANALYZER_WARNING (CWE-416): [#def5] rdma-core-48.0-build/rdma-core-48.0/providers/bnxt_re/verbs.c:1019:30: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*qp.jsqq’ # 1017| } # 1018| if (qp->jsqq) { # 1019|-> free(qp->jsqq->hwque); # 1020| free(qp->jsqq); # 1021| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def6] rdma-core-48.0-build/rdma-core-48.0/providers/bnxt_re/verbs.c: scope_hint: In function ‘bnxt_re_free_queue_ptr’ rdma-core-48.0-build/rdma-core-48.0/providers/bnxt_re/verbs.c:1019:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*qp_10(D)->jsqq.hwque’ # 1017| } # 1018| if (qp->jsqq) { # 1019|-> free(qp->jsqq->hwque); # 1020| free(qp->jsqq); # 1021| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def7] rdma-core-48.0-build/rdma-core-48.0/providers/bnxt_re/verbs.c: scope_hint: In function ‘bnxt_re_srq_free_queue_ptr’ rdma-core-48.0-build/rdma-core-48.0/providers/bnxt_re/verbs.c:1839:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘srq’ # 1837| static void bnxt_re_srq_free_queue_ptr(struct bnxt_re_srq *srq) # 1838| { # 1839|-> free(srq->srqq); # 1840| free(srq); # 1841| } Error: GCC_ANALYZER_WARNING (CWE-122): [#def8] rdma-core-48.0-build/rdma-core-48.0/providers/bnxt_re/verbs.c: scope_hint: In function ‘bnxt_re_srq_alloc_queue’ rdma-core-48.0-build/rdma-core-48.0/providers/bnxt_re/verbs.c:1893:45: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow # 1891| for (idx = 0; idx < que->depth; idx++) # 1892| srq->srwrid[idx].next_idx = idx + 1; # 1893|-> srq->srwrid[srq->last_idx].next_idx = -1; # 1894| # 1895| /*TODO: update actual max depth. */ Error: CPPCHECK_WARNING: [#def9] rdma-core-48.0-build/rdma-core-48.0/providers/irdma/uk.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] rdma-core-48.0-build/rdma-core-48.0/providers/mlx5/verbs.c: scope_hint: In function ‘_mlx5dv_create_mkey’ rdma-core-48.0-build/rdma-core-48.0/providers/mlx5/verbs.c:6893:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ rdma-core-48.0-build/rdma-core-48.0/providers/mlx5/verbs.c:41: included_from: Included from here. # 6891| mlx5_destroy_sig_ctx(mkey->sig); # 6892| err_free_mkey: # 6893|-> free(mkey); # 6894| return NULL; # 6895| }
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-112.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | rdma-core-51.0-3.fc41 |
diffbase-store-results-to | /tmp/tmp_m7muhtx/rdma-core-51.0-3.fc41.tar.xz |
diffbase-time-created | 2024-07-03 17:52:46 |
diffbase-time-finished | 2024-07-03 17:59:49 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp_m7muhtx/rdma-core-51.0-3.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp_m7muhtx/rdma-core-51.0-3.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-112.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | rdma-core-48.0-4.fc40 |
store-results-to | /tmp/tmpuqcql5xc/rdma-core-48.0-4.fc40.tar.xz |
time-created | 2024-07-03 17:48:40 |
time-finished | 2024-07-03 17:52:29 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpuqcql5xc/rdma-core-48.0-4.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpuqcql5xc/rdma-core-48.0-4.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |