Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/rdma-core-32.0/buildlib/fixup-include/assert.h
Examining data/rdma-core-32.0/buildlib/fixup-include/linux-in.h
Examining data/rdma-core-32.0/buildlib/fixup-include/linux-in6.h
Examining data/rdma-core-32.0/buildlib/fixup-include/netlink-attr.h
Examining data/rdma-core-32.0/buildlib/fixup-include/netlink-msg.h
Examining data/rdma-core-32.0/buildlib/fixup-include/netlink-netlink.h
Examining data/rdma-core-32.0/buildlib/fixup-include/netlink-object-api.h
Examining data/rdma-core-32.0/buildlib/fixup-include/netlink-route-link-vlan.h
Examining data/rdma-core-32.0/buildlib/fixup-include/netlink-route-link.h
Examining data/rdma-core-32.0/buildlib/fixup-include/netlink-route-neighbour.h
Examining data/rdma-core-32.0/buildlib/fixup-include/netlink-route-route.h
Examining data/rdma-core-32.0/buildlib/fixup-include/netlink-route-rtnl.h
Examining data/rdma-core-32.0/buildlib/fixup-include/stdatomic.h
Examining data/rdma-core-32.0/buildlib/fixup-include/sys-random.h
Examining data/rdma-core-32.0/buildlib/fixup-include/systemd-sd-daemon.h
Examining data/rdma-core-32.0/buildlib/fixup-include/valgrind-drd.h
Examining data/rdma-core-32.0/buildlib/fixup-include/valgrind-memcheck.h
Examining data/rdma-core-32.0/buildlib/sparse-include/endian.h
Examining data/rdma-core-32.0/buildlib/sparse-include/pthread.h
Examining data/rdma-core-32.0/buildlib/sparse-include/stdatomic.h
Examining data/rdma-core-32.0/ccan/array_size.h
Examining data/rdma-core-32.0/ccan/bitmap.c
Examining data/rdma-core-32.0/ccan/bitmap.h
Examining data/rdma-core-32.0/ccan/build_assert.h
Examining data/rdma-core-32.0/ccan/check_type.h
Examining data/rdma-core-32.0/ccan/compiler.h
Examining data/rdma-core-32.0/ccan/container_of.h
Examining data/rdma-core-32.0/ccan/ilog.c
Examining data/rdma-core-32.0/ccan/ilog.h
Examining data/rdma-core-32.0/ccan/list.c
Examining data/rdma-core-32.0/ccan/list.h
Examining data/rdma-core-32.0/ccan/minmax.h
Examining data/rdma-core-32.0/ccan/str.c
Examining data/rdma-core-32.0/ccan/str.h
Examining data/rdma-core-32.0/ccan/str_debug.h
Examining data/rdma-core-32.0/ibacm/include/acm_mad.h
Examining data/rdma-core-32.0/ibacm/include/infiniband/acm_prov.h
Examining data/rdma-core-32.0/ibacm/linux/osd.h
Examining data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c
Examining data/rdma-core-32.0/ibacm/src/acm.c
Examining data/rdma-core-32.0/ibacm/src/acm_util.c
Examining data/rdma-core-32.0/ibacm/src/acm_util.h
Examining data/rdma-core-32.0/ibacm/src/acme.c
Examining data/rdma-core-32.0/ibacm/src/libacm.c
Examining data/rdma-core-32.0/ibacm/src/libacm.h
Examining data/rdma-core-32.0/ibacm/src/parse.c
Examining data/rdma-core-32.0/infiniband-diags/dump_fts.c
Examining data/rdma-core-32.0/infiniband-diags/ibaddr.c
Examining data/rdma-core-32.0/infiniband-diags/ibcacheedit.c
Examining data/rdma-core-32.0/infiniband-diags/ibccconfig.c
Examining data/rdma-core-32.0/infiniband-diags/ibccquery.c
Examining data/rdma-core-32.0/infiniband-diags/ibdiag_common.c
Examining data/rdma-core-32.0/infiniband-diags/ibdiag_common.h
Examining data/rdma-core-32.0/infiniband-diags/ibdiag_sa.c
Examining data/rdma-core-32.0/infiniband-diags/ibdiag_sa.h
Examining data/rdma-core-32.0/infiniband-diags/iblinkinfo.c
Examining data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c
Examining data/rdma-core-32.0/infiniband-diags/ibping.c
Examining data/rdma-core-32.0/infiniband-diags/ibportstate.c
Examining data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c
Examining data/rdma-core-32.0/infiniband-diags/ibroute.c
Examining data/rdma-core-32.0/infiniband-diags/ibsendtrap.c
Examining data/rdma-core-32.0/infiniband-diags/ibstat.c
Examining data/rdma-core-32.0/infiniband-diags/ibsysstat.c
Examining data/rdma-core-32.0/infiniband-diags/ibtracert.c
Examining data/rdma-core-32.0/infiniband-diags/mcm_rereg_test.c
Examining data/rdma-core-32.0/infiniband-diags/perfquery.c
Examining data/rdma-core-32.0/infiniband-diags/saquery.c
Examining data/rdma-core-32.0/infiniband-diags/sminfo.c
Examining data/rdma-core-32.0/infiniband-diags/smpdump.c
Examining data/rdma-core-32.0/infiniband-diags/smpquery.c
Examining data/rdma-core-32.0/infiniband-diags/vendstat.c
Examining data/rdma-core-32.0/iwpmd/iwarp_pm.h
Examining data/rdma-core-32.0/iwpmd/iwarp_pm_common.c
Examining data/rdma-core-32.0/iwpmd/iwarp_pm_helper.c
Examining data/rdma-core-32.0/iwpmd/iwarp_pm_server.c
Examining data/rdma-core-32.0/kernel-boot/rdma_rename.c
Examining data/rdma-core-32.0/kernel-headers/kern-abi.c
Examining data/rdma-core-32.0/kernel-headers/rdma/bnxt_re-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/cxgb4-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/efa-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/hfi/hfi1_ioctl.h
Examining data/rdma-core-32.0/kernel-headers/rdma/hfi/hfi1_user.h
Examining data/rdma-core-32.0/kernel-headers/rdma/hns-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/i40iw-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/ib_user_ioctl_cmds.h
Examining data/rdma-core-32.0/kernel-headers/rdma/ib_user_ioctl_verbs.h
Examining data/rdma-core-32.0/kernel-headers/rdma/ib_user_mad.h
Examining data/rdma-core-32.0/kernel-headers/rdma/ib_user_sa.h
Examining data/rdma-core-32.0/kernel-headers/rdma/ib_user_verbs.h
Examining data/rdma-core-32.0/kernel-headers/rdma/mlx4-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/mlx5-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/mlx5_user_ioctl_cmds.h
Examining data/rdma-core-32.0/kernel-headers/rdma/mlx5_user_ioctl_verbs.h
Examining data/rdma-core-32.0/kernel-headers/rdma/mthca-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/ocrdma-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/qedr-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/rdma_netlink.h
Examining data/rdma-core-32.0/kernel-headers/rdma/rdma_user_cm.h
Examining data/rdma-core-32.0/kernel-headers/rdma/rdma_user_ioctl.h
Examining data/rdma-core-32.0/kernel-headers/rdma/rdma_user_ioctl_cmds.h
Examining data/rdma-core-32.0/kernel-headers/rdma/rdma_user_rxe.h
Examining data/rdma-core-32.0/kernel-headers/rdma/rvt-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/siw-abi.h
Examining data/rdma-core-32.0/kernel-headers/rdma/vmw_pvrdma-abi.h
Examining data/rdma-core-32.0/libibmad/bm.c
Examining data/rdma-core-32.0/libibmad/cc.c
Examining data/rdma-core-32.0/libibmad/dump.c
Examining data/rdma-core-32.0/libibmad/fields.c
Examining data/rdma-core-32.0/libibmad/gs.c
Examining data/rdma-core-32.0/libibmad/iba_types.h
Examining data/rdma-core-32.0/libibmad/mad.c
Examining data/rdma-core-32.0/libibmad/mad.h
Examining data/rdma-core-32.0/libibmad/mad_internal.h
Examining data/rdma-core-32.0/libibmad/mad_osd.h
Examining data/rdma-core-32.0/libibmad/portid.c
Examining data/rdma-core-32.0/libibmad/register.c
Examining data/rdma-core-32.0/libibmad/resolve.c
Examining data/rdma-core-32.0/libibmad/rpc.c
Examining data/rdma-core-32.0/libibmad/sa.c
Examining data/rdma-core-32.0/libibmad/serv.c
Examining data/rdma-core-32.0/libibmad/smp.c
Examining data/rdma-core-32.0/libibmad/vendor.c
Examining data/rdma-core-32.0/libibnetdisc/chassis.c
Examining data/rdma-core-32.0/libibnetdisc/chassis.h
Examining data/rdma-core-32.0/libibnetdisc/ibnetdisc.c
Examining data/rdma-core-32.0/libibnetdisc/ibnetdisc.h
Examining data/rdma-core-32.0/libibnetdisc/ibnetdisc_cache.c
Examining data/rdma-core-32.0/libibnetdisc/ibnetdisc_osd.h
Examining data/rdma-core-32.0/libibnetdisc/internal.h
Examining data/rdma-core-32.0/libibnetdisc/query_smp.c
Examining data/rdma-core-32.0/libibnetdisc/tests/testleaks.c
Examining data/rdma-core-32.0/libibumad/sysfs.c
Examining data/rdma-core-32.0/libibumad/sysfs.h
Examining data/rdma-core-32.0/libibumad/tests/umad_compile_test.c
Examining data/rdma-core-32.0/libibumad/tests/umad_reg2_compat.c
Examining data/rdma-core-32.0/libibumad/tests/umad_register2.c
Examining data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c
Examining data/rdma-core-32.0/libibumad/umad.c
Examining data/rdma-core-32.0/libibumad/umad.h
Examining data/rdma-core-32.0/libibumad/umad_cm.h
Examining data/rdma-core-32.0/libibumad/umad_sa.h
Examining data/rdma-core-32.0/libibumad/umad_sa_mcm.h
Examining data/rdma-core-32.0/libibumad/umad_sm.h
Examining data/rdma-core-32.0/libibumad/umad_str.c
Examining data/rdma-core-32.0/libibumad/umad_str.h
Examining data/rdma-core-32.0/libibumad/umad_types.h
Examining data/rdma-core-32.0/libibverbs/all_providers.c
Examining data/rdma-core-32.0/libibverbs/arch.h
Examining data/rdma-core-32.0/libibverbs/cmd.c
Examining data/rdma-core-32.0/libibverbs/cmd_ah.c
Examining data/rdma-core-32.0/libibverbs/cmd_counters.c
Examining data/rdma-core-32.0/libibverbs/cmd_cq.c
Examining data/rdma-core-32.0/libibverbs/cmd_device.c
Examining data/rdma-core-32.0/libibverbs/cmd_dm.c
Examining data/rdma-core-32.0/libibverbs/cmd_fallback.c
Examining data/rdma-core-32.0/libibverbs/cmd_flow.c
Examining data/rdma-core-32.0/libibverbs/cmd_flow_action.c
Examining data/rdma-core-32.0/libibverbs/cmd_ioctl.c
Examining data/rdma-core-32.0/libibverbs/cmd_ioctl.h
Examining data/rdma-core-32.0/libibverbs/cmd_mr.c
Examining data/rdma-core-32.0/libibverbs/cmd_mw.c
Examining data/rdma-core-32.0/libibverbs/cmd_pd.c
Examining data/rdma-core-32.0/libibverbs/cmd_qp.c
Examining data/rdma-core-32.0/libibverbs/cmd_rwq_ind.c
Examining data/rdma-core-32.0/libibverbs/cmd_srq.c
Examining data/rdma-core-32.0/libibverbs/cmd_wq.c
Examining data/rdma-core-32.0/libibverbs/cmd_write.h
Examining data/rdma-core-32.0/libibverbs/cmd_xrcd.c
Examining data/rdma-core-32.0/libibverbs/compat-1_0.c
Examining data/rdma-core-32.0/libibverbs/device.c
Examining data/rdma-core-32.0/libibverbs/driver.h
Examining data/rdma-core-32.0/libibverbs/dummy_ops.c
Examining data/rdma-core-32.0/libibverbs/dynamic_driver.c
Examining data/rdma-core-32.0/libibverbs/enum_strs.c
Examining data/rdma-core-32.0/libibverbs/examples/asyncwatch.c
Examining data/rdma-core-32.0/libibverbs/examples/device_list.c
Examining data/rdma-core-32.0/libibverbs/examples/devinfo.c
Examining data/rdma-core-32.0/libibverbs/examples/pingpong.c
Examining data/rdma-core-32.0/libibverbs/examples/pingpong.h
Examining data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c
Examining data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c
Examining data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c
Examining data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c
Examining data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c
Examining data/rdma-core-32.0/libibverbs/ibdev_nl.c
Examining data/rdma-core-32.0/libibverbs/ibverbs.h
Examining data/rdma-core-32.0/libibverbs/init.c
Examining data/rdma-core-32.0/libibverbs/kern-abi.h
Examining data/rdma-core-32.0/libibverbs/marshall.c
Examining data/rdma-core-32.0/libibverbs/marshall.h
Examining data/rdma-core-32.0/libibverbs/memory.c
Examining data/rdma-core-32.0/libibverbs/neigh.c
Examining data/rdma-core-32.0/libibverbs/neigh.h
Examining data/rdma-core-32.0/libibverbs/opcode.h
Examining data/rdma-core-32.0/libibverbs/sa-kern-abi.h
Examining data/rdma-core-32.0/libibverbs/sa.h
Examining data/rdma-core-32.0/libibverbs/static_driver.c
Examining data/rdma-core-32.0/libibverbs/sysfs.c
Examining data/rdma-core-32.0/libibverbs/tm_types.h
Examining data/rdma-core-32.0/libibverbs/verbs.c
Examining data/rdma-core-32.0/libibverbs/verbs.h
Examining data/rdma-core-32.0/libibverbs/verbs_api.h
Examining data/rdma-core-32.0/librdmacm/acm.c
Examining data/rdma-core-32.0/librdmacm/acm.h
Examining data/rdma-core-32.0/librdmacm/addrinfo.c
Examining data/rdma-core-32.0/librdmacm/cma.c
Examining data/rdma-core-32.0/librdmacm/cma.h
Examining data/rdma-core-32.0/librdmacm/examples/cmatose.c
Examining data/rdma-core-32.0/librdmacm/examples/cmtime.c
Examining data/rdma-core-32.0/librdmacm/examples/common.c
Examining data/rdma-core-32.0/librdmacm/examples/common.h
Examining data/rdma-core-32.0/librdmacm/examples/mckey.c
Examining data/rdma-core-32.0/librdmacm/examples/rcopy.c
Examining data/rdma-core-32.0/librdmacm/examples/rdma_client.c
Examining data/rdma-core-32.0/librdmacm/examples/rdma_server.c
Examining data/rdma-core-32.0/librdmacm/examples/rdma_xclient.c
Examining data/rdma-core-32.0/librdmacm/examples/rdma_xserver.c
Examining data/rdma-core-32.0/librdmacm/examples/riostream.c
Examining data/rdma-core-32.0/librdmacm/examples/rping.c
Examining data/rdma-core-32.0/librdmacm/examples/rstream.c
Examining data/rdma-core-32.0/librdmacm/examples/udaddy.c
Examining data/rdma-core-32.0/librdmacm/examples/udpong.c
Examining data/rdma-core-32.0/librdmacm/ib.h
Examining data/rdma-core-32.0/librdmacm/indexer.c
Examining data/rdma-core-32.0/librdmacm/indexer.h
Examining data/rdma-core-32.0/librdmacm/preload.c
Examining data/rdma-core-32.0/librdmacm/rdma_cma.h
Examining data/rdma-core-32.0/librdmacm/rdma_cma_abi.h
Examining data/rdma-core-32.0/librdmacm/rdma_verbs.h
Examining data/rdma-core-32.0/librdmacm/rsocket.c
Examining data/rdma-core-32.0/librdmacm/rsocket.h
Examining data/rdma-core-32.0/providers/bnxt_re/bnxt_re-abi.h
Examining data/rdma-core-32.0/providers/bnxt_re/db.c
Examining data/rdma-core-32.0/providers/bnxt_re/flush.h
Examining data/rdma-core-32.0/providers/bnxt_re/main.c
Examining data/rdma-core-32.0/providers/bnxt_re/main.h
Examining data/rdma-core-32.0/providers/bnxt_re/memory.c
Examining data/rdma-core-32.0/providers/bnxt_re/memory.h
Examining data/rdma-core-32.0/providers/bnxt_re/verbs.c
Examining data/rdma-core-32.0/providers/bnxt_re/verbs.h
Examining data/rdma-core-32.0/providers/cxgb4/cq.c
Examining data/rdma-core-32.0/providers/cxgb4/cxgb4-abi.h
Examining data/rdma-core-32.0/providers/cxgb4/dev.c
Examining data/rdma-core-32.0/providers/cxgb4/libcxgb4.h
Examining data/rdma-core-32.0/providers/cxgb4/qp.c
Examining data/rdma-core-32.0/providers/cxgb4/t4.h
Examining data/rdma-core-32.0/providers/cxgb4/t4_chip_type.h
Examining data/rdma-core-32.0/providers/cxgb4/t4_pci_id_tbl.h
Examining data/rdma-core-32.0/providers/cxgb4/t4_regs.h
Examining data/rdma-core-32.0/providers/cxgb4/t4fw_api.h
Examining data/rdma-core-32.0/providers/cxgb4/t4fw_ri_api.h
Examining data/rdma-core-32.0/providers/cxgb4/verbs.c
Examining data/rdma-core-32.0/providers/efa/efa-abi.h
Examining data/rdma-core-32.0/providers/efa/efa.c
Examining data/rdma-core-32.0/providers/efa/efa.h
Examining data/rdma-core-32.0/providers/efa/efa_io_defs.h
Examining data/rdma-core-32.0/providers/efa/efadv.h
Examining data/rdma-core-32.0/providers/efa/verbs.c
Examining data/rdma-core-32.0/providers/efa/verbs.h
Examining data/rdma-core-32.0/providers/hfi1verbs/hfi-abi.h
Examining data/rdma-core-32.0/providers/hfi1verbs/hfiverbs.c
Examining data/rdma-core-32.0/providers/hfi1verbs/hfiverbs.h
Examining data/rdma-core-32.0/providers/hfi1verbs/verbs.c
Examining data/rdma-core-32.0/providers/hns/hns_roce_u.c
Examining data/rdma-core-32.0/providers/hns/hns_roce_u.h
Examining data/rdma-core-32.0/providers/hns/hns_roce_u_abi.h
Examining data/rdma-core-32.0/providers/hns/hns_roce_u_buf.c
Examining data/rdma-core-32.0/providers/hns/hns_roce_u_db.c
Examining data/rdma-core-32.0/providers/hns/hns_roce_u_db.h
Examining data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v1.c
Examining data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v1.h
Examining data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.c
Examining data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.h
Examining data/rdma-core-32.0/providers/hns/hns_roce_u_verbs.c
Examining data/rdma-core-32.0/providers/i40iw/i40e_devids.h
Examining data/rdma-core-32.0/providers/i40iw/i40iw-abi.h
Examining data/rdma-core-32.0/providers/i40iw/i40iw_d.h
Examining data/rdma-core-32.0/providers/i40iw/i40iw_osdep.h
Examining data/rdma-core-32.0/providers/i40iw/i40iw_register.h
Examining data/rdma-core-32.0/providers/i40iw/i40iw_status.h
Examining data/rdma-core-32.0/providers/i40iw/i40iw_uk.c
Examining data/rdma-core-32.0/providers/i40iw/i40iw_umain.c
Examining data/rdma-core-32.0/providers/i40iw/i40iw_umain.h
Examining data/rdma-core-32.0/providers/i40iw/i40iw_user.h
Examining data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c
Examining data/rdma-core-32.0/providers/ipathverbs/ipath-abi.h
Examining data/rdma-core-32.0/providers/ipathverbs/ipathverbs.c
Examining data/rdma-core-32.0/providers/ipathverbs/ipathverbs.h
Examining data/rdma-core-32.0/providers/ipathverbs/verbs.c
Examining data/rdma-core-32.0/providers/mlx4/buf.c
Examining data/rdma-core-32.0/providers/mlx4/cq.c
Examining data/rdma-core-32.0/providers/mlx4/dbrec.c
Examining data/rdma-core-32.0/providers/mlx4/mlx4-abi.h
Examining data/rdma-core-32.0/providers/mlx4/mlx4.c
Examining data/rdma-core-32.0/providers/mlx4/mlx4.h
Examining data/rdma-core-32.0/providers/mlx4/mlx4dv.h
Examining data/rdma-core-32.0/providers/mlx4/qp.c
Examining data/rdma-core-32.0/providers/mlx4/srq.c
Examining data/rdma-core-32.0/providers/mlx4/verbs.c
Examining data/rdma-core-32.0/providers/mlx5/bitmap.h
Examining data/rdma-core-32.0/providers/mlx5/buf.c
Examining data/rdma-core-32.0/providers/mlx5/cq.c
Examining data/rdma-core-32.0/providers/mlx5/dbrec.c
Examining data/rdma-core-32.0/providers/mlx5/dr_action.c
Examining data/rdma-core-32.0/providers/mlx5/dr_buddy.c
Examining data/rdma-core-32.0/providers/mlx5/dr_crc32.c
Examining data/rdma-core-32.0/providers/mlx5/dr_dbg.c
Examining data/rdma-core-32.0/providers/mlx5/dr_devx.c
Examining data/rdma-core-32.0/providers/mlx5/dr_domain.c
Examining data/rdma-core-32.0/providers/mlx5/dr_icm_pool.c
Examining data/rdma-core-32.0/providers/mlx5/dr_matcher.c
Examining data/rdma-core-32.0/providers/mlx5/dr_rule.c
Examining data/rdma-core-32.0/providers/mlx5/dr_send.c
Examining data/rdma-core-32.0/providers/mlx5/dr_ste.c
Examining data/rdma-core-32.0/providers/mlx5/dr_ste.h
Examining data/rdma-core-32.0/providers/mlx5/dr_ste_v0.c
Examining data/rdma-core-32.0/providers/mlx5/dr_ste_v1.c
Examining data/rdma-core-32.0/providers/mlx5/dr_table.c
Examining data/rdma-core-32.0/providers/mlx5/mlx5-abi.h
Examining data/rdma-core-32.0/providers/mlx5/mlx5.c
Examining data/rdma-core-32.0/providers/mlx5/mlx5.h
Examining data/rdma-core-32.0/providers/mlx5/mlx5_api.h
Examining data/rdma-core-32.0/providers/mlx5/mlx5_ifc.h
Examining data/rdma-core-32.0/providers/mlx5/mlx5dv.h
Examining data/rdma-core-32.0/providers/mlx5/mlx5dv_dr.h
Examining data/rdma-core-32.0/providers/mlx5/qp.c
Examining data/rdma-core-32.0/providers/mlx5/srq.c
Examining data/rdma-core-32.0/providers/mlx5/verbs.c
Examining data/rdma-core-32.0/providers/mlx5/wqe.h
Examining data/rdma-core-32.0/providers/mthca/ah.c
Examining data/rdma-core-32.0/providers/mthca/buf.c
Examining data/rdma-core-32.0/providers/mthca/cq.c
Examining data/rdma-core-32.0/providers/mthca/doorbell.h
Examining data/rdma-core-32.0/providers/mthca/memfree.c
Examining data/rdma-core-32.0/providers/mthca/mthca-abi.h
Examining data/rdma-core-32.0/providers/mthca/mthca.c
Examining data/rdma-core-32.0/providers/mthca/mthca.h
Examining data/rdma-core-32.0/providers/mthca/qp.c
Examining data/rdma-core-32.0/providers/mthca/srq.c
Examining data/rdma-core-32.0/providers/mthca/verbs.c
Examining data/rdma-core-32.0/providers/mthca/wqe.h
Examining data/rdma-core-32.0/providers/ocrdma/ocrdma_abi.h
Examining data/rdma-core-32.0/providers/ocrdma/ocrdma_main.c
Examining data/rdma-core-32.0/providers/ocrdma/ocrdma_main.h
Examining data/rdma-core-32.0/providers/ocrdma/ocrdma_verbs.c
Examining data/rdma-core-32.0/providers/qedr/common_hsi.h
Examining data/rdma-core-32.0/providers/qedr/qelr.h
Examining data/rdma-core-32.0/providers/qedr/qelr_abi.h
Examining data/rdma-core-32.0/providers/qedr/qelr_chain.c
Examining data/rdma-core-32.0/providers/qedr/qelr_chain.h
Examining data/rdma-core-32.0/providers/qedr/qelr_hsi.h
Examining data/rdma-core-32.0/providers/qedr/qelr_hsi_rdma.h
Examining data/rdma-core-32.0/providers/qedr/qelr_main.c
Examining data/rdma-core-32.0/providers/qedr/qelr_verbs.c
Examining data/rdma-core-32.0/providers/qedr/qelr_verbs.h
Examining data/rdma-core-32.0/providers/qedr/rdma_common.h
Examining data/rdma-core-32.0/providers/qedr/roce_common.h
Examining data/rdma-core-32.0/providers/rxe/rxe-abi.h
Examining data/rdma-core-32.0/providers/rxe/rxe.c
Examining data/rdma-core-32.0/providers/rxe/rxe.h
Examining data/rdma-core-32.0/providers/rxe/rxe_queue.h
Examining data/rdma-core-32.0/providers/siw/siw.c
Examining data/rdma-core-32.0/providers/siw/siw.h
Examining data/rdma-core-32.0/providers/siw/siw_abi.h
Examining data/rdma-core-32.0/providers/vmw_pvrdma/cq.c
Examining data/rdma-core-32.0/providers/vmw_pvrdma/pvrdma-abi.h
Examining data/rdma-core-32.0/providers/vmw_pvrdma/pvrdma.h
Examining data/rdma-core-32.0/providers/vmw_pvrdma/pvrdma_main.c
Examining data/rdma-core-32.0/providers/vmw_pvrdma/pvrdma_ring.h
Examining data/rdma-core-32.0/providers/vmw_pvrdma/qp.c
Examining data/rdma-core-32.0/providers/vmw_pvrdma/verbs.c
Examining data/rdma-core-32.0/rdma-ndd/rdma-ndd.c
Examining data/rdma-core-32.0/srp_daemon/srp_daemon.c
Examining data/rdma-core-32.0/srp_daemon/srp_daemon.h
Examining data/rdma-core-32.0/srp_daemon/srp_handle_traps.c
Examining data/rdma-core-32.0/srp_daemon/srp_ib_types.h
Examining data/rdma-core-32.0/srp_daemon/srp_sync.c
Examining data/rdma-core-32.0/util/cl_map.c
Examining data/rdma-core-32.0/util/cl_qmap.h
Examining data/rdma-core-32.0/util/compiler.h
Examining data/rdma-core-32.0/util/mmio.c
Examining data/rdma-core-32.0/util/mmio.h
Examining data/rdma-core-32.0/util/node_name_map.c
Examining data/rdma-core-32.0/util/node_name_map.h
Examining data/rdma-core-32.0/util/open_cdev.c
Examining data/rdma-core-32.0/util/rdma_nl.c
Examining data/rdma-core-32.0/util/rdma_nl.h
Examining data/rdma-core-32.0/util/symver.h
Examining data/rdma-core-32.0/util/udma_barrier.h
Examining data/rdma-core-32.0/util/util.c
Examining data/rdma-core-32.0/util/util.h

FINAL RESULTS:

data/rdma-core-32.0/kernel-boot/rdma_rename.c:255:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink(p->pcidev, buf, sizeof(buf)-1);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:371:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink(subsystem, buf, sizeof(buf)-1);
data/rdma-core-32.0/ibacm/include/infiniband/acm_prov.h:93:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2599:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ep->id_string, "%s-%d-0x%x", port->dev->verbs->device->name,
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2639:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ep->id_string, "%s-%d-0x%x",
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2986:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(route_data_file, value);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2990:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(addr_data_file, value);
data/rdma-core-32.0/ibacm/src/acm.c:244:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(flog, format, args);
data/rdma-core-32.0/ibacm/src/acm.c:630:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(addr.unx.sun_path, IBACM_IBACME_SERVER_PATH);
data/rdma-core-32.0/ibacm/src/acm.c:2062:12:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (!(f = popen(acme, "r"))) {
data/rdma-core-32.0/ibacm/src/acm.c:3188:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(log_file, value);
data/rdma-core-32.0/ibacm/src/acm.c:3192:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(lock_file, value);
data/rdma-core-32.0/ibacm/src/acm.c:3208:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(prov_lib_path, value);
data/rdma-core-32.0/ibacm/src/acm_util.h:41:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(format, ## __VA_ARGS__)
data/rdma-core-32.0/ibacm/src/acm_util.h:43:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(format, ## __VA_ARGS__)
data/rdma-core-32.0/ibacm/src/acme.c:81:47:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define VPRINT(format, ...) do { if (verbose) printf(format, ## __VA_ARGS__ ); } while (0)
data/rdma-core-32.0/ibacm/src/libacm.c:109:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(addr.sun_path, IBACM_IBACME_SERVER_PATH);
data/rdma-core-32.0/ibacm/src/parse.c:58:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(&str_buf[size], buf);
data/rdma-core-32.0/ibacm/src/parse.c:100:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(str_buf, token);
data/rdma-core-32.0/infiniband-diags/ibccconfig.c:228:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(buf, arg);
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:284:24:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
			ibd_mkey = strtoull(getpass("M_Key: "), &endp, 0);
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:422:6:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	n = vsprintf(buf, msg, va);
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:892:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(&buf[spacing+1], n - spacing, format, va_args);
data/rdma-core-32.0/infiniband-diags/ibdiag_common.h:93:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 2, 3)));
data/rdma-core-32.0/infiniband-diags/ibdiag_common.h:117:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 5, 0)));
data/rdma-core-32.0/infiniband-diags/ibdiag_common.h:120:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 5, 6)));
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:162:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "\"%s", "S");
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:165:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "\"%s", "H");
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:168:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "\"%s", "R");
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:171:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "\"%s", "?");
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:230:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(f, "%ssysimgguid=0x%" PRIx64,
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:279:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(f, "%sswitchguid=0x%" PRIx64,
data/rdma-core-32.0/infiniband-diags/ibportstate.c:166:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:170:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:174:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:178:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:182:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:186:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:190:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:194:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:198:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:204:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:209:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:214:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:224:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf+strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:228:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf+strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:232:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf+strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:508:21:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
					val = strtoull(getpass("New M_Key: "),
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:122:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(threshold_str+n, tmp);
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:147:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(threshold_str, str);
data/rdma-core-32.0/infiniband-diags/mcm_rereg_test.c:44:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define info(fmt, ...) fprintf(stderr, "INFO: " fmt, ## __VA_ARGS__ )
data/rdma-core-32.0/infiniband-diags/mcm_rereg_test.c:45:23:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define err(fmt, ...) fprintf(stderr, "ERR: " fmt, ## __VA_ARGS__ )
data/rdma-core-32.0/infiniband-diags/mcm_rereg_test.c:47:23:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define dbg(fmt, ...) fprintf(stderr, "DBG: " fmt, ## __VA_ARGS__ )
data/rdma-core-32.0/infiniband-diags/mcm_rereg_test.c:49:23:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
__attribute__((format(printf, 1, 2))) static inline void dbg(const char *fmt,
data/rdma-core-32.0/infiniband-diags/saquery.c:1560:40:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
		if (!isxdigit(*optarg) && !(optarg = getpass("SM_Key: "))) {
data/rdma-core-32.0/infiniband-diags/saquery.c:1649:40:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
		if (!isxdigit(*optarg) && !(optarg = getpass("P_Key: "))) {
data/rdma-core-32.0/infiniband-diags/saquery.c:1671:40:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
		if (!isxdigit(*optarg) && !(optarg = getpass("Q_Key: "))) {
data/rdma-core-32.0/iwpmd/iwarp_pm.h:100:4:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
 		syslog(LOG_WARNING, str, ##args); } \
data/rdma-core-32.0/kernel-boot/rdma_rename.c:62:25:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
#define pr_err(args...) syslog(LOG_ERR, ##args)
data/rdma-core-32.0/kernel-boot/rdma_rename.c:66:4:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
			syslog(LOG_ERR, ##args);                               \
data/rdma-core-32.0/kernel-boot/rdma_rename.c:145:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (sscanf(pci, "%s.%s", bof, tmp) != 2)
data/rdma-core-32.0/kernel-boot/rdma_rename.c:410:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	ret = sprintf(d->name, "%s", d->prefix);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:422:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(d->name, buf);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:434:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(d->name, buf);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:442:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(d->name, buf);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:450:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(d->name, buf);
data/rdma-core-32.0/kernel-headers/rdma/rdma_user_rxe.h:103:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			__u32	     access;
data/rdma-core-32.0/kernel-headers/rdma/siw-abi.h:120:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		__aligned_u64 access;
data/rdma-core-32.0/libibmad/dump.c:60:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "%" PRIu64, *(uint64_t *) val);
data/rdma-core-32.0/libibmad/dump.c:85:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "%" PRIu64, *(uint64_t *) val);
data/rdma-core-32.0/libibmad/dump.c:109:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "0x%010" PRIx64,
data/rdma-core-32.0/libibmad/dump.c:113:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "0x%012" PRIx64,
data/rdma-core-32.0/libibmad/dump.c:117:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "0x%014" PRIx64,
data/rdma-core-32.0/libibmad/dump.c:121:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "0x%016" PRIx64, *(uint64_t *) val);
data/rdma-core-32.0/libibmad/dump.c:145:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "%010" PRIx64,
data/rdma-core-32.0/libibmad/dump.c:149:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "%012" PRIx64,
data/rdma-core-32.0/libibmad/dump.c:153:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "%014" PRIx64,
data/rdma-core-32.0/libibmad/dump.c:157:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, bufsz, "%016" PRIx64, *(uint64_t *) val);
data/rdma-core-32.0/libibmad/dump.c:385:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "%s", "Extended link speeds disabled");
data/rdma-core-32.0/libibmad/portid.c:66:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				n += sprintf(buf + n, " Gid %s", gid);
data/rdma-core-32.0/libibnetdisc/internal.h:46:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("%s:%u; " fmt, __FILE__, __LINE__, ## __VA_ARGS__); \
data/rdma-core-32.0/libibnetdisc/internal.h:49:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "%s:%u; " fmt, __FILE__, __LINE__, ## __VA_ARGS__)
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:44:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define info(fmt, ...) fprintf(stderr, "INFO: " fmt, ## __VA_ARGS__)
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:45:23:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define err(fmt, ...) fprintf(stderr, "ERR: " fmt, ## __VA_ARGS__)
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:47:23:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define dbg(fmt, ...) fprintf(stderr, "DBG: " fmt, ## __VA_ARGS__)
data/rdma-core-32.0/libibumad/umad.c:521:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(path, sizeof(path), SYS_INFINIBAND_MAD "/umad%d/", umad_id);
data/rdma-core-32.0/libibumad/umad.c:605:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(cas[j++], namelist[i]->d_name);
data/rdma-core-32.0/libibverbs/cmd.c:312:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		   uint64_t hca_va, int access,
data/rdma-core-32.0/libibverbs/cmd.c:324:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access & IBV_ACCESS_ON_DEMAND) {
data/rdma-core-32.0/libibverbs/cmd.c:335:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	cmd->access_flags = access;
data/rdma-core-32.0/libibverbs/cmd.c:347:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	vmr->access = access;
data/rdma-core-32.0/libibverbs/cmd.c:353:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		     size_t length, uint64_t hca_va, int access,
data/rdma-core-32.0/libibverbs/cmd.c:366:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	cmd->access_flags = access;
data/rdma-core-32.0/libibverbs/cmd_dm.c:78:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		      unsigned int access, struct verbs_mr *vmr,
data/rdma-core-32.0/libibverbs/cmd_dm.c:91:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!(access & IBV_ACCESS_ZERO_BASED)) {
data/rdma-core-32.0/libibverbs/cmd_dm.c:104:64:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	fill_attr_in_uint32(cmdb, UVERBS_ATTR_REG_DM_MR_ACCESS_FLAGS, access);
data/rdma-core-32.0/libibverbs/compat-1_0.c:174:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
					  int access);
data/rdma-core-32.0/libibverbs/compat-1_0.c:661:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		   int access)
data/rdma-core-32.0/libibverbs/compat-1_0.c:670:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	real_mr = ibv_reg_mr(pd->real_pd, addr, length, access);
data/rdma-core-32.0/libibverbs/driver.h:95:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int access;
data/rdma-core-32.0/libibverbs/driver.h:377:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				    unsigned int access);
data/rdma-core-32.0/libibverbs/driver.h:379:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				 uint64_t hca_va, int access);
data/rdma-core-32.0/libibverbs/driver.h:382:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			void *addr, size_t length, int access);
data/rdma-core-32.0/libibverbs/driver.h:486:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		   uint64_t hca_va, int access,
data/rdma-core-32.0/libibverbs/driver.h:491:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		     size_t length, uint64_t hca_va, int access,
data/rdma-core-32.0/libibverbs/driver.h:640:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		      unsigned int access, struct verbs_mr *vmr,
data/rdma-core-32.0/libibverbs/driver.h:659:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 4, 5)));
data/rdma-core-32.0/libibverbs/dummy_ops.c:442:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				unsigned int access)
data/rdma-core-32.0/libibverbs/dummy_ops.c:449:31:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			     uint64_t hca_va,  int access)
data/rdma-core-32.0/libibverbs/dummy_ops.c:461:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		    void *addr, size_t length, int access)
data/rdma-core-32.0/libibverbs/dynamic_driver.c:66:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "Warning: couldn't read config file %s.\n",
data/rdma-core-32.0/libibverbs/dynamic_driver.c:86:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr,
data/rdma-core-32.0/libibverbs/dynamic_driver.c:95:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr,
data/rdma-core-32.0/libibverbs/dynamic_driver.c:105:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr,
data/rdma-core-32.0/libibverbs/dynamic_driver.c:124:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr,
data/rdma-core-32.0/libibverbs/dynamic_driver.c:135:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr,
data/rdma-core-32.0/libibverbs/dynamic_driver.c:143:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr,
data/rdma-core-32.0/libibverbs/dynamic_driver.c:204:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, PFX "Warning: couldn't load driver '%s'.\n", name);
data/rdma-core-32.0/libibverbs/dynamic_driver.c:207:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, PFX "Warning: couldn't load driver '%s': %s\n", so_name,
data/rdma-core-32.0/libibverbs/examples/devinfo.c:183:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, ", %s", gid_type_str(type));
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:204:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:222:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:302:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:316:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:195:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(msg, "%04x:%06x:%06x:%s", my_dest[i].lid,
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:220:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		sscanf(msg, "%x:%x:%x:%s", &rem_dest[i].lid, &rem_dest[i].qpn,
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:313:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		sscanf(msg, "%x:%x:%x:%s", &rem_dest[i].lid, &rem_dest[i].qpn,
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:328:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(msg, "%04x:%06x:%06x:%s", my_dest[i].lid,
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:171:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:190:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:270:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:284:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:171:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:189:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:268:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:281:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn,
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:366:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(msg, TERMINATION_FORMAT, TERMINATION_MSG);
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:428:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(ADDR_FORMAT, "local", ctx.lid, ctx.recv_qp[index]->qp_num,
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:433:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(msg, MSG_FORMAT, ctx.lid, ctx.recv_qp[index]->qp_num,
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:465:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	sscanf(msg, MSG_SSCAN, &rem_dest->lid, &rem_dest->recv_qpn,
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:470:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(ADDR_FORMAT, "remote", rem_dest->lid, rem_dest->recv_qpn,
data/rdma-core-32.0/libibverbs/init.c:226:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr,
data/rdma-core-32.0/libibverbs/init.c:345:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX
data/rdma-core-32.0/libibverbs/init.c:367:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "Fatal: couldn't allocate device for %s\n",
data/rdma-core-32.0/libibverbs/init.c:403:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(dev->dev_name,   sysfs_dev->sysfs_name);
data/rdma-core-32.0/libibverbs/init.c:408:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(dev->name,       sysfs_dev->ibdev_name);
data/rdma-core-32.0/libibverbs/init.c:409:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(dev->ibdev_path, sysfs_dev->ibdev_path);
data/rdma-core-32.0/libibverbs/init.c:464:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "Fatal: kernel ABI version %d "
data/rdma-core-32.0/libibverbs/init.c:481:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "Warning: getrlimit(RLIMIT_MEMLOCK) failed.");
data/rdma-core-32.0/libibverbs/init.c:486:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "Warning: RLIMIT_MEMLOCK is %llu bytes.\n"
data/rdma-core-32.0/libibverbs/init.c:593:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX
data/rdma-core-32.0/libibverbs/init.c:609:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "Warning: fork()-safety requested "
data/rdma-core-32.0/libibverbs/memory.c:107:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		n = sscanf(buf, "%" SCNxPTR "-%" SCNxPTR, &range_start, &range_end);
data/rdma-core-32.0/libibverbs/verbs.c:299:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				uint64_t iova, unsigned int access)
data/rdma-core-32.0/libibverbs/verbs.c:302:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	bool odp_mr = access & IBV_ACCESS_ON_DEMAND;
data/rdma-core-32.0/libibverbs/verbs.c:306:3:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		access &= ~IBV_ACCESS_OPTIONAL_RANGE;
data/rdma-core-32.0/libibverbs/verbs.c:311:60:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	mr = get_ops(pd->context)->reg_mr(pd, addr, length, iova, access);
data/rdma-core-32.0/libibverbs/verbs.c:329:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		   size_t length, int access)
data/rdma-core-32.0/libibverbs/verbs.c:331:61:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return ibv_reg_mr_iova2(pd, addr, length, (uintptr_t)addr, access);
data/rdma-core-32.0/libibverbs/verbs.c:336:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			       uint64_t iova, int access)
data/rdma-core-32.0/libibverbs/verbs.c:338:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return ibv_reg_mr_iova2(pd, addr, length, iova, access);
data/rdma-core-32.0/libibverbs/verbs.c:374:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		   size_t length, int access)
data/rdma-core-32.0/libibverbs/verbs.c:397:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access && !(flags & IBV_REREG_MR_CHANGE_ACCESS)) {
data/rdma-core-32.0/libibverbs/verbs.c:413:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
					     length, access);
data/rdma-core-32.0/libibverbs/verbs.c:443:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int access = verbs_get_mr(mr)->access;
data/rdma-core-32.0/libibverbs/verbs.c:446:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!ret && type == IBV_MR_TYPE_MR && !(access & IBV_ACCESS_ON_DEMAND))
data/rdma-core-32.0/libibverbs/verbs.h:2086:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				    unsigned int access);
data/rdma-core-32.0/libibverbs/verbs.h:2492:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				uint64_t iova, unsigned int access);
data/rdma-core-32.0/libibverbs/verbs.h:2498:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			  int access);
data/rdma-core-32.0/libibverbs/verbs.h:2501:73:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
__ibv_reg_mr(struct ibv_pd *pd, void *addr, size_t length, unsigned int access,
data/rdma-core-32.0/libibverbs/verbs.h:2504:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (is_access_const && (access & IBV_ACCESS_OPTIONAL_RANGE) == 0)
data/rdma-core-32.0/libibverbs/verbs.h:2505:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		return ibv_reg_mr(pd, addr, length, access);
data/rdma-core-32.0/libibverbs/verbs.h:2508:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
					access);
data/rdma-core-32.0/libibverbs/verbs.h:2511:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define ibv_reg_mr(pd, addr, length, access)                                   \
data/rdma-core-32.0/libibverbs/verbs.h:2512:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	__ibv_reg_mr(pd, addr, length, access,                                 \
data/rdma-core-32.0/libibverbs/verbs.h:2514:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			     ((access) & IBV_ACCESS_OPTIONAL_RANGE) == 0))
data/rdma-core-32.0/libibverbs/verbs.h:2521:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			       uint64_t iova, int access);
data/rdma-core-32.0/libibverbs/verbs.h:2525:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		  unsigned int access, int is_access_const)
data/rdma-core-32.0/libibverbs/verbs.h:2527:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (is_access_const && (access & IBV_ACCESS_OPTIONAL_RANGE) == 0)
data/rdma-core-32.0/libibverbs/verbs.h:2528:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		return ibv_reg_mr_iova(pd, addr, length, iova, access);
data/rdma-core-32.0/libibverbs/verbs.h:2530:51:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		return ibv_reg_mr_iova2(pd, addr, length, iova, access);
data/rdma-core-32.0/libibverbs/verbs.h:2533:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define ibv_reg_mr_iova(pd, addr, length, iova, access)                        \
data/rdma-core-32.0/libibverbs/verbs.h:2534:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	__ibv_reg_mr_iova(pd, addr, length, iova, access,                      \
data/rdma-core-32.0/libibverbs/verbs.h:2536:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				  ((access) & IBV_ACCESS_OPTIONAL_RANGE) == 0))
data/rdma-core-32.0/libibverbs/verbs.h:2556:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		 size_t length, int access);
data/rdma-core-32.0/libibverbs/verbs.h:2727:37:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			     size_t length, unsigned int access)
data/rdma-core-32.0/libibverbs/verbs.h:2736:52:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return vctx->reg_dm_mr(pd, dm, dm_offset, length, access);
data/rdma-core-32.0/librdmacm/acm.c:58:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		if (fscanf(f, "%" SCNu16, &server_port) != 1)
data/rdma-core-32.0/librdmacm/acm.c:107:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(addr.unx.sun_path, IBACM_SERVER_PATH);
data/rdma-core-32.0/librdmacm/cma.c:2518:4:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
			syslog(LOG_WARNING, PFX "Warning: discarding unmatched "
data/rdma-core-32.0/librdmacm/examples/rcopy.c:456:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(msg->path, dst_file);
data/rdma-core-32.0/librdmacm/examples/rping.c:50:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG_LOG if (debug) printf
data/rdma-core-32.0/librdmacm/examples/rping.c:1032:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		cc = snprintf(cb->start_buf, cb->size, RPING_MSG_FMT, ping);
data/rdma-core-32.0/librdmacm/rsocket.c:538:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		int rc = fscanf(f, fmt, __VA_ARGS__);                          \
data/rdma-core-32.0/librdmacm/rsocket.c:4022:3:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		access |= IBV_ACCESS_REMOTE_WRITE;
data/rdma-core-32.0/librdmacm/rsocket.c:4032:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	iomr->mr = ibv_reg_mr(rs->cm_id->pd, buf, len, access);
data/rdma-core-32.0/providers/bnxt_re/verbs.c:134:31:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			      uint64_t hca_va, int access)
data/rdma-core-32.0/providers/bnxt_re/verbs.c:144:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (ibv_cmd_reg_mr(ibvpd, sva, len, hca_va, access, &mr->vmr, &cmd,
data/rdma-core-32.0/providers/cxgb4/dev.c:248:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "%02x: %016" PRIx64 " %016" PRIx64, i, be64toh(p[0]), be64toh(p[1]));
data/rdma-core-32.0/providers/cxgb4/libcxgb4.h:202:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   uint64_t hca_va, int access);
data/rdma-core-32.0/providers/cxgb4/t4.h:72:32:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
#define PDBG(fmt, args...) do {syslog(LOG_DEBUG, fmt, ##args); } while (0)
data/rdma-core-32.0/providers/cxgb4/verbs.c:113:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   uint64_t hca_va, int access)
data/rdma-core-32.0/providers/cxgb4/verbs.c:128:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   access, &mhp->vmr, &cmd, sizeof(cmd),
data/rdma-core-32.0/providers/efa/verbs.c:200:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			  uint64_t hca_va, int access)
data/rdma-core-32.0/providers/efa/verbs.c:211:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	err = ibv_cmd_reg_mr(ibvpd, sva, len, hca_va, access, &mr->vmr,
data/rdma-core-32.0/providers/hfi1verbs/hfiverbs.h:208:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   uint64_t hca_va, int access);
data/rdma-core-32.0/providers/hfi1verbs/verbs.c:133:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   uint64_t hca_va, int access)
data/rdma-core-32.0/providers/hfi1verbs/verbs.c:144:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = ibv_cmd_reg_mr(pd, addr, length, hca_va, access, vmr, &cmd,
data/rdma-core-32.0/providers/hns/hns_roce_u.c:162:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "Warning: Munmap tptr failed.\n");
data/rdma-core-32.0/providers/hns/hns_roce_u.h:327:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				 uint64_t hca_va, int access);
data/rdma-core-32.0/providers/hns/hns_roce_u.h:329:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			void *addr, size_t length, int access);
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v1.c:111:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, PFX "error cqe!\n");
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v1.c:276:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "can't find qp!\n");
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.c:372:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "failed to modify qp!\n");
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.c:547:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "can't find qp!\n");
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.c:613:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr,
data/rdma-core-32.0/providers/hns/hns_roce_u_verbs.c:122:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				 uint64_t hca_va, int access)
data/rdma-core-32.0/providers/hns/hns_roce_u_verbs.c:143:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = ibv_cmd_reg_mr(pd, addr, length, hca_va, access, vmr, &cmd,
data/rdma-core-32.0/providers/hns/hns_roce_u_verbs.c:154:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			void *addr, size_t length, int access)
data/rdma-core-32.0/providers/hns/hns_roce_u_verbs.c:160:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				access, pd, &cmd, sizeof(cmd), &resp,
data/rdma-core-32.0/providers/i40iw/i40iw_umain.c:155:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: incompatible kernel driver version: %d.  Need version %d\n",
data/rdma-core-32.0/providers/i40iw/i40iw_umain.c:176:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, PFX "%s: failed to allocate context for device.\n", __func__);
data/rdma-core-32.0/providers/i40iw/i40iw_umain.h:159:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			     uint64_t hca_va, int access);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:67:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: query device failed and returned status code: %d\n", __func__, ret);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:153:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			     uint64_t hca_va, int access)
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:165:47:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (ibv_cmd_reg_mr(pd, addr, length, hca_va, access, vmr, &cmd.ibv_cmd,
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:167:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: Failed to register memory\n", __func__);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:267:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to pin memory for CQ\n", __func__);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:277:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to create CQ\n", __func__);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:289:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to initialize CQ, status %d\n", __func__, ret);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:349:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "%s: Error polling CQ, status %d\n", __func__, ret);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:522:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to allocate memory for SQ\n", __func__);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:540:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to pin memory for SQ\n", __func__);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:550:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to create QP, status %d\n", __func__, ret);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:570:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "%s: failed to map push page, errno %d\n", __func__, errno);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:580:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, PFX "%s: failed to map push doorbell, errno %d\n", __func__, errno);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:609:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to create QP, unsupported QP type: 0x%x\n", __func__, attr->qp_type);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:624:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "invalid SQ attributes, max_send_wr=%d max_send_sge=%d max_inline=%d\n",
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:640:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "invalid RQ attributes, max_recv_wr=%d max_recv_sge=%d\n",
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:668:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to allocate memory for SQ work array\n", __func__);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:674:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to allocate memory for RQ work array\n", __func__);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:681:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX "%s: failed to map QP\n", __func__);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:899:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "%s: post work request failed, invalid opcode: 0x%x\n", __func__, ib_wr->opcode);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:943:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "%s: failed to post receives, status %d\n", __func__, ret);
data/rdma-core-32.0/providers/ipathverbs/ipathverbs.h:187:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			    uint64_t hca_va, int access);
data/rdma-core-32.0/providers/ipathverbs/verbs.c:113:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			    uint64_t hca_va, int access)
data/rdma-core-32.0/providers/ipathverbs/verbs.c:124:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = ibv_cmd_reg_mr(pd, addr, length, hca_va, access, vmr, &cmd,
data/rdma-core-32.0/providers/mlx4/cq.c:76:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(PFX "local QP operation err "
data/rdma-core-32.0/providers/mlx4/mlx4.c:150:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX
data/rdma-core-32.0/providers/mlx4/mlx4.c:229:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "Warning: BlueFlame available, "
data/rdma-core-32.0/providers/mlx4/mlx4.h:325:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   uint64_t hca_va, int access);
data/rdma-core-32.0/providers/mlx4/mlx4.h:327:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		  void *addr, size_t length, int access);
data/rdma-core-32.0/providers/mlx4/verbs.c:289:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   uint64_t hca_va, int access)
data/rdma-core-32.0/providers/mlx4/verbs.c:300:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = ibv_cmd_reg_mr(pd, addr, length, hca_va, access, vmr, &cmd,
data/rdma-core-32.0/providers/mlx4/verbs.c:313:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		  size_t length, int access)
data/rdma-core-32.0/providers/mlx4/verbs.c:320:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				access, pd,
data/rdma-core-32.0/providers/mlx5/buf.c:584:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name, "%s_MIN_LOG2_CONTIG_BSIZE", component);
data/rdma-core-32.0/providers/mlx5/cq.c:828:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(fp, PFX "%s: got completion with error:\n",
data/rdma-core-32.0/providers/mlx5/cq.c:832:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(fp, PFX "freezing at poll cq...");
data/rdma-core-32.0/providers/mlx5/mlx5.c:346:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "Warning: can not get local cpu set: failed to open %s\n", fname);
data/rdma-core-32.0/providers/mlx5/mlx5.c:350:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "Warning: can not get local cpu set: failed to read cpu mask\n");
data/rdma-core-32.0/providers/mlx5/mlx5.c:410:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "Warning: my cpu set is too small\n");
data/rdma-core-32.0/providers/mlx5/mlx5.c:412:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "Warning: failed to get my cpu set\n");
data/rdma-core-32.0/providers/mlx5/mlx5.c:658:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PFX
data/rdma-core-32.0/providers/mlx5/mlx5.h:100:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fp, "%s:%d: " format, __func__, __LINE__, ##arg);	\
data/rdma-core-32.0/providers/mlx5/mlx5.h:107:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 3, 4)));
data/rdma-core-32.0/providers/mlx5/mlx5.h:903:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   uint64_t hca_va, int access);
data/rdma-core-32.0/providers/mlx5/mlx5.h:905:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		  size_t length, int access);
data/rdma-core-32.0/providers/mlx5/mlx5dv.h:1274:81:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
mlx5dv_devx_umem_reg(struct ibv_context *ctx, void *addr, size_t size, uint32_t access);
data/rdma-core-32.0/providers/mlx5/verbs.c:606:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = ibv_cmd_reg_mr(pd, addr, length, hca_va, access, &mr->vmr, &cmd,
data/rdma-core-32.0/providers/mlx5/verbs.c:685:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		  void *addr, size_t length, int access)
data/rdma-core-32.0/providers/mlx5/verbs.c:691:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				access, pd, &cmd, sizeof(cmd), &resp,
data/rdma-core-32.0/providers/mlx5/verbs.c:4686:85:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
mlx5dv_devx_umem_reg(struct ibv_context *context, void *addr, size_t size, uint32_t access)
data/rdma-core-32.0/providers/mlx5/verbs.c:4707:62:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	fill_attr_in_uint32(cmd, MLX5_IB_ATTR_DEVX_UMEM_REG_ACCESS, access);
data/rdma-core-32.0/providers/mthca/mthca.h:284:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			    uint64_t hca_va, int access);
data/rdma-core-32.0/providers/mthca/verbs.c:117:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				     int access,
data/rdma-core-32.0/providers/mthca/verbs.c:138:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = ibv_cmd_reg_mr(pd, addr, length, hca_va, access, vmr,
data/rdma-core-32.0/providers/mthca/verbs.c:149:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			    uint64_t hca_va, int access)
data/rdma-core-32.0/providers/mthca/verbs.c:151:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return __mthca_reg_mr(pd, addr, length, hca_va, access, 0);
data/rdma-core-32.0/providers/ocrdma/ocrdma_main.h:47:36:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ocrdma_err(format, arg...) printf(format, ##arg)
data/rdma-core-32.0/providers/ocrdma/ocrdma_main.h:273:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			     uint64_t hca_va, int access);
data/rdma-core-32.0/providers/ocrdma/ocrdma_verbs.c:189:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			     uint64_t hca_va, int access)
data/rdma-core-32.0/providers/ocrdma/ocrdma_verbs.c:200:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (ibv_cmd_reg_mr(pd, addr, len, hca_va, access, &mr->vmr, &cmd,
data/rdma-core-32.0/providers/qedr/qelr.h:53:34:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define qelr_err(format, arg...) printf(format, ##arg)
data/rdma-core-32.0/providers/qedr/qelr.h:78:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(fd, "[%s:%d]" fmt,				\
data/rdma-core-32.0/providers/qedr/qelr.h:87:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fd, "[%s:%d]" fmt,			\
data/rdma-core-32.0/providers/qedr/qelr.h:96:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fd, "[%s:%d]" fmt,			\
data/rdma-core-32.0/providers/qedr/qelr.h:106:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(fd, "[%s:%d]" fmt,			\
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:157:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   uint64_t hca_va, int access)
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:171:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (ibv_cmd_reg_mr(ibpd, addr, len, hca_va, access, &mr->vmr, &cmd,
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:179:32:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		   mr, pd->pd_id, addr, len, access, mr->vmr.ibv_mr.lkey,
data/rdma-core-32.0/providers/qedr/qelr_verbs.h:52:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			   uint64_t hca_va, int access);
data/rdma-core-32.0/providers/rxe/rxe.c:128:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				 uint64_t hca_va, int access)
data/rdma-core-32.0/providers/rxe/rxe.c:139:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = ibv_cmd_reg_mr(pd, addr, length, hca_va, access, vmr, &cmd,
data/rdma-core-32.0/providers/siw/siw.c:100:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				 uint64_t hca_va, int access)
data/rdma-core-32.0/providers/siw/siw.c:111:45:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	rv = ibv_cmd_reg_mr(pd, addr, len, hca_va, access,
data/rdma-core-32.0/providers/vmw_pvrdma/pvrdma.h:286:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			     uint64_t hca_va, int access);
data/rdma-core-32.0/providers/vmw_pvrdma/qp.c:524:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, PFX "invalid post send opcode\n");
data/rdma-core-32.0/providers/vmw_pvrdma/verbs.c:115:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			     uint64_t hca_va, int access)
data/rdma-core-32.0/providers/vmw_pvrdma/verbs.c:126:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = ibv_cmd_reg_mr(pd, addr, length, hca_va, access, vmr, &cmd,
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:79:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static __attribute__((format(printf, 1, 2))) void dbg_log(const char *fmt, ...)
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:129:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(nd_file, sizeof(nd_file), SYS_INFINIBAND "/%s/node_desc",
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:167:3:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		syslog(LOG_ERR, "Failed to open " SYS_INFINIBAND);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:136:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(path, sizeof(path), SRP_DAEMON_LOCK_PREFIX "_%s_%d",
data/rdma-core-32.0/srp_daemon/srp_daemon.c:292:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, args);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:306:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, fmt, args);
data/rdma-core-32.0/srp_daemon/srp_daemon.h:284:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(arg);			\
data/rdma-core-32.0/srp_daemon/srp_daemon.h:287:59:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void pr_debug(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
data/rdma-core-32.0/srp_daemon/srp_daemon.h:288:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void pr_err(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
data/rdma-core-32.0/util/util.h:18:23:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	__good_snprintf(len, snprintf(buf, len, fmt, ##__VA_ARGS__))
data/rdma-core-32.0/ibacm/src/acm.c:3305:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt_long(argc, argv, "DPA:O:", long_opts, NULL)) !=
data/rdma-core-32.0/ibacm/src/acme.c:1038:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "e::f:s:d:vcA::O::D:P::S:C:V")) != -1) {
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:398:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int ch = getopt_long(argc, argv, str_opts, long_opts, NULL);
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:1492:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "fs", long_opts, NULL);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:579:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "v")) >= 0) {
data/rdma-core-32.0/libibmad/mad.c:63:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srandom((int)time(NULL) * getpid());
data/rdma-core-32.0/libibmad/mad.c:64:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		trid = random();
data/rdma-core-32.0/libibnetdisc/tests/testleaks.c:102:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int ch = getopt_long(argc, argv, str_opts, long_opts, NULL);
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:492:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, optstring)) != -1) {
data/rdma-core-32.0/libibverbs/dynamic_driver.c:224:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((env = getenv("RDMAV_DRIVERS"))) {
data/rdma-core-32.0/libibverbs/dynamic_driver.c:228:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		} else if ((env = getenv("IBV_DRIVERS"))) {
data/rdma-core-32.0/libibverbs/examples/asyncwatch.c:109:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "d:h", long_options, NULL);
data/rdma-core-32.0/libibverbs/examples/devinfo.c:698:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "d:i:lv", long_options, NULL);
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:843:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "p:d:i:s:m:r:n:l:eg:oOPtcjN",
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:1023:16:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	my_dest.psn = lrand48() & 0xffffff;
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:693:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "p:d:i:s:m:q:r:n:l:eog:c",
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:845:20:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		my_dest[i].psn = lrand48() & 0xffffff;
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:575:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "p:d:i:s:m:r:n:l:eg:c",
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:714:16:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	my_dest.psn = lrand48() & 0xffffff;
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:596:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "p:d:i:s:r:n:l:eg:c", long_options,
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:712:16:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	my_dest.psn = lrand48() & 0xffffff;
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:421:33:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	ctx.rem_dest[index].recv_psn = lrand48() & 0xffffff;
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:902:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "p:d:i:s:m:n:l:eog:c:", long_options,
data/rdma-core-32.0/libibverbs/init.c:592:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("IBV_SHOW_WARNINGS")) {
data/rdma-core-32.0/libibverbs/init.c:607:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("RDMAV_FORK_SAFE") || getenv("IBV_FORK_SAFE"))
data/rdma-core-32.0/libibverbs/init.c:607:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("RDMAV_FORK_SAFE") || getenv("IBV_FORK_SAFE"))
data/rdma-core-32.0/libibverbs/init.c:613:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_value = getenv("MLX4_DEVICE_FATAL_CLEANUP");
data/rdma-core-32.0/libibverbs/init.c:617:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("RDMAV_ALLOW_DISASSOC_DESTROY"))
data/rdma-core-32.0/libibverbs/memory.c:130:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("RDMAV_HUGEPAGES_SAFE"))
data/rdma-core-32.0/libibverbs/sysfs.c:60:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		env = getenv("SYSFS_PATH");
data/rdma-core-32.0/librdmacm/examples/cmatose.c:653:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "s:b:f:P:c:C:S:t:p:a:m")) != -1) {
data/rdma-core-32.0/librdmacm/examples/cmtime.c:621:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "s:b:c:p:r:t:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/mckey.c:569:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "m:M:sb:c:C:S:p:o")) != -1) {
data/rdma-core-32.0/librdmacm/examples/rcopy.c:576:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "p:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/rcopy.c:604:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "p:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/rdma_client.c:146:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "s:p:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/rdma_server.c:167:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "s:p:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/rdma_xclient.c:140:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "s:p:c:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/rdma_xserver.c:156:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "p:c:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/riostream.c:597:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "s:b:f:B:i:I:C:S:p:T:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/rping.c:1277:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "a:I:Pp:C:S:t:scvVdq")) != -1) {
data/rdma-core-32.0/librdmacm/examples/rstream.c:627:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "s:b:f:B:i:I:C:S:p:k:T:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/udaddy.c:608:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "s:b:c:C:S:t:p:P:f:")) != -1) {
data/rdma-core-32.0/librdmacm/examples/udpong.c:516:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((op = getopt(argc, argv, "s:b:B:C:S:p:T:")) != -1) {
data/rdma-core-32.0/librdmacm/preload.c:359:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	var = getenv("RS_SQ_SIZE");
data/rdma-core-32.0/librdmacm/preload.c:363:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	var = getenv("RS_RQ_SIZE");
data/rdma-core-32.0/librdmacm/preload.c:367:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	var = getenv("RS_INLINE");
data/rdma-core-32.0/librdmacm/preload.c:371:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	var = getenv("RDMAV_FORK_SAFE");
data/rdma-core-32.0/providers/cxgb4/dev.c:423:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *c = getenv("CXGB4_STALL_TIMEOUT");
data/rdma-core-32.0/providers/cxgb4/dev.c:432:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *c = getenv("CXGB4_MA_WR");
data/rdma-core-32.0/providers/cxgb4/dev.c:440:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *c = getenv("T5_ENABLE_WC");
data/rdma-core-32.0/providers/mlx5/buf.c:543:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_value = getenv(name);
data/rdma-core-32.0/providers/mlx5/buf.c:574:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv(name);
data/rdma-core-32.0/providers/mlx5/buf.c:585:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv(name);
data/rdma-core-32.0/providers/mlx5/mlx5.c:334:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_value = getenv("MLX5_LOCAL_CPUS");
data/rdma-core-32.0/providers/mlx5/mlx5.c:431:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_value = getenv("MLX5_STALL_CQ_POLL");
data/rdma-core-32.0/providers/mlx5/mlx5.c:439:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_value = getenv("MLX5_STALL_NUM_LOOP");
data/rdma-core-32.0/providers/mlx5/mlx5.c:443:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_value = getenv("MLX5_STALL_CQ_POLL_MIN");
data/rdma-core-32.0/providers/mlx5/mlx5.c:447:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_value = getenv("MLX5_STALL_CQ_POLL_MAX");
data/rdma-core-32.0/providers/mlx5/mlx5.c:451:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_value = getenv("MLX5_STALL_CQ_INC_STEP");
data/rdma-core-32.0/providers/mlx5/mlx5.c:455:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_value = getenv("MLX5_STALL_CQ_DEC_STEP");
data/rdma-core-32.0/providers/mlx5/mlx5.c:475:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_TOTAL_UUARS");
data/rdma-core-32.0/providers/mlx5/mlx5.c:495:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_DEBUG_FILE");
data/rdma-core-32.0/providers/mlx5/mlx5.c:519:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_DEBUG_MASK");
data/rdma-core-32.0/providers/mlx5/mlx5.c:528:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_FREEZE_ON_ERROR_CQE");
data/rdma-core-32.0/providers/mlx5/mlx5.c:537:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_POST_SEND_PREFER_BF");
data/rdma-core-32.0/providers/mlx5/mlx5.c:548:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_SHUT_UP_BF");
data/rdma-core-32.0/providers/mlx5/mlx5.c:560:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_NUM_LOW_LAT_UUARS");
data/rdma-core-32.0/providers/mlx5/mlx5.c:596:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_SINGLE_THREADED");
data/rdma-core-32.0/providers/mlx5/qp.c:2899:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	e = getenv(key);
data/rdma-core-32.0/providers/mlx5/verbs.c:825:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		env = getenv("MLX5_CQE_SIZE");
data/rdma-core-32.0/providers/mlx5/verbs.c:844:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_SCATTER_TO_CQE");
data/rdma-core-32.0/providers/mlx5/verbs.c:855:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_SRQ_SIGNATURE");
data/rdma-core-32.0/providers/mlx5/verbs.c:866:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_QP_SIGNATURE");
data/rdma-core-32.0/providers/mlx5/verbs.c:3539:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("MLX5_RWQ_SIGNATURE");
data/rdma-core-32.0/providers/qedr/qelr_main.c:127:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("QELR_DEBUG_FILE");
data/rdma-core-32.0/providers/qedr/qelr_main.c:161:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("QELR_DP_LEVEL");
data/rdma-core-32.0/providers/qedr/qelr_main.c:165:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("QELR_DP_MODULE");
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:304:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c = getopt_long(argc, argv, "fh", long_opts, NULL);
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:337:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	g_nd_format = getenv("RDMA_NDD_ND_FORMAT");
data/rdma-core-32.0/srp_daemon/srp_daemon.c:722:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("SYSFS_PATH");
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1707:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, short_opts, long_opts, NULL);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1746:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, short_opts, long_opts, NULL);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:2133:7:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt(argc, argv, "cd:h:v");
data/rdma-core-32.0/ccan/bitmap.h:90:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src, bitmap_sizeof(nbits));
data/rdma-core-32.0/ccan/ilog.c:20:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static UNNEEDED const unsigned char DEBRUIJN_IDX32[32]={
data/rdma-core-32.0/ccan/ilog.c:116:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const unsigned char DEBRUIJN_IDX64[64]={
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char                   name[ACM_MAX_ADDRESS];
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:181:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		      id_string[IBV_SYSFS_NAME_MAX + 11];
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:269:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static __thread char log_data[ACM_MAX_ADDRESS];
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:274:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char route_data_file[128] = ACM_CONF_DIR "/ibacm_route.data";
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:275:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char addr_data_file[128] = ACM_CONF_DIR "/ibacm_hosts.data";
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:302:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest->address, addr, size);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:816:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mad->data, &dest->path, sizeof(dest->path));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:930:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rec->gid, dest->mgid.raw, sizeof(union ibv_gid));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:964:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&msg.resolve_data[1],
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:1236:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&resolve_data->info.path, sa_mad->data,
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:1641:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mad->data, &msg->resolve_data[0].info.path,
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:1713:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rec->src, saddr->info.addr, ACM_MAX_ADDRESS);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:1716:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rec->dest, dest->address, ACM_MAX_ADDRESS);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:1720:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&rec->gid[i], ep->mc_dest[i].address, 16);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:1764:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sip[INET6_ADDRSTRLEN] = {0};
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:1765:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dip[INET6_ADDRSTRLEN] = {0};
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:1915:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(addr, &path->dgid, sizeof path->dgid);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2075:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[128];
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[128];
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2201:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		sl = atoi(p);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2206:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mtu = atoi(p);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2211:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		rate = atoi(p);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2225:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(addr, &net_dlid, sizeof net_dlid);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2228:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(addr, &dgid, sizeof(dgid));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2269:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(route_data_file, "r"))) {
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2292:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[120];
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2293:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[INET6_ADDRSTRLEN], gid[INET6_ADDRSTRLEN];
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2299:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(addr_data_file, "r"))) {
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2319:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(name, &ip_addr, 4);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2322:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(name, &ip_addr, sizeof(ip_addr));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2335:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(name, &ib_addr, sizeof(ib_addr));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2342:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&dest->path.dgid, &ib_addr, 16);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2413:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ep->addr_info[i].info, &addr->info, sizeof(addr->info));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2414:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ep->addr_info[i].addr, addr, sizeof(*addr));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2945:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[120];
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2946:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char opt[32], value[256];
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2949:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(opts_file, "r")))
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2962:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			addr_timeout = atoi(value);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2966:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			route_timeout = atoi(value);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2970:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			timeout = atoi(value);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2972:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			retries = atoi(value);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2974:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			resolve_depth = atoi(value);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2976:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			send_depth = atoi(value);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2978:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			recv_depth = atoi(value);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2980:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			min_mtu = acm_convert_mtu(atoi(value));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2982:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			min_rate = acm_convert_rate(atoi(value));
data/rdma-core-32.0/ibacm/src/acm.c:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		      string_buf[ACM_MAX_ADDRESS];
data/rdma-core-32.0/ibacm/src/acm.c:180:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char def_prov_name[ACM_PROV_NAME_SIZE] = "ibacmp";
data/rdma-core-32.0/ibacm/src/acm.c:192:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static __thread char log_data[ACM_MAX_ADDRESS];
data/rdma-core-32.0/ibacm/src/acm.c:219:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char log_file[128] = IBACM_LOG_FILE;
data/rdma-core-32.0/ibacm/src/acm.c:221:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char lock_file[128] = IBACM_PID_FILE;
data/rdma-core-32.0/ibacm/src/acm.c:226:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char prov_lib_path[256] = IBACM_LIB_PATH;
data/rdma-core-32.0/ibacm/src/acm.c:233:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[20];
data/rdma-core-32.0/ibacm/src/acm.c:260:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(name, addr, addr_size);
data/rdma-core-32.0/ibacm/src/acm.c:283:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(name, "Unknown");
data/rdma-core-32.0/ibacm/src/acm.c:592:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(IBACM_IBACME_PORT_FILE, "w");
data/rdma-core-32.0/ibacm/src/acm.c:947:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&addr.sin.sin_addr, dst->info.addr, 4);
data/rdma-core-32.0/ibacm/src/acm.c:952:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&addr.sin6.sin6_addr, dst->info.addr, 16);
data/rdma-core-32.0/ibacm/src/acm.c:983:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&src->info.addr, &addr.sin.sin_addr, 4);
data/rdma-core-32.0/ibacm/src/acm.c:985:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&src->info.addr, &addr.sin6.sin6_addr, 16);
data/rdma-core-32.0/ibacm/src/acm.c:1259:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(msg->ep_data[0].addrs[cnt++].name,
data/rdma-core-32.0/ibacm/src/acm.c:1353:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ad->info.addr, addr, addr_len);
data/rdma-core-32.0/ibacm/src/acm.c:1438:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str[INET6_ADDRSTRLEN];
data/rdma-core-32.0/ibacm/src/acm.c:1488:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[NL_MSG_BUF_SIZE];
data/rdma-core-32.0/ibacm/src/acm.c:1490:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ifname[IFNAMSIZ];
data/rdma-core-32.0/ibacm/src/acm.c:1491:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip_str[INET6_ADDRSTRLEN];
data/rdma-core-32.0/ibacm/src/acm.c:1593:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(acmnlmsg.path[0].rec.path_rec,
data/rdma-core-32.0/ibacm/src/acm.c:1650:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(path->dgid.raw, gid->gid, sizeof(path->dgid));
data/rdma-core-32.0/ibacm/src/acm.c:1664:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(path->sgid.raw, gid->gid, sizeof(path->sgid));
data/rdma-core-32.0/ibacm/src/acm.c:2058:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(addr_file, "r")))
data/rdma-core-32.0/ibacm/src/acm.c:2067:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return fopen(addr_file, "r");
data/rdma-core-32.0/ibacm/src/acm.c:2078:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp, addr, acm_addr_len(addr_type));
data/rdma-core-32.0/ibacm/src/acm.c:2122:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ep->addr_info[i].addr.info.addr, tmp, ACM_MAX_ADDRESS);
data/rdma-core-32.0/ibacm/src/acm.c:2199:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[120];
data/rdma-core-32.0/ibacm/src/acm.c:2200:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dev[32], name[ACM_MAX_ADDRESS], pkey_str[8];
data/rdma-core-32.0/ibacm/src/acm.c:2771:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[128];
data/rdma-core-32.0/ibacm/src/acm.c:2773:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prov_name[ACM_PROV_NAME_SIZE];
data/rdma-core-32.0/ibacm/src/acm.c:2778:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(fd = fopen(opts_file, "r")))
data/rdma-core-32.0/ibacm/src/acm.c:2852:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_name[256];
data/rdma-core-32.0/ibacm/src/acm.c:3110:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&req->mad.umad, &resp.umad, sizeof(resp.umad) + len);
data/rdma-core-32.0/ibacm/src/acm.c:3174:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[120];
data/rdma-core-32.0/ibacm/src/acm.c:3175:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char opt[32], value[256];
data/rdma-core-32.0/ibacm/src/acm.c:3177:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(opts_file, "r")))
data/rdma-core-32.0/ibacm/src/acm.c:3190:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			log_level = atoi(value);
data/rdma-core-32.0/ibacm/src/acm.c:3194:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			server_port = (short) atoi(value);
data/rdma-core-32.0/ibacm/src/acm.c:3210:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			support_ips_in_addr_cfg = atoi(value);
data/rdma-core-32.0/ibacm/src/acm.c:3212:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sa.timeout = atoi(value);
data/rdma-core-32.0/ibacm/src/acm.c:3214:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sa.retries = atoi(value);
data/rdma-core-32.0/ibacm/src/acm.c:3216:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sa.depth = atoi(value);
data/rdma-core-32.0/ibacm/src/acm.c:3256:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(log_file, "w")))
data/rdma-core-32.0/ibacm/src/acm.c:3265:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pid[16];
data/rdma-core-32.0/ibacm/src/acm.c:3267:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	lock_fd = open(lock_file, O_RDWR | O_CREAT, 0640);
data/rdma-core-32.0/ibacm/src/acm_util.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128], *end;
data/rdma-core-32.0/ibacm/src/acm_util.c:55:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r");
data/rdma-core-32.0/ibacm/src/acm_util.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128], *end;
data/rdma-core-32.0/ibacm/src/acm_util.c:80:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r");
data/rdma-core-32.0/ibacm/src/acm_util.c:176:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip_str[INET6_ADDRSTRLEN];
data/rdma-core-32.0/ibacm/src/acm_util.c:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char flags_str[128];
data/rdma-core-32.0/ibacm/src/acm_util.c:206:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sgid.raw, nl_addr_get_binary_addr(link_addr) + 4, sizeof(sgid));
data/rdma-core-32.0/ibacm/src/acm_util.c:218:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bin_addr, nl_addr_get_binary_addr(a), addr_len);
data/rdma-core-32.0/ibacm/src/acme.c:365:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open_dir() || !(f = fopen(opts_file, "w"))) {
data/rdma-core-32.0/ibacm/src/acme.c:455:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host_name[256];
data/rdma-core-32.0/ibacm/src/acme.c:500:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open_dir() || !(f = fopen(addr_file, "w"))) {
data/rdma-core-32.0/ibacm/src/acme.c:526:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"];
data/rdma-core-32.0/ibacm/src/acme.c:638:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		path->slid = htobe16((uint16_t) atoi(src_addr));
data/rdma-core-32.0/ibacm/src/acme.c:639:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	path->dlid = htobe16((uint16_t) atoi(dest_addr));
data/rdma-core-32.0/ibacm/src/acme.c:691:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char addr[64];
data/rdma-core-32.0/ibacm/src/acme.c:1024:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ep_index = atoi(arg);
data/rdma-core-32.0/ibacm/src/acme.c:1043:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				ep_index = atoi(opt_arg(argc, argv));
data/rdma-core-32.0/ibacm/src/acme.c:1086:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			repetitions = atoi(optarg);
data/rdma-core-32.0/ibacm/src/libacm.c:53:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(IBACM_IBACME_PORT_FILE, "r");
data/rdma-core-32.0/ibacm/src/libacm.c:148:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[ACM_MAX_ADDRESS];
data/rdma-core-32.0/ibacm/src/libacm.c:180:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(addr, msg->resolve_data[i].info.name,
data/rdma-core-32.0/ibacm/src/libacm.c:212:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data->info.addr, &((struct sockaddr_in *) addr)->sin_addr, 4);
data/rdma-core-32.0/ibacm/src/libacm.c:215:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data->info.addr, &((struct sockaddr_in6 *) addr)->sin6_addr, 16);
data/rdma-core-32.0/ibacm/src/parse.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/rdma-core-32.0/ibacm/src/parse.c:45:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		from = atoi(token);
data/rdma-core-32.0/ibacm/src/parse.c:48:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			to = atoi(tmp+1);
data/rdma-core-32.0/ibacm/src/parse.c:110:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ptrs[cnt + 1], str_buf, str_size);
data/rdma-core-32.0/infiniband-diags/dump_fts.c:63:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int dump_mlid(char *str, int strlen, unsigned mlid, unsigned nports,
data/rdma-core-32.0/infiniband-diags/dump_fts.c:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nd[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/dump_fts.c:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[512];
data/rdma-core-32.0/infiniband-diags/dump_fts.c:122:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nd, node->nodedesc, strlen(node->nodedesc));
data/rdma-core-32.0/infiniband-diags/dump_fts.c:170:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			s += sprintf(s, "%d ", i % 10);
data/rdma-core-32.0/infiniband-diags/dump_fts.c:227:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nd[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/dump_fts.c:231:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ntype[50], sguid[30];
data/rdma-core-32.0/infiniband-diags/dump_fts.c:279:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nd, port->node->nodedesc, strlen(port->node->nodedesc));
data/rdma-core-32.0/infiniband-diags/dump_fts.c:304:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lft[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/dump_fts.c:305:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nd[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/dump_fts.c:306:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[200];
data/rdma-core-32.0/infiniband-diags/dump_fts.c:318:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nd, node->nodedesc, strlen(node->nodedesc));
data/rdma-core-32.0/infiniband-diags/ibaddr.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/ibccconfig.c:198:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[3] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccconfig.c:206:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tmp, arg, 1);
data/rdma-core-32.0/infiniband-diags/ibccconfig.c:210:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tmp, arg, 2);
data/rdma-core-32.0/infiniband-diags/ibccconfig.c:224:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccconfig.c:557:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char usage_args[1024];
data/rdma-core-32.0/infiniband-diags/ibccconfig.c:578:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	n = sprintf(usage_args, "[-c key] <op> <lid|guid>\n"
data/rdma-core-32.0/infiniband-diags/ibccquery.c:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_CC_DATA_SZ] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_CC_DATA_SZ] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:110:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_CC_DATA_SZ] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_CC_LOG_DATA_SZ] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:126:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char emptybuf[16] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:181:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:182:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_CC_DATA_SZ] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:197:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:198:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_CC_DATA_SZ] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:260:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_CC_DATA_SZ] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:285:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:286:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_CC_DATA_SZ] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:325:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:326:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_CC_DATA_SZ] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibccquery.c:352:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char usage_args[1024];
data/rdma-core-32.0/infiniband-diags/ibccquery.c:371:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	n = sprintf(usage_args, "[-c key] <op> <lid|guid>\n"
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:132:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	config_fd = fopen(file, "r");
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:379:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str_opts[1024];
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:417:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512];
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:640:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[IB_SA_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:782:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:915:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char val[64];
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:916:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/rdma-core-32.0/infiniband-diags/ibdiag_sa.c:232:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mad_err_str[128] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibdiag_sa.c:233:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sa_err_str[64] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibdiag_sa.h:85:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&(target), &(val), sizeof(val)); \
data/rdma-core-32.0/infiniband-diags/iblinkinfo.c:107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char width[64], speed[64], state[64], physstate[64];
data/rdma-core-32.0/infiniband-diags/iblinkinfo.c:108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char remote_guid_str[256];
data/rdma-core-32.0/infiniband-diags/iblinkinfo.c:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char remote_str[256];
data/rdma-core-32.0/infiniband-diags/iblinkinfo.c:110:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link_str[256];
data/rdma-core-32.0/infiniband-diags/iblinkinfo.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char width_msg[256];
data/rdma-core-32.0/infiniband-diags/iblinkinfo.c:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char speed_msg[256];
data/rdma-core-32.0/infiniband-diags/iblinkinfo.c:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ext_port_str[256];
data/rdma-core-32.0/infiniband-diags/iblinkinfo.c:167:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(speed, "10.0 Gbps (FDR10)");
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:158:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[256];
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:174:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf + 2, "-%016" PRIx64 "\"", node->guid);
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:276:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str2[256];
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:348:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char mapping[OUT_BUFFER_SIZE];
data/rdma-core-32.0/infiniband-diags/ibnetdiscover.c:1116:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (argc && !(f = fopen(argv[0], "w")))
data/rdma-core-32.0/infiniband-diags/ibping.c:56:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char host_and_domain[IB_VENDOR_RANGE2_DATA_SIZE];
data/rdma-core-32.0/infiniband-diags/ibping.c:57:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char last_host[IB_VENDOR_RANGE2_DATA_SIZE];
data/rdma-core-32.0/infiniband-diags/ibping.c:94:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data, host_and_domain, IB_VENDOR_RANGE2_DATA_SIZE);
data/rdma-core-32.0/infiniband-diags/ibping.c:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_VENDOR_RANGE2_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibping.c:135:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(last_host, data, sizeof last_host);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:159:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2300];
data/rdma-core-32.0/infiniband-diags/ibportstate.c:160:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char val[64];
data/rdma-core-32.0/infiniband-diags/ibportstate.c:262:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[256];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:131:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *thresf = fopen(threshold_file, "r");
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:175:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char width[64], speed[64], state[64], physstate[64];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:176:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char remote_str[256];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:177:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link_str[256];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:178:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char width_msg[256];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char speed_msg[256];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:180:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ext_port_str[256];
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:219:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(speed, "10.0 Gbps (FDR10)");
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:431:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/ibroute.c:88:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int dump_mlid(char *str, int strlen, unsigned mlid, unsigned nports,
data/rdma-core-32.0/infiniband-diags/ibroute.c:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nd[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibroute.c:138:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[512], *s;
data/rdma-core-32.0/infiniband-diags/ibroute.c:194:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			s += sprintf(s, "%d ", i % 10);
data/rdma-core-32.0/infiniband-diags/ibroute.c:248:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nd[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibroute.c:253:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ntype[50], sguid[30];
data/rdma-core-32.0/infiniband-diags/ibroute.c:324:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lft[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibroute.c:325:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nd[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibroute.c:327:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[200];
data/rdma-core-32.0/infiniband-diags/ibsendtrap.c:238:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char usage_args[1024];
data/rdma-core-32.0/infiniband-diags/ibsendtrap.c:243:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	n = sprintf(usage_args, "[<trap_name>] [<error_port>]\n"
data/rdma-core-32.0/infiniband-diags/ibsendtrap.c:263:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		error_port = atoi(argv[1]);
data/rdma-core-32.0/infiniband-diags/ibstat.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256], *s;
data/rdma-core-32.0/infiniband-diags/ibstat.c:118:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_RDONLY)) < 0)
data/rdma-core-32.0/infiniband-diags/ibstat.c:139:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port_dir[256];
data/rdma-core-32.0/infiniband-diags/ibstat.c:140:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rate[32];
data/rdma-core-32.0/infiniband-diags/ibsysstat.c:257:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[1024] = { 0 }, *s, *e;
data/rdma-core-32.0/infiniband-diags/ibsysstat.c:261:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen("/proc/cpuinfo", "r"))) {
data/rdma-core-32.0/infiniband-diags/ibtracert.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char portinfo[64];
data/rdma-core-32.0/infiniband-diags/ibtracert.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char switchinfo[64];
data/rdma-core-32.0/infiniband-diags/ibtracert.c:108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nodedesc[64];
data/rdma-core-32.0/infiniband-diags/ibtracert.c:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nodeinfo[64];
data/rdma-core-32.0/infiniband-diags/ibtracert.c:432:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char portinfo[64] = { 0 };
data/rdma-core-32.0/infiniband-diags/ibtracert.c:488:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mdb[64];
data/rdma-core-32.0/infiniband-diags/ibtracert.c:538:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char map[256];
data/rdma-core-32.0/infiniband-diags/ibtracert.c:862:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dstbuf[21];
data/rdma-core-32.0/infiniband-diags/ibtracert.c:863:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char srcbuf[21];
data/rdma-core-32.0/infiniband-diags/ibtracert.c:864:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char portsbuf[80];
data/rdma-core-32.0/infiniband-diags/ibtracert.c:919:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ports_fd = fopen(ports_file, "r");
data/rdma-core-32.0/infiniband-diags/mcm_rereg_test.c:314:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[256];
data/rdma-core-32.0/infiniband-diags/mcm_rereg_test.c:329:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(guid_file, "r");
data/rdma-core-32.0/infiniband-diags/mcm_rereg_test.c:338:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&port_gid[0], &prefix, 8);
data/rdma-core-32.0/infiniband-diags/mcm_rereg_test.c:339:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&port_gid[8], &guid, 8);
data/rdma-core-32.0/infiniband-diags/perfquery.c:207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/rdma-core-32.0/infiniband-diags/perfquery.c:333:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1536];
data/rdma-core-32.0/infiniband-diags/perfquery.c:404:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1536];
data/rdma-core-32.0/infiniband-diags/perfquery.c:489:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1536];
data/rdma-core-32.0/infiniband-diags/perfquery.c:724:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1280];
data/rdma-core-32.0/infiniband-diags/saquery.c:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str2[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:241:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str2[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:306:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mgid[INET6_ADDRSTRLEN], gid[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:337:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:357:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:358:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str2[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:405:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:406:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf_service_key[35];
data/rdma-core-32.0/infiniband-diags/saquery.c:407:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf_service_name[65];
data/rdma-core-32.0/infiniband-diags/saquery.c:410:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf_service_key,
data/rdma-core-32.0/infiniband-diags/saquery.c:552:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:553:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str2[INET6_ADDRSTRLEN];
data/rdma-core-32.0/infiniband-diags/saquery.c:1707:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char usage_args[1024];
data/rdma-core-32.0/infiniband-diags/saquery.c:1793:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	n = sprintf(usage_args, "[query-name] [<name> | <lid> | <guid>]\n"
data/rdma-core-32.0/infiniband-diags/sminfo.c:112:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mod = atoi(argv[1]);
data/rdma-core-32.0/infiniband-diags/smpdump.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[64];
data/rdma-core-32.0/infiniband-diags/smpdump.c:99:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(smp->initial_path, path->path, path->hop_cnt + 1);
data/rdma-core-32.0/infiniband-diags/smpdump.c:133:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		path->path[++path->hop_cnt] = (char)atoi(str);
data/rdma-core-32.0/infiniband-diags/smpquery.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nd[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/smpquery.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dots[128];
data/rdma-core-32.0/infiniband-diags/smpquery.c:110:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/smpquery.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/smpquery.c:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/smpquery.c:146:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/smpquery.c:165:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2300];
data/rdma-core-32.0/infiniband-diags/smpquery.c:166:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_SMP_DATA_SIZE];
data/rdma-core-32.0/infiniband-diags/smpquery.c:183:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/smpquery.c:184:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/smpquery.c:249:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/smpquery.c:250:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/smpquery.c:300:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/rdma-core-32.0/infiniband-diags/smpquery.c:301:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[IB_SMP_DATA_SIZE] = { 0 };
data/rdma-core-32.0/infiniband-diags/smpquery.c:431:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char usage_args[1024];
data/rdma-core-32.0/infiniband-diags/smpquery.c:455:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	n = sprintf(usage_args, "<op> <dest dr_path|lid|guid> [op params]\n"
data/rdma-core-32.0/infiniband-diags/smpquery.c:493:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char concat[64];
data/rdma-core-32.0/infiniband-diags/vendstat.c:217:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/rdma-core-32.0/infiniband-diags/vendstat.c:251:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/rdma-core-32.0/infiniband-diags/vendstat.c:341:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/rdma-core-32.0/iwpmd/iwarp_pm.h:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	ifname[IWPM_IFNAME_SIZE];       /* netdev interface name */
data/rdma-core-32.0/iwpmd/iwarp_pm.h:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	ibdevname[IWPM_DEVNAME_SIZE];   /* OFED device name */
data/rdma-core-32.0/iwpmd/iwarp_pm.h:123:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	ulibname[IWPM_ULIBNAME_SIZE];	/* library name of the userpace PM agent provider */
data/rdma-core-32.0/iwpmd/iwarp_pm.h:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		apipaddr[IWPM_IPADDR_SIZE];
data/rdma-core-32.0/iwpmd/iwarp_pm.h:190:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		cpipaddr[IWPM_IPADDR_SIZE];
data/rdma-core-32.0/iwpmd/iwarp_pm.h:192:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		mapped_cpipaddr[IWPM_IPADDR_SIZE];
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:38:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * iwpm_param_names[IWPM_PARAM_NUM] =
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line_buf[128];
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char param_name[IWPM_PARAM_NAME_LEN];
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip_address_text[INET6_ADDRSTRLEN];
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:153:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip_address_text[INET6_ADDRSTRLEN];
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:405:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&msg_parms->apipaddr, &pm_msg->apipaddr, IWPM_IPADDR_SIZE);
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:407:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&msg_parms->cpipaddr, &pm_msg->cpipaddr, IWPM_IPADDR_SIZE);
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:410:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&msg_parms->mapped_cpipaddr, &pm_msg->mapped_cpipaddr, IWPM_IPADDR_SIZE);
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:432:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&pm_msg->apipaddr, &msg_parms->apipaddr, IWPM_IPADDR_SIZE);
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:433:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&pm_msg->cpipaddr, &msg_parms->cpipaddr, IWPM_IPADDR_SIZE);
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:436:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&pm_msg->mapped_cpipaddr, &msg_parms->mapped_cpipaddr, IWPM_IPADDR_SIZE);
data/rdma-core-32.0/iwpmd/iwarp_pm_common.c:621:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip_address_text[INET6_ADDRSTRLEN];
data/rdma-core-32.0/iwpmd/iwarp_pm_helper.c:78:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&iwpm_map_req->src_addr, src_addr, sizeof(struct sockaddr_storage));
data/rdma-core-32.0/iwpmd/iwarp_pm_helper.c:80:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&iwpm_map_req->remote_addr, remote_addr, sizeof(struct sockaddr_storage));
data/rdma-core-32.0/iwpmd/iwarp_pm_helper.c:139:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(iwpm_copy_req, iwpm_map_req, sizeof(iwpm_mapping_request));
data/rdma-core-32.0/iwpmd/iwarp_pm_helper.c:245:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(mapped_addr, local_addr, sizeof(struct sockaddr_storage));
data/rdma-core-32.0/iwpmd/iwarp_pm_helper.c:340:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&iwpm_port->local_addr, local_addr, sizeof(struct sockaddr_storage));
data/rdma-core-32.0/iwpmd/iwarp_pm_helper.c:341:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&iwpm_port->mapped_addr, mapped_addr, sizeof(struct sockaddr_storage));
data/rdma-core-32.0/iwpmd/iwarp_pm_helper.c:586:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&pending_msg->send_msg, send_msg, sizeof(iwpm_send_msg));
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:238:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	ifname = (const char *)nla_get_string(nltb[IWPM_NLA_REG_IF_NAME]);
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:239:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	devname = (const char *)nla_get_string(nltb[IWPM_NLA_REG_IBDEV_NAME]);
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:240:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	libname = (const char *)nla_get_string(nltb[IWPM_NLA_REG_ULIB_NAME]);
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:250:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(client->ibdevname, devname, IWPM_DEVNAME_SIZE);
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:251:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(client->ifname, ifname, IWPM_IFNAME_SIZE);
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:252:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(client->ulibname, libname, IWPM_ULIBNAME_SIZE);
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:465:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&dest_addr.s_sockaddr, remote_addr, sizeof(struct sockaddr_storage));
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:1512:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(IWPM_CONFIG_FILE, "r");
data/rdma-core-32.0/kernel-boot/rdma_rename.c:95:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(acpi, "r");
data/rdma-core-32.0/kernel-boot/rdma_rename.c:97:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(index, "r");
data/rdma-core-32.0/kernel-boot/rdma_rename.c:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bof[256], tmp[256];
data/rdma-core-32.0/kernel-boot/rdma_rename.c:149:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *str, address[256];
data/rdma-core-32.0/kernel-boot/rdma_rename.c:155:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i = atoi(dent->d_name);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:165:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(str, "r");
data/rdma-core-32.0/kernel-boot/rdma_rename.c:194:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c[64] = {};
data/rdma-core-32.0/kernel-boot/rdma_rename.c:203:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(config, "r");
data/rdma-core-32.0/kernel-boot/rdma_rename.c:227:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(ari, "r");
data/rdma-core-32.0/kernel-boot/rdma_rename.c:251:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256] = {};
data/rdma-core-32.0/kernel-boot/rdma_rename.c:341:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			p->vf = atoi(&dent->d_name[6]);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:362:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256] = {};
data/rdma-core-32.0/kernel-boot/rdma_rename.c:417:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		ret = sprintf(buf, "P%u", p.domain);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:426:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		ret = sprintf(buf, "s%u", p.sun);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:428:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		ret = sprintf(buf, "p%us%u", p.bus, p.slot);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:437:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		ret = sprintf(buf, "f%u", p.func);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:445:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			ret = sprintf(buf, "v%u", p.vf);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:474:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(vp, &d->node_guid, sizeof(uint64_t));
data/rdma-core-32.0/kernel-headers/rdma/hfi/hfi1_user.h:183:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char freezemsg[0];
data/rdma-core-32.0/libibmad/bm.c:79:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(bm_data.data, data, IB_BM_DATA_SZ);
data/rdma-core-32.0/libibmad/bm.c:101:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, bm_data.data, IB_BM_DATA_SZ);
data/rdma-core-32.0/libibmad/dump.c:349:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%d", speed);
data/rdma-core-32.0/libibmad/dump.c:553:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	s += sprintf(s, "0x%x\n", mask);
data/rdma-core-32.0/libibmad/dump.c:555:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsSM\n");
data/rdma-core-32.0/libibmad/dump.c:557:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsNoticeSupported\n");
data/rdma-core-32.0/libibmad/dump.c:559:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsTrapSupported\n");
data/rdma-core-32.0/libibmad/dump.c:561:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsOptionalIPDSupported\n");
data/rdma-core-32.0/libibmad/dump.c:563:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsAutomaticMigrationSupported\n");
data/rdma-core-32.0/libibmad/dump.c:565:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsSLMappingSupported\n");
data/rdma-core-32.0/libibmad/dump.c:567:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsMKeyNVRAM\n");
data/rdma-core-32.0/libibmad/dump.c:569:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsPKeyNVRAM\n");
data/rdma-core-32.0/libibmad/dump.c:571:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsLedInfoSupported\n");
data/rdma-core-32.0/libibmad/dump.c:573:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsSMdisabled\n");
data/rdma-core-32.0/libibmad/dump.c:575:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsSystemImageGUIDsupported\n");
data/rdma-core-32.0/libibmad/dump.c:577:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s,
data/rdma-core-32.0/libibmad/dump.c:580:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsExtendedSpeedsSupported\n");
data/rdma-core-32.0/libibmad/dump.c:582:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsCapabilityMask2Supported\n");
data/rdma-core-32.0/libibmad/dump.c:584:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsCommunicatonManagementSupported\n");
data/rdma-core-32.0/libibmad/dump.c:586:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsSNMPTunnelingSupported\n");
data/rdma-core-32.0/libibmad/dump.c:588:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsReinitSupported\n");
data/rdma-core-32.0/libibmad/dump.c:590:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsDeviceManagementSupported\n");
data/rdma-core-32.0/libibmad/dump.c:592:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsVendorClassSupported\n");
data/rdma-core-32.0/libibmad/dump.c:594:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsDRNoticeSupported\n");
data/rdma-core-32.0/libibmad/dump.c:596:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsCapabilityMaskNoticeSupported\n");
data/rdma-core-32.0/libibmad/dump.c:598:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsBootManagementSupported\n");
data/rdma-core-32.0/libibmad/dump.c:600:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsLinkRoundTripLatencySupported\n");
data/rdma-core-32.0/libibmad/dump.c:602:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsClientRegistrationSupported\n");
data/rdma-core-32.0/libibmad/dump.c:604:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsOtherLocalChangesNoticeSupported\n");
data/rdma-core-32.0/libibmad/dump.c:606:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s,
data/rdma-core-32.0/libibmad/dump.c:609:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsVendorSpecificMadsTableSupported\n");
data/rdma-core-32.0/libibmad/dump.c:611:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsMcastPkeyTrapSuppressionSupported\n");
data/rdma-core-32.0/libibmad/dump.c:613:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsMulticastFDBTopSupported\n");
data/rdma-core-32.0/libibmad/dump.c:615:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsHierarchyInfoSupported\n");
data/rdma-core-32.0/libibmad/dump.c:626:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	s += sprintf(s, "0x%x\n", mask);
data/rdma-core-32.0/libibmad/dump.c:628:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsSetNodeDescriptionSupported\n");
data/rdma-core-32.0/libibmad/dump.c:630:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsPortInfoExtendedSupported\n");
data/rdma-core-32.0/libibmad/dump.c:632:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsVirtualizationSupported\n");
data/rdma-core-32.0/libibmad/dump.c:634:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsSwitchPortStateTableSupported\n");
data/rdma-core-32.0/libibmad/dump.c:636:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsLinkWidth2xSupported\n");
data/rdma-core-32.0/libibmad/dump.c:638:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		s += sprintf(s, "\t\t\t\tIsLinkSpeedHDRSupported\n");
data/rdma-core-32.0/libibmad/dump.c:658:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(s, "%02x", *p);
data/rdma-core-32.0/libibmad/dump.c:763:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char val[64];
data/rdma-core-32.0/libibmad/fields.c:1024:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((void *)(char *)buf + base_offs + f->bitoffs / 8),
data/rdma-core-32.0/libibmad/fields.c:1031:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *)&val, (void *)((char *)buf + base_offs + f->bitoffs / 8),
data/rdma-core-32.0/libibmad/fields.c:1105:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((uint8_t *) buf + base_offs + bitoffs / 8, val, f->bitlen / 8);
data/rdma-core-32.0/libibmad/fields.c:1116:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(val, (uint8_t *) buf + base_offs + bitoffs / 8, f->bitlen / 8);
data/rdma-core-32.0/libibmad/fields.c:1203:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dots[128];
data/rdma-core-32.0/libibmad/fields.c:1229:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512];
data/rdma-core-32.0/libibmad/iba_types.h:1335:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char id_string[CTRL_ID_STRING_LEN];
data/rdma-core-32.0/libibmad/iba_types.h:1339:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAX_SVC_ENTRY_NAME_LEN];
data/rdma-core-32.0/libibmad/mad.c:152:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)buf + rpc->dataoffs, data, rpc->datasz);
data/rdma-core-32.0/libibmad/mad.c:182:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(addr.gid, dport->gid, 16);
data/rdma-core-32.0/libibmad/mad.h:326:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[IB_FIELD_NAME_LEN];
data/rdma-core-32.0/libibmad/portid.c:57:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1024] = "local";
data/rdma-core-32.0/libibmad/portid.c:61:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		n += sprintf(buf + n, "Lid %d", portid->lid);
data/rdma-core-32.0/libibmad/portid.c:63:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char gid[sizeof
data/rdma-core-32.0/libibmad/portid.c:73:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	n += sprintf(buf + n, "DR path ");
data/rdma-core-32.0/libibmad/portid.c:96:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		path->p[++path->cnt] = (uint8_t) atoi(str);
data/rdma-core-32.0/libibmad/register.c:135:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(class_method_mask, method_mask,
data/rdma-core-32.0/libibmad/resolve.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[IB_SA_DATA_SIZE] = { 0 };
data/rdma-core-32.0/libibmad/rpc.c:133:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(save_mad, umad_get_mad(sndbuf),
data/rdma-core-32.0/libibmad/rpc.c:267:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rcvdata, mad + rpc->dataoffs, rpc->datasz);
data/rdma-core-32.0/libibmad/rpc.c:326:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, mad + rpc->dataoffs, rpc->datasz);
data/rdma-core-32.0/libibnetdisc/chassis.c:354:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char line_slot_2_sfb4[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:359:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_line_slot_2_sfb4[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:365:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char line_slot_2_sfb12[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:370:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_line_slot_2_sfb12[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:377:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char line_slot_2_sfb18[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:382:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_line_slot_2_sfb18[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:389:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char line_slot_2_sfb18x2[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:394:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_line_slot_2_sfb18x2[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:401:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char line_slot_2_sfb4200[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:406:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_line_slot_2_sfb4200[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:413:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char ipr_slot_2_sfb4_port[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:420:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char spine12_slot_2_slb[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:425:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_spine12_slot_2_slb[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:431:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char spine4_slot_2_slb[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:436:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_spine4_slot_2_slb[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:443:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char spine18_slot_2_slb[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:449:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_spine18_slot_2_slb[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:454:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_spine18x2_slot_2_slb[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:461:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char sfb4200_slot_2_slb[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:467:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char anafa_sfb4200_slot_2_slb[37] = {
data/rdma-core-32.0/libibnetdisc/chassis.c:600:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char node_desc[IB_SMP_DATA_SIZE];
data/rdma-core-32.0/libibnetdisc/chassis.c:619:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(node_desc, node->nodedesc, IB_SMP_DATA_SIZE);
data/rdma-core-32.0/libibnetdisc/chassis.c:682:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	node->ch_anafanum = (unsigned char) atoi(&node_index[1]);
data/rdma-core-32.0/libibnetdisc/chassis.c:701:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	node->ch_slotnum = (unsigned char) atoi(&system_slot_name[1]);
data/rdma-core-32.0/libibnetdisc/ibnetdisc.c:164:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char width[64], speed[64];
data/rdma-core-32.0/libibnetdisc/ibnetdisc.c:520:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char type[64];
data/rdma-core-32.0/libibnetdisc/ibnetdisc.c:746:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(config, cfg, sizeof(*config));
data/rdma-core-32.0/libibnetdisc/ibnetdisc.h:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nodedesc[IB_SMP_DATA_SIZE];
data/rdma-core-32.0/libibnetdisc/ibnetdisc.h:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ch_type_str[CHASSIS_TYPE_SIZE];
data/rdma-core-32.0/libibnetdisc/ibnetdisc_cache.c:213:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(outbuf, inbuf, len);
data/rdma-core-32.0/libibnetdisc/ibnetdisc_cache.c:635:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(file, O_RDONLY)) < 0) {
data/rdma-core-32.0/libibnetdisc/ibnetdisc_cache.c:758:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(outbuf, inbuf, len);
data/rdma-core-32.0/libibnetdisc/ibnetdisc_cache.c:917:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(file, O_CREAT | O_EXCL | O_WRONLY, 0644)) < 0) {
data/rdma-core-32.0/libibumad/sysfs.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256], *s;
data/rdma-core-32.0/libibumad/sysfs.c:63:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_RDONLY)) < 0)
data/rdma-core-32.0/libibumad/sysfs.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], *str, *s;
data/rdma-core-32.0/libibumad/sysfs.c:107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64], *str, *s;
data/rdma-core-32.0/libibumad/sysfs.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/rdma-core-32.0/libibumad/sysfs.c:138:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:326:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mcgid, mgid, 16);
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:363:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(mcgid, mcm->mgid, 16);
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:377:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[256];
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:393:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(guid_file, "r");
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:406:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&port_gid[0], &prefix, 8);
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:407:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&port_gid[8], &guid, 8);
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:504:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			tmo = atoi(optarg);
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:522:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			rate = atoi(optarg);
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:525:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			mtu = atoi(optarg);
data/rdma-core-32.0/libibumad/tests/umad_sa_mcm_rereg_test.c:528:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sl = atoi(optarg);
data/rdma-core-32.0/libibumad/umad.c:149:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port_dir[256];
data/rdma-core-32.0/libibumad/umad.c:182:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(port->link_layer, "IB");
data/rdma-core-32.0/libibumad/umad.c:429:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dir_name[256];
data/rdma-core-32.0/libibumad/umad.c:476:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    ((portnum = atoi(namelist[i]->d_name)) <= 0 ||
data/rdma-core-32.0/libibumad/umad.c:518:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256];
data/rdma-core-32.0/libibumad/umad.c:535:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char umad_dev[UMAD_CA_NAME_LEN];
data/rdma-core-32.0/libibumad/umad.c:580:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dir_name[256];
data/rdma-core-32.0/libibumad/umad.c:689:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dev_file[UMAD_DEV_FILE_SZ];
data/rdma-core-32.0/libibumad/umad.c:717:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(dev_file, O_RDWR | O_NONBLOCK)) < 0) {
data/rdma-core-32.0/libibumad/umad.c:779:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dir_name[256];
data/rdma-core-32.0/libibumad/umad.c:1021:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(req.oui, oui, sizeof req.oui);
data/rdma-core-32.0/libibumad/umad.c:1025:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(req.method_mask, method_mask, sizeof req.method_mask);
data/rdma-core-32.0/libibumad/umad.c:1060:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(req.method_mask, method_mask, sizeof req.method_mask);
data/rdma-core-32.0/libibumad/umad.c:1064:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&req.oui, (char *)&oui + 1, sizeof req.oui);
data/rdma-core-32.0/libibumad/umad.c:1106:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(req.method_mask, attr->method_mask, sizeof req.method_mask);
data/rdma-core-32.0/libibumad/umad.c:1138:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(req_v1.method_mask, req.method_mask, sizeof req_v1.method_mask);
data/rdma-core-32.0/libibumad/umad.c:1191:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str[64];
data/rdma-core-32.0/libibumad/umad.h:143:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ca_name[UMAD_CA_NAME_LEN];
data/rdma-core-32.0/libibumad/umad.h:157:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link_layer[UMAD_CA_NAME_LEN];
data/rdma-core-32.0/libibumad/umad.h:161:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ca_name[UMAD_CA_NAME_LEN];
data/rdma-core-32.0/libibumad/umad.h:164:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fw_ver[20];
data/rdma-core-32.0/libibumad/umad.h:165:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ca_type[40];
data/rdma-core-32.0/libibumad/umad.h:166:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hw_ver[20];
data/rdma-core-32.0/libibverbs/cmd.c:495:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd + 1, new_cmd + 1, new_cmd_size - sizeof *new_cmd);
data/rdma-core-32.0/libibverbs/cmd.c:655:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(attr->ah_attr.grh.dgid.raw, resp.dest.dgid, 16);
data/rdma-core-32.0/libibverbs/cmd.c:667:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(attr->alt_ah_attr.grh.dgid.raw, resp.alt_dest.dgid, 16);
data/rdma-core-32.0/libibverbs/cmd.c:717:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(cmd->dest.dgid, attr->ah_attr.grh.dgid.raw, 16);
data/rdma-core-32.0/libibverbs/cmd.c:749:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(cmd->alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16);
data/rdma-core-32.0/libibverbs/cmd.c:879:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(s, i->sg_list, tmp->num_sge * sizeof *s);
data/rdma-core-32.0/libibverbs/cmd.c:938:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(s, i->sg_list, tmp->num_sge * sizeof *s);
data/rdma-core-32.0/libibverbs/cmd.c:997:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(s, i->sg_list, tmp->num_sge * sizeof *s);
data/rdma-core-32.0/libibverbs/cmd.c:1044:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd.attr.grh.dgid, attr->grh.dgid.raw, 16);
data/rdma-core-32.0/libibverbs/cmd.c:1160:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->eth.val, &ib_spec->eth.val,
data/rdma-core-32.0/libibverbs/cmd.c:1162:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->eth.mask, &ib_spec->eth.mask,
data/rdma-core-32.0/libibverbs/cmd.c:1168:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->ipv4.val, &ib_spec->ipv4.val,
data/rdma-core-32.0/libibverbs/cmd.c:1170:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->ipv4.mask, &ib_spec->ipv4.mask,
data/rdma-core-32.0/libibverbs/cmd.c:1185:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->ipv4_ext.val, &ib_spec->ipv4_ext.val,
data/rdma-core-32.0/libibverbs/cmd.c:1187:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->ipv4_ext.mask, (void *)&ib_spec->ipv4_ext.val
data/rdma-core-32.0/libibverbs/cmd.c:1199:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->ipv6.val, &ib_spec->ipv6.val,
data/rdma-core-32.0/libibverbs/cmd.c:1201:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->ipv6.mask, (void *)&ib_spec->ipv6.val
data/rdma-core-32.0/libibverbs/cmd.c:1207:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->esp.val, &ib_spec->esp.val,
data/rdma-core-32.0/libibverbs/cmd.c:1209:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->esp.mask, (void *)&ib_spec->esp.mask,
data/rdma-core-32.0/libibverbs/cmd.c:1217:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->tcp_udp.val, &ib_spec->tcp_udp.val,
data/rdma-core-32.0/libibverbs/cmd.c:1219:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->tcp_udp.mask, &ib_spec->tcp_udp.mask,
data/rdma-core-32.0/libibverbs/cmd.c:1224:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->gre.val, &ib_spec->gre.val,
data/rdma-core-32.0/libibverbs/cmd.c:1226:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->gre.mask, &ib_spec->gre.mask,
data/rdma-core-32.0/libibverbs/cmd.c:1232:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->mpls.val, &ib_spec->mpls.val,
data/rdma-core-32.0/libibverbs/cmd.c:1234:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->mpls.mask, &ib_spec->mpls.mask,
data/rdma-core-32.0/libibverbs/cmd.c:1245:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->tunnel.val, &ib_spec->tunnel.val,
data/rdma-core-32.0/libibverbs/cmd.c:1247:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&kern_spec->tunnel.mask, (void *)&ib_spec->tunnel.val
data/rdma-core-32.0/libibverbs/cmd.c:1324:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)cmd + written_size, ucmd, ucmd_size);
data/rdma-core-32.0/libibverbs/cmd_device.c:224:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[IF_NAMESIZE];
data/rdma-core-32.0/libibverbs/cmd_device.c:241:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attr[41];
data/rdma-core-32.0/libibverbs/cmd_device.c:268:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[11];
data/rdma-core-32.0/libibverbs/cmd_ioctl.c:93:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&uhw->data, (void *)(uintptr_t)uhw->data,
data/rdma-core-32.0/libibverbs/cmd_ioctl.h:279:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&attr->data, data, len);
data/rdma-core-32.0/libibverbs/cmd_ioctl.h:313:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attr->data, &data, sizeof(data));
data/rdma-core-32.0/libibverbs/cmd_qp.c:385:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attr_ex, attr, sizeof(*attr));
data/rdma-core-32.0/libibverbs/cmd_qp.c:390:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&attr->cap, &attr_ex.cap, sizeof(attr_ex.cap));
data/rdma-core-32.0/libibverbs/cmd_srq.c:212:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attr_ex, attr, sizeof(*attr));
data/rdma-core-32.0/libibverbs/compat-1_0.c:370:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&real_wr->sg_list, &w->sg_list, sizeof *real_wr
data/rdma-core-32.0/libibverbs/compat-1_0.c:377:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&real_wr->sg_list, &w->sg_list,
data/rdma-core-32.0/libibverbs/compat-1_0.c:381:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&real_wr->wr, &w->wr, sizeof real_wr->wr);
data/rdma-core-32.0/libibverbs/compat-1_0.c:389:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&real_wr->wr, &w->wr,
data/rdma-core-32.0/libibverbs/device.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attr[24];
data/rdma-core-32.0/libibverbs/driver.h:199:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sysfs_name[IBV_SYSFS_NAME_MAX];
data/rdma-core-32.0/libibverbs/driver.h:201:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ibdev_name[IBV_SYSFS_NAME_MAX];
data/rdma-core-32.0/libibverbs/driver.h:202:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ibdev_path[IBV_SYSFS_PATH_MAX];
data/rdma-core-32.0/libibverbs/driver.h:203:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char modalias[512];
data/rdma-core-32.0/libibverbs/driver.h:204:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fw_ver[64];
data/rdma-core-32.0/libibverbs/dynamic_driver.c:64:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	conf = fopen(path, "r" STREAM_CLOEXEC);
data/rdma-core-32.0/libibverbs/examples/devinfo.c:59:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%04x:%04x:%04x:%04x",
data/rdma-core-32.0/libibverbs/examples/devinfo.c:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid_str[INET6_ADDRSTRLEN] = {};
data/rdma-core-32.0/libibverbs/examples/devinfo.c:180:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[20] = {};
data/rdma-core-32.0/libibverbs/examples/devinfo.c:502:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/rdma-core-32.0/libibverbs/examples/pingpong.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[9];
data/rdma-core-32.0/libibverbs/examples/pingpong.c:65:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(tmp, wgid + i * 8, 8);
data/rdma-core-32.0/libibverbs/examples/pingpong.c:69:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(gid, tmp_gid, sizeof(*gid));
data/rdma-core-32.0/libibverbs/examples/pingpong.c:79:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(&wgid[i * 8], "%08x", htobe32(tmp_gid[i]));
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[sizeof "0000:000000:000000:00000000000000000000000000000000"];
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:244:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[sizeof "0000:000000:000000:00000000000000000000000000000000"];
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:248:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:814:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			 gid[33];
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[sizeof "0000:000000:000000:00000000000000000000000000000000"];
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:162:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:247:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[sizeof "0000:000000:000000:00000000000000000000000000000000"];
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:253:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:669:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			 gid[33];
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[sizeof "0000:000000:000000:00000000000000000000000000000000"];
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:139:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:212:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[sizeof "0000:000000:000000:00000000000000000000000000000000"];
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:216:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:553:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			 gid[33];
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[sizeof "0000:000000:000000:00000000000000000000000000000000"];
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:139:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:210:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[sizeof "0000:000000:000000:00000000000000000000000000000000"];
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:575:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			 gid[33];
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:275:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ctx.fd = open("/tmp/xrc_domain", O_RDONLY | O_CREAT, S_IRUSR | S_IRGRP);
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:337:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[TERMINATION_MSG_SIZE];
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:363:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[TERMINATION_MSG_SIZE];
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:405:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[MSG_SIZE];
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:406:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:448:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[MSG_SIZE];
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:449:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gid[33];
data/rdma-core-32.0/libibverbs/ibdev_nl.c:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[IBV_SYSFS_PATH_MAX];
data/rdma-core-32.0/libibverbs/init.c:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char value[32];
data/rdma-core-32.0/libibverbs/init.c:137:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char value[32];
data/rdma-core-32.0/libibverbs/init.c:187:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char class_path[IBV_SYSFS_PATH_MAX];
data/rdma-core-32.0/libibverbs/init.c:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pci_ma[100];
data/rdma-core-32.0/libibverbs/init.c:285:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name_ma[100];
data/rdma-core-32.0/libibverbs/init.c:449:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char value[8];
data/rdma-core-32.0/libibverbs/marshall.c:42:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst->grh.dgid.raw, src->grh.dgid, sizeof dst->grh.dgid);
data/rdma-core-32.0/libibverbs/marshall.c:95:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst->dgid.raw, src->dgid, sizeof dst->dgid);
data/rdma-core-32.0/libibverbs/marshall.c:96:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid);
data/rdma-core-32.0/libibverbs/marshall.c:120:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst->dgid, src->dgid.raw, sizeof src->dgid);
data/rdma-core-32.0/libibverbs/marshall.c:121:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst->sgid, src->sgid.raw, sizeof src->sgid);
data/rdma-core-32.0/libibverbs/memory.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/rdma-core-32.0/libibverbs/memory.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/rdma-core-32.0/libibverbs/memory.c:99:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(buf, "r" STREAM_CLOEXEC);
data/rdma-core-32.0/libibverbs/neigh.c:304:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[sizeof(SEND_PAYLOAD)] = SEND_PAYLOAD;
data/rdma-core-32.0/libibverbs/neigh.c:412:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac_addr + 2, (uint8_t *)nl_addr_get_binary_addr(dst) + 12, 4);
data/rdma-core-32.0/libibverbs/neigh.c:424:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac_addr + 3, (uint8_t *)nl_addr_get_binary_addr(dst) + 13, 3);
data/rdma-core-32.0/libibverbs/neigh.c:425:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac_addr, (uint8_t *)nl_addr_get_binary_addr(dst) + 8, 3);
data/rdma-core-32.0/libibverbs/neigh.c:748:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(addr_buff, nl_addr_get_binary_addr(neigh_handler->found_ll_addr),
data/rdma-core-32.0/libibverbs/verbs.c:177:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(port_attr, &tmp_attr, port_attr_len);
data/rdma-core-32.0/libibverbs/verbs.c:237:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(gid, &entry.gid, sizeof(entry.gid));
data/rdma-core-32.0/libibverbs/verbs.c:248:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attr[8];
data/rdma-core-32.0/libibverbs/verbs.h:170:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			fw_ver[64];
data/rdma-core-32.0/libibverbs/verbs.h:1914:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			name[IBV_SYSFS_NAME_MAX];
data/rdma-core-32.0/libibverbs/verbs.h:1916:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			dev_name[IBV_SYSFS_NAME_MAX];
data/rdma-core-32.0/libibverbs/verbs.h:1918:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			dev_path[IBV_SYSFS_PATH_MAX];
data/rdma-core-32.0/libibverbs/verbs.h:1920:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			ibdev_path[IBV_SYSFS_PATH_MAX];
data/rdma-core-32.0/librdmacm/acm.c:57:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(IBACM_PORT_FILE, "r" STREAM_CLOEXEC))) {
data/rdma-core-32.0/librdmacm/acm.c:149:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&src->sib_addr, &path->sgid, 16);
data/rdma-core-32.0/librdmacm/acm.c:155:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&dst->sib_addr, &path->dgid, 16);
data/rdma-core-32.0/librdmacm/acm.c:181:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&hdr->cma_src_ip4,
data/rdma-core-32.0/librdmacm/acm.c:183:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&hdr->cma_dst_ip4,
data/rdma-core-32.0/librdmacm/acm.c:187:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&hdr->cma_src_ip6,
data/rdma-core-32.0/librdmacm/acm.c:189:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&hdr->cma_dst_ip6,
data/rdma-core-32.0/librdmacm/acm.c:215:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ib_rai->ai_route, (*rai)->ai_route, (*rai)->ai_route_len);
data/rdma-core-32.0/librdmacm/acm.c:271:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&sin->sin_addr, &ep_data->info.addr, 4);
data/rdma-core-32.0/librdmacm/acm.c:284:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&sin6->sin6_addr, &ep_data->info.addr, 16);
data/rdma-core-32.0/librdmacm/acm.c:295:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rai->ai_route, path_data, path_cnt * sizeof(*path_data));
data/rdma-core-32.0/librdmacm/acm.c:304:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data->info.addr, &((struct sockaddr_in *) addr)->sin_addr, 4);
data/rdma-core-32.0/librdmacm/acm.c:307:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data->info.addr, &((struct sockaddr_in6 *) addr)->sin6_addr, 16);
data/rdma-core-32.0/librdmacm/acm.c:368:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&data->info.path, path, sizeof(*path));
data/rdma-core-32.0/librdmacm/acm.c:371:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&data->info.path.sgid,
data/rdma-core-32.0/librdmacm/acm.c:375:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&data->info.path.dgid,
data/rdma-core-32.0/librdmacm/addrinfo.c:105:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*dst, src, src_len);
data/rdma-core-32.0/librdmacm/cma.c:145:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char dev_name[64] = "rdma_cm";
data/rdma-core-32.0/librdmacm/cma.c:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char value[8];
data/rdma-core-32.0/librdmacm/cma.c:884:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&id->route.addr.src_addr, &resp.src_addr, resp.src_size);
data/rdma-core-32.0/librdmacm/cma.c:885:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&id->route.addr.dst_addr, &resp.dst_addr, resp.dst_size);
data/rdma-core-32.0/librdmacm/cma.c:919:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(id->route.addr.addr.ibaddr.sgid.raw, sib->sib_addr.sib_raw,
data/rdma-core-32.0/librdmacm/cma.c:923:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(id->route.addr.addr.ibaddr.dgid.raw, sib->sib_addr.sib_raw,
data/rdma-core-32.0/librdmacm/cma.c:1028:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(id->route.addr.addr.ibaddr.sgid.raw, resp.ib_route[0].sgid,
data/rdma-core-32.0/librdmacm/cma.c:1030:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(id->route.addr.addr.ibaddr.dgid.raw, resp.ib_route[0].dgid,
data/rdma-core-32.0/librdmacm/cma.c:1033:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&id->route.addr.src_addr, &resp.src_addr,
data/rdma-core-32.0/librdmacm/cma.c:1035:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&id->route.addr.dst_addr, &resp.dst_addr,
data/rdma-core-32.0/librdmacm/cma.c:1060:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&cmd.addr, addr, addrlen);
data/rdma-core-32.0/librdmacm/cma.c:1088:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&cmd.addr, addr, addrlen);
data/rdma-core-32.0/librdmacm/cma.c:1138:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&cmd.src_addr, src_addr, src_len);
data/rdma-core-32.0/librdmacm/cma.c:1139:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&cmd.dst_addr, dst_addr, dst_len);
data/rdma-core-32.0/librdmacm/cma.c:1147:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&id->route.addr.dst_addr, dst_addr, dst_len);
data/rdma-core-32.0/librdmacm/cma.c:1174:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&cmd.src_addr, src_addr, src_len);
data/rdma-core-32.0/librdmacm/cma.c:1175:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&cmd.dst_addr, dst_addr, dst_len);
data/rdma-core-32.0/librdmacm/cma.c:1182:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&id->route.addr.dst_storage, dst_addr, dst_len);
data/rdma-core-32.0/librdmacm/cma.c:1547:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attr_ex, attr, sizeof(*attr));
data/rdma-core-32.0/librdmacm/cma.c:1556:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(attr, &attr_ex, sizeof(*attr));
data/rdma-core-32.0/librdmacm/cma.c:1699:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attr_ex, qp_init_attr, sizeof(*qp_init_attr));
data/rdma-core-32.0/librdmacm/cma.c:1703:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(qp_init_attr, &attr_ex, sizeof(*qp_init_attr));
data/rdma-core-32.0/librdmacm/cma.c:1751:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->private_data, id_priv->connect, id_priv->connect_len);
data/rdma-core-32.0/librdmacm/cma.c:1761:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst->private_data + dst->private_data_len,
data/rdma-core-32.0/librdmacm/cma.c:1967:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(cmd.private_data, private_data, private_data_len);
data/rdma-core-32.0/librdmacm/cma.c:2063:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&mc->addr, addr, addrlen);
data/rdma-core-32.0/librdmacm/cma.c:2079:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&cmd.addr, addr, addrlen);
data/rdma-core-32.0/librdmacm/cma.c:2094:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&cmd.addr, addr, addrlen);
data/rdma-core-32.0/librdmacm/cma.c:2432:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&event->private_data, src->private_data,
data/rdma-core-32.0/librdmacm/cma.c:2453:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&event->private_data, src->private_data,
data/rdma-core-32.0/librdmacm/cma.c:2816:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(id_priv->connect, res->ai_connect, res->ai_connect_len);
data/rdma-core-32.0/librdmacm/examples/cmatose.c:679:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			connections = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/cmatose.c:682:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			message_count = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/cmatose.c:685:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			message_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/cmtime.c:630:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			connections = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/cmtime.c:636:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			retries = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/cmtime.c:639:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			timeout = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/mckey.c:284:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[40];
data/rdma-core-32.0/librdmacm/examples/mckey.c:468:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(addr, res->ai_addr, res->ai_addrlen);
data/rdma-core-32.0/librdmacm/examples/mckey.c:586:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			connections = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/mckey.c:589:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			message_count = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/mckey.c:592:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			message_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/rcopy.c:86:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[0];
data/rdma-core-32.0/librdmacm/examples/rcopy.c:106:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char addr[32];
data/rdma-core-32.0/librdmacm/examples/rcopy.c:259:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR | O_CREAT | O_TRUNC, msg->data);
data/rdma-core-32.0/librdmacm/examples/rcopy.c:431:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(src_file, O_RDONLY);
data/rdma-core-32.0/librdmacm/examples/rdma_xclient.c:42:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char port[6] = "7471";
data/rdma-core-32.0/librdmacm/examples/riostream.c:90:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char test_name[10] = "custom";
data/rdma-core-32.0/librdmacm/examples/riostream.c:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[32];
data/rdma-core-32.0/librdmacm/examples/riostream.c:126:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sstr[5];
data/rdma-core-32.0/librdmacm/examples/riostream.c:137:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sstr[5];
data/rdma-core-32.0/librdmacm/examples/riostream.c:617:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			buffer_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/riostream.c:620:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			inline_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/riostream.c:624:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			iterations = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/riostream.c:628:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			transfer_count = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/riostream.c:635:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				transfer_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/rping.c:1227:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(addr, res->ai_addr, sizeof(struct sockaddr_in));
data/rdma-core-32.0/librdmacm/examples/rping.c:1229:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(addr, res->ai_addr, sizeof(struct sockaddr_in6));
data/rdma-core-32.0/librdmacm/examples/rping.c:1289:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			cb->port = htobe16(atoi(optarg));
data/rdma-core-32.0/librdmacm/examples/rping.c:1290:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			DEBUG_LOG("port %d\n", (int) atoi(optarg));
data/rdma-core-32.0/librdmacm/examples/rping.c:1301:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			cb->size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/rping.c:1309:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				DEBUG_LOG("size %d\n", (int) atoi(optarg));
data/rdma-core-32.0/librdmacm/examples/rping.c:1312:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			cb->count = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/rstream.c:92:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char test_name[10] = "custom";
data/rdma-core-32.0/librdmacm/examples/rstream.c:104:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[32];
data/rdma-core-32.0/librdmacm/examples/rstream.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sstr[5];
data/rdma-core-32.0/librdmacm/examples/rstream.c:139:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sstr[5];
data/rdma-core-32.0/librdmacm/examples/rstream.c:647:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			buffer_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/rstream.c:650:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			inline_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/rstream.c:654:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			iterations = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/rstream.c:658:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			transfer_count = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/rstream.c:665:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				transfer_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/rstream.c:672:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			keepalive = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/udaddy.c:617:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			connections = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/udaddy.c:620:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			message_count = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/udaddy.c:623:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			message_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/udpong.c:95:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char test_name[10] = "custom";
data/rdma-core-32.0/librdmacm/examples/udpong.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[32];
data/rdma-core-32.0/librdmacm/examples/udpong.c:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sstr[5];
data/rdma-core-32.0/librdmacm/examples/udpong.c:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sstr[5];
data/rdma-core-32.0/librdmacm/examples/udpong.c:226:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/rdma-core-32.0/librdmacm/examples/udpong.c:525:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			buffer_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/udpong.c:529:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			transfer_count = atoi(optarg);
data/rdma-core-32.0/librdmacm/examples/udpong.c:533:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			transfer_size = atoi(optarg);
data/rdma-core-32.0/librdmacm/preload.c:158:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[120], prog[64], dom[16], type[16], proto[16];
data/rdma-core-32.0/librdmacm/preload.c:160:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(RS_CONF_DIR "/preload_config", "r");
data/rdma-core-32.0/librdmacm/preload.c:264:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	index = open("/dev/null", O_RDONLY);
data/rdma-core-32.0/librdmacm/preload.c:361:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		sq_size = atoi(var);
data/rdma-core-32.0/librdmacm/preload.c:365:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		rq_size = atoi(var);
data/rdma-core-32.0/librdmacm/preload.c:369:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		sq_inline = atoi(var);
data/rdma-core-32.0/librdmacm/preload.c:373:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		fork_support = atoi(var);
data/rdma-core-32.0/librdmacm/rsocket.c:558:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(RS_CONF_DIR "/polling_time", "r"))) {
data/rdma-core-32.0/librdmacm/rsocket.c:563:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(RS_CONF_DIR "/wake_up_interval", "r");
data/rdma-core-32.0/librdmacm/rsocket.c:568:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(RS_CONF_DIR "/inline_default", "r"))) {
data/rdma-core-32.0/librdmacm/rsocket.c:573:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(RS_CONF_DIR "/sqsize_default", "r"))) {
data/rdma-core-32.0/librdmacm/rsocket.c:578:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(RS_CONF_DIR "/rqsize_default", "r"))) {
data/rdma-core-32.0/librdmacm/rsocket.c:583:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(RS_CONF_DIR "/mem_default", "r"))) {
data/rdma-core-32.0/librdmacm/rsocket.c:591:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(RS_CONF_DIR "/wmem_default", "r"))) {
data/rdma-core-32.0/librdmacm/rsocket.c:598:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(RS_CONF_DIR "/iomap_size", "r"))) {
data/rdma-core-32.0/librdmacm/rsocket.c:1531:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&hdr->addr.ipv6.addr, &addr->sin6.sin6_addr, 16);
data/rdma-core-32.0/librdmacm/rsocket.c:1542:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&qp->dest.addr, addr, addrlen);
data/rdma-core-32.0/librdmacm/rsocket.c:1679:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&new_dest->addr, addr, addrlen);
data/rdma-core-32.0/librdmacm/rsocket.c:1700:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&rs->cm_id->route.addr.dst_addr, addr, addrlen);
data/rdma-core-32.0/librdmacm/rsocket.c:1924:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(sge_buf, &sge, sizeof sge);
data/rdma-core-32.0/librdmacm/rsocket.c:2414:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&sa.sin6.sin6_addr, &hdr->addr.ipv6.addr, 16);
data/rdma-core-32.0/librdmacm/rsocket.c:2416:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(addr, &sa, *addrlen);
data/rdma-core-32.0/librdmacm/rsocket.c:2441:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, (void *) hdr + hdr->length, len);
data/rdma-core-32.0/librdmacm/rsocket.c:2475:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, &rs->rbuf[rbuf_offset], end_size);
data/rdma-core-32.0/librdmacm/rsocket.c:2481:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, &rs->rbuf[rbuf_offset], rsize);
data/rdma-core-32.0/librdmacm/rsocket.c:2544:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buf, &rs->rbuf[rs->rbuf_offset], end_size);
data/rdma-core-32.0/librdmacm/rsocket.c:2551:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, &rs->rbuf[rs->rbuf_offset], rsize);
data/rdma-core-32.0/librdmacm/rsocket.c:2652:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((void *) (uintptr_t) rs->ssgl[0].addr, &iom, sizeof iom);
data/rdma-core-32.0/librdmacm/rsocket.c:2661:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((void *) (uintptr_t) rs->ssgl[0].addr, &iom,
data/rdma-core-32.0/librdmacm/rsocket.c:2664:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(rs->sbuf, ((void *) &iom) + rs->ssgl[0].length,
data/rdma-core-32.0/librdmacm/rsocket.c:2701:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(hdr.addr.ipv6, &rs->conn_dest->qp->hdr.addr.ipv6, 16);
data/rdma-core-32.0/librdmacm/rsocket.c:2707:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&miov[1], iov, sizeof(*iov) * iovcnt);
data/rdma-core-32.0/librdmacm/rsocket.c:2751:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) msg, &rs->conn_dest->qp->hdr, rs->conn_dest->qp->hdr.length);
data/rdma-core-32.0/librdmacm/rsocket.c:2752:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) msg + rs->conn_dest->qp->hdr.length, buf, len);
data/rdma-core-32.0/librdmacm/rsocket.c:2830:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((void *) (uintptr_t) rs->ssgl[0].addr, buf, xfer_size);
data/rdma-core-32.0/librdmacm/rsocket.c:2839:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((void *) (uintptr_t) rs->ssgl[0].addr, buf,
data/rdma-core-32.0/librdmacm/rsocket.c:2842:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(rs->sbuf, buf + rs->ssgl[0].length, rs->ssgl[1].length);
data/rdma-core-32.0/librdmacm/rsocket.c:2897:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (dst, (*iov)->iov_base + *offset, len);
data/rdma-core-32.0/librdmacm/rsocket.c:2902:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst, (*iov)->iov_base + *offset, size);
data/rdma-core-32.0/librdmacm/rsocket.c:3564:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src, size);
data/rdma-core-32.0/librdmacm/rsocket.c:3608:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((f = fopen("/proc/sys/net/ipv4/tcp_keepalive_time", "r"))) {
data/rdma-core-32.0/librdmacm/rsocket.c:3758:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(rs->optval, optval, optlen);
data/rdma-core-32.0/librdmacm/rsocket.c:3912:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(rs->optval, optval, rs->optlen);
data/rdma-core-32.0/librdmacm/rsocket.c:3926:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(opt, &path_data, sizeof(path_data));
data/rdma-core-32.0/librdmacm/rsocket.c:4159:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((void *) (uintptr_t) rs->ssgl[0].addr, buf, xfer_size);
data/rdma-core-32.0/librdmacm/rsocket.c:4168:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((void *) (uintptr_t) rs->ssgl[0].addr, buf,
data/rdma-core-32.0/librdmacm/rsocket.c:4171:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(rs->sbuf, buf + rs->ssgl[0].length, rs->ssgl[1].length);
data/rdma-core-32.0/librdmacm/rsocket.c:4201:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rss, svc->rss, sizeof(*rss) * (svc->cnt + 1));
data/rdma-core-32.0/librdmacm/rsocket.c:4202:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(contexts, svc->contexts, svc->context_size * (svc->cnt + 1));
data/rdma-core-32.0/librdmacm/rsocket.c:4245:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(svc->contexts + i * svc->context_size,
data/rdma-core-32.0/librdmacm/rsocket.c:4326:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&saddr, rdma_get_local_addr(dest->qp->cm_id),
data/rdma-core-32.0/librdmacm/rsocket.c:4391:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) msg, &hdr, hdr.length);
data/rdma-core-32.0/librdmacm/rsocket.c:4392:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) msg + hdr.length, buf, len);
data/rdma-core-32.0/providers/bnxt_re/verbs.c:1082:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst, (void *)(uintptr_t)sg_list[indx].addr,
data/rdma-core-32.0/providers/cxgb4/cq.c:59:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(Q_ENTRY(cq->sw_queue, cq->sw_pidx), &cqe, CQE_SIZE(&cqe));
data/rdma-core-32.0/providers/cxgb4/cq.c:93:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(Q_ENTRY(cq->sw_queue, cq->sw_pidx), &cqe, CQE_SIZE(&cqe));
data/rdma-core-32.0/providers/cxgb4/cq.c:156:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(Q_ENTRY(cq->sw_queue, cq->sw_pidx),
data/rdma-core-32.0/providers/cxgb4/cq.c:293:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(swcqe, hw_cqe, CQE_SIZE(hw_cqe));
data/rdma-core-32.0/providers/cxgb4/qp.c:127:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dstp, srcp, len);
data/rdma-core-32.0/providers/cxgb4/qp.c:287:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((u8 *)immdp->data, (u8 *)(uintptr_t)wr->sg_list->addr, 16);
data/rdma-core-32.0/providers/cxgb4/qp.c:628:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&pwr->wqe, wqe, len16*16);
data/rdma-core-32.0/providers/efa/verbs.c:1177:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attr_ex, attr, sizeof(*attr));
data/rdma-core-32.0/providers/efa/verbs.c:1183:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(attr, &attr_ex, sizeof(*attr));
data/rdma-core-32.0/providers/efa/verbs.c:1217:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attr_ex, attr, sizeof(*attr));
data/rdma-core-32.0/providers/efa/verbs.c:1224:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(attr, &attr_ex, sizeof(*attr));
data/rdma-core-32.0/providers/efa/verbs.c:1349:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(tx_wqe->data.inline_data + total_length,
data/rdma-core-32.0/providers/efa/verbs.c:1691:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tx_wqe->data.inline_data, addr, length);
data/rdma-core-32.0/providers/efa/verbs.c:1718:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(tx_wqe->data.inline_data + total_length,
data/rdma-core-32.0/providers/efa/verbs.c:1914:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(qp->rq.buf + rq_desc_offset, &rx_buf, sizeof(rx_buf));
data/rdma-core-32.0/providers/hfi1verbs/verbs.c:303:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(wc, &q->queue[tail], sizeof(*wc));
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v1.c:554:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(wqe,
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v1.c:610:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, cqe, sizeof(*cqe));
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.c:96:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(get_send_sge_ex(qp, sge_info->start_idx & sge_mask),
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.c:499:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((void *)sge_list[sge_cnt].addr,
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.c:741:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dseg, (void *)(uintptr_t)wr->sg_list[i].addr,
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.c:793:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dseg, (void *)(uintptr_t)(wr->sg_list[i].addr),
data/rdma-core-32.0/providers/hns/hns_roce_u_hw_v2.c:1152:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, cqe, sizeof(*cqe));
data/rdma-core-32.0/providers/i40iw/i40iw_uk.c:481:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, op_info->len);
data/rdma-core-32.0/providers/i40iw/i40iw_uk.c:483:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, I40IW_BYTE_16);
data/rdma-core-32.0/providers/i40iw/i40iw_uk.c:486:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, op_info->len - I40IW_BYTE_16);
data/rdma-core-32.0/providers/i40iw/i40iw_uk.c:495:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(push, wqe, (op_info->len > 16) ? op_info->len + 16 : 32);
data/rdma-core-32.0/providers/i40iw/i40iw_uk.c:555:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, op_info->len);
data/rdma-core-32.0/providers/i40iw/i40iw_uk.c:557:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, I40IW_BYTE_16);
data/rdma-core-32.0/providers/i40iw/i40iw_uk.c:560:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, op_info->len - I40IW_BYTE_16);
data/rdma-core-32.0/providers/i40iw/i40iw_uk.c:569:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(push, wqe, (op_info->len > 16) ? op_info->len + 16 : 32);
data/rdma-core-32.0/providers/ipathverbs/verbs.c:281:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(wc, &q->queue[tail], sizeof(*wc));
data/rdma-core-32.0/providers/mlx4/cq.c:719:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, cqe, sizeof *cqe);
data/rdma-core-32.0/providers/mlx4/cq.c:766:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + ((i + 1) & cq->verbs_cq.cq.cqe) * cq->cqe_size,
data/rdma-core-32.0/providers/mlx4/mlx4dv.h:508:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(seg->av.dgid, dgid, 16);
data/rdma-core-32.0/providers/mlx4/mlx4dv.h:512:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(seg->mac, mac, 6);
data/rdma-core-32.0/providers/mlx4/qp.c:178:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&dseg->av, &to_mah(wr->wr.ud.ah)->av, sizeof (struct mlx4_av));
data/rdma-core-32.0/providers/mlx4/qp.c:182:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dseg->mac, to_mah(wr->wr.ud.ah)->mac, 6);
data/rdma-core-32.0/providers/mlx4/qp.c:402:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(wqe, addr, to_copy);
data/rdma-core-32.0/providers/mlx4/qp.c:416:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(wqe, addr, len);
data/rdma-core-32.0/providers/mlx4/verbs.c:1048:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attr_ex, attr, sizeof *attr);
data/rdma-core-32.0/providers/mlx4/verbs.c:1053:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(attr, &attr_ex, sizeof *attr);
data/rdma-core-32.0/providers/mlx4/verbs.c:1309:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ah->mac, &attr->grh.dgid.raw[8], 3);
data/rdma-core-32.0/providers/mlx4/verbs.c:1310:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ah->mac + 3, &attr->grh.dgid.raw[13], 3);
data/rdma-core-32.0/providers/mlx4/verbs.c:1380:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ah->av.dgid, attr->grh.dgid.raw, 16);
data/rdma-core-32.0/providers/mlx5/buf.c:527:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[128];
data/rdma-core-32.0/providers/mlx5/buf.c:567:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[128];
data/rdma-core-32.0/providers/mlx5/buf.c:576:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		value = atoi(env);
data/rdma-core-32.0/providers/mlx5/buf.c:587:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		value = atoi(env);
data/rdma-core-32.0/providers/mlx5/cq.c:591:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(tag->ptr, cqe64 - 1,
data/rdma-core-32.0/providers/mlx5/cq.c:1770:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, cqe, cq->cqe_sz);
data/rdma-core-32.0/providers/mlx5/cq.c:1832:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dcqe, scqe, ssize);
data/rdma-core-32.0/providers/mlx5/dr_dbg.c:90:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(&dest[2 * i], "%02x", (uint8_t)src[i]);
data/rdma-core-32.0/providers/mlx5/dr_dbg.c:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hw_ste_dump[BUFF_SIZE] = {};
data/rdma-core-32.0/providers/mlx5/dr_dbg.c:307:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dump[BUFF_SIZE] = {};
data/rdma-core-32.0/providers/mlx5/dr_devx.c:619:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pdata, reformat_data, reformat_size);
data/rdma-core-32.0/providers/mlx5/dr_devx.c:656:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(attr, meter_attr->flow_meter_parameter,
data/rdma-core-32.0/providers/mlx5/dr_devx.c:712:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(DEVX_ADDR_OF(flow_meter, attr, modify_field_select),
data/rdma-core-32.0/providers/mlx5/dr_devx.c:718:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(attr, meter_attr->flow_meter_parameter,
data/rdma-core-32.0/providers/mlx5/dr_devx.c:789:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(DEVX_ADDR_OF(qpc, qpc, primary_address_path.rmac_47_32),
data/rdma-core-32.0/providers/mlx5/dr_devx.c:791:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(DEVX_ADDR_OF(qpc, qpc, primary_address_path.rgid_rip),
data/rdma-core-32.0/providers/mlx5/dr_rule.c:141:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ste_info->ste->hw_ste, ste_info->data, DR_STE_SIZE_CTRL);
data/rdma-core-32.0/providers/mlx5/dr_rule.c:143:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ste_info->ste->hw_ste, ste_info->data, DR_STE_SIZE_REDUCED);
data/rdma-core-32.0/providers/mlx5/dr_rule.c:272:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(hw_ste, cur_ste->hw_ste, DR_STE_SIZE_REDUCED);
data/rdma-core-32.0/providers/mlx5/dr_rule.c:296:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_ste->hw_ste, hw_ste, DR_STE_SIZE_REDUCED);
data/rdma-core-32.0/providers/mlx5/dr_rule.c:1173:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&copy_param, param, sizeof(struct dr_match_param));
data/rdma-core-32.0/providers/mlx5/dr_send.c:428:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(wqe, addr, copy);
data/rdma-core-32.0/providers/mlx5/dr_send.c:433:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wqe, addr, len);
data/rdma-core-32.0/providers/mlx5/dr_send.c:530:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ste_info->data_cont, data, size);
data/rdma-core-32.0/providers/mlx5/dr_send.c:634:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(send_ring->buf + buff_offset,
data/rdma-core-32.0/providers/mlx5/dr_send.c:729:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(data + (j * DR_STE_SIZE),
data/rdma-core-32.0/providers/mlx5/dr_send.c:733:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(data + (j * DR_STE_SIZE), htbl->ste_arr[ste_index + j].hw_ste,
data/rdma-core-32.0/providers/mlx5/dr_send.c:736:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(data + (j * DR_STE_SIZE) + DR_STE_SIZE_REDUCED,
data/rdma-core-32.0/providers/mlx5/dr_send.c:782:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(copy_dst, ste_init_data, DR_STE_SIZE_REDUCED);
data/rdma-core-32.0/providers/mlx5/dr_send.c:791:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(copy_dst, ste_init_data, DR_STE_SIZE);
data/rdma-core-32.0/providers/mlx5/dr_ste.c:93:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(hw_ste->mask, bit_mask, DR_STE_SIZE_MASK);
data/rdma-core-32.0/providers/mlx5/dr_ste.c:187:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst->hw_ste, src->hw_ste, DR_STE_SIZE_REDUCED);
data/rdma-core-32.0/providers/mlx5/dr_ste.c:216:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp_ste.hw_ste, ste->hw_ste, DR_STE_SIZE_REDUCED);
data/rdma-core-32.0/providers/mlx5/dr_ste.c:219:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ste->hw_ste, tmp_ste.hw_ste, DR_STE_SIZE_REDUCED);
data/rdma-core-32.0/providers/mlx5/dr_ste.c:261:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(hw_ste, ste->hw_ste, DR_STE_SIZE_REDUCED);
data/rdma-core-32.0/providers/mlx5/dr_ste.c:903:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tail_param[MAX_PARAM_SIZE] = {};
data/rdma-core-32.0/providers/mlx5/dr_ste.c:910:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tail_param, data, mask->match_sz);
data/rdma-core-32.0/providers/mlx5/dr_ste.c:922:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tail_param, data + param_location,
data/rdma-core-32.0/providers/mlx5/dr_ste.c:935:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tail_param, data + param_location,
data/rdma-core-32.0/providers/mlx5/dr_ste.c:948:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tail_param, data + param_location,
data/rdma-core-32.0/providers/mlx5/dr_ste.c:962:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tail_param, data + param_location,
data/rdma-core-32.0/providers/mlx5/dr_ste_v1.c:364:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp_tag, tag, DR_STE_SIZE_TAG);
data/rdma-core-32.0/providers/mlx5/dr_ste_v1.c:367:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tag, mask, DR_STE_SIZE_MASK);
data/rdma-core-32.0/providers/mlx5/dr_ste_v1.c:368:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mask, tmp_tag, DR_STE_SIZE_TAG);
data/rdma-core-32.0/providers/mlx5/dr_ste_v1.c:648:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(padded_data, data, data_sz);
data/rdma-core-32.0/providers/mlx5/dr_ste_v1.c:676:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(addr_inline, data_ptr, inline_data_sz);
data/rdma-core-32.0/providers/mlx5/mlx5.c:182:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	*value = atoi(ptr);
data/rdma-core-32.0/providers/mlx5/mlx5.c:263:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[128];
data/rdma-core-32.0/providers/mlx5/mlx5.c:269:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen("/proc/cpuinfo", "r");
data/rdma-core-32.0/providers/mlx5/mlx5.c:329:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, buf[1024] = {};
data/rdma-core-32.0/providers/mlx5/mlx5.c:338:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char fname[MAXPATHLEN];
data/rdma-core-32.0/providers/mlx5/mlx5.c:344:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(fname, "r");
data/rdma-core-32.0/providers/mlx5/mlx5.c:441:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mlx5_stall_num_loop = atoi(env_value);
data/rdma-core-32.0/providers/mlx5/mlx5.c:445:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mlx5_stall_cq_poll_min = atoi(env_value);
data/rdma-core-32.0/providers/mlx5/mlx5.c:449:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mlx5_stall_cq_poll_max = atoi(env_value);
data/rdma-core-32.0/providers/mlx5/mlx5.c:453:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mlx5_stall_cq_inc_step = atoi(env_value);
data/rdma-core-32.0/providers/mlx5/mlx5.c:457:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mlx5_stall_cq_dec_step = atoi(env_value);
data/rdma-core-32.0/providers/mlx5/mlx5.c:477:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		size = atoi(env);
data/rdma-core-32.0/providers/mlx5/mlx5.c:501:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ctx->dbg_fp = fopen(env, "aw+");
data/rdma-core-32.0/providers/mlx5/mlx5.c:562:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		num = atoi(env);
data/rdma-core-32.0/providers/mlx5/mlx5.c:1365:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(context->hostname, "host_unknown");
data/rdma-core-32.0/providers/mlx5/mlx5.h:292:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				hostname[40];
data/rdma-core-32.0/providers/mlx5/mlx5dv.h:1085:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(seg->av.rmac, rmac, 6);
data/rdma-core-32.0/providers/mlx5/mlx5dv.h:1089:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(seg->av.rgid, rgid, 16);
data/rdma-core-32.0/providers/mlx5/mlx5dv.h:1153:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(seg->inline_hdr_start, inline_hdr_start, inline_hdr_sz);
data/rdma-core-32.0/providers/mlx5/qp.c:89:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((void *)(unsigned long)be64toh(scat->addr),
data/rdma-core-32.0/providers/mlx5/qp.c:351:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(wqe, addr, copy);
data/rdma-core-32.0/providers/mlx5/qp.c:356:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(wqe, addr, len);
data/rdma-core-32.0/providers/mlx5/qp.c:451:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(eseg->inline_hdr_start, addr, inl_hdr_copy_size);
data/rdma-core-32.0/providers/mlx5/qp.c:465:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(eseg->inline_hdr_start +
data/rdma-core-32.0/providers/mlx5/qp.c:675:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(eseg->inline_hdr_start, hdr, copy_sz);
data/rdma-core-32.0/providers/mlx5/qp.c:688:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*seg, hdr, left);
data/rdma-core-32.0/providers/mlx5/qp.c:734:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(eseg->inline_hdr_start, (void *)(uintptr_t)wr->sg_list[0].addr,
data/rdma-core-32.0/providers/mlx5/qp.c:1787:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, copy);
data/rdma-core-32.0/providers/mlx5/qp.c:1792:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest, src, n);
data/rdma-core-32.0/providers/mlx5/qp.c:1801:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*dest, src, copy);
data/rdma-core-32.0/providers/mlx5/qp.c:1806:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*dest, src, n);
data/rdma-core-32.0/providers/mlx5/srq.c:61:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((void *)(unsigned long)be64toh(scat->addr), buf, copy);
data/rdma-core-32.0/providers/mlx5/verbs.c:827:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			size = atoi(env);
data/rdma-core-32.0/providers/mlx5/verbs.c:1995:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd_ex_rss.rx_hash_key, attr->rx_hash_conf.rx_hash_key,
data/rdma-core-32.0/providers/mlx5/verbs.c:2523:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attrx, attr, sizeof(*attr));
data/rdma-core-32.0/providers/mlx5/verbs.c:2528:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(attr, &attrx, sizeof(*attr));
data/rdma-core-32.0/providers/mlx5/verbs.c:2977:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ah->av.rgid, attr->grh.dgid.raw, 16);
data/rdma-core-32.0/providers/mlx5/verbs.c:2988:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ah->av.rmac, resp.dmac, ETHERNET_LL_SIZE);
data/rdma-core-32.0/providers/mthca/ah.c:151:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ah->av->dgid, attr->grh.dgid.raw, 16);
data/rdma-core-32.0/providers/mthca/cq.c:574:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(get_cqe(cq, (prod_index + nfreed) & cq->ibv_cq.cqe),
data/rdma-core-32.0/providers/mthca/cq.c:611:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + (i & cq->ibv_cq.cqe) * MTHCA_CQ_ENTRY_SIZE,
data/rdma-core-32.0/providers/mthca/qp.c:254:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(wqe, (void *) (intptr_t) sge->addr,
data/rdma-core-32.0/providers/mthca/qp.c:582:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(((struct mthca_arbel_ud_seg *) wqe)->av,
data/rdma-core-32.0/providers/mthca/qp.c:620:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(wqe, (void *) (uintptr_t) sge->addr,
data/rdma-core-32.0/providers/ocrdma/ocrdma_main.c:136:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(get_ocrdma_dev(ibdev)->fw_ver, resp.fw_ver, sizeof(resp.fw_ver));
data/rdma-core-32.0/providers/ocrdma/ocrdma_verbs.c:80:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(attr->fw_ver, dev->fw_ver, sizeof(dev->fw_ver));
data/rdma-core-32.0/providers/ocrdma/ocrdma_verbs.c:1204:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dpp_addr,
data/rdma-core-32.0/providers/qedr/qelr_main.c:135:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ctx->dbg_fp = fopen(env, "aw+");
data/rdma-core-32.0/providers/qedr/qelr_main.c:163:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		qelr_dp_level = atoi(env);
data/rdma-core-32.0/providers/qedr/qelr_main.c:167:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		qelr_dp_module = atoi(env);
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1169:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&dpm->payload[dpm->payload_offset], &data, sizeof(data));
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1190:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&dpm->payload[dpm->payload_offset], buf, length);
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1238:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(seg_prt, src, cur);
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1281:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&dpm->payload[dpm->payload_size], sge,
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1325:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dpm->payload, rwqe, sizeof(*rwqe));
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1326:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&dpm->payload[sizeof(*rwqe)], rwqe2,
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1364:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dpm->payload, swqe, sizeof(*swqe));
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1365:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&dpm->payload[sizeof(*swqe)], swqe2,
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1381:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&dpm->payload[dpm->payload_size], awqe1, sizeof(*awqe1));
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1383:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&dpm->payload[dpm->payload_size], awqe2, sizeof(*awqe2));
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:1385:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&dpm->payload[dpm->payload_size], awqe3, sizeof(*awqe3));
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:2786:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&attrx, attr, sizeof(*attr));
data/rdma-core-32.0/providers/qedr/qelr_verbs.c:2792:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(attr, &attrx, sizeof(*attr));
data/rdma-core-32.0/providers/rxe/rxe.c:264:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(wc, src, sizeof(*wc));
data/rdma-core-32.0/providers/rxe/rxe.c:396:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wqe->dma.sge, recv_wr->sg_list,
data/rdma-core-32.0/providers/rxe/rxe.c:606:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&wqe->av, &to_rah(ibwr->wr.ud.ah)->av,
data/rdma-core-32.0/providers/rxe/rxe.c:613:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(inline_data,
data/rdma-core-32.0/providers/rxe/rxe.c:619:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(wqe->dma.sge, ibwr->sg_list,
data/rdma-core-32.0/providers/rxe/rxe.c:771:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&out->_sockaddr_in.sin_addr.s_addr, gid->raw + 12, 4);
data/rdma-core-32.0/providers/rxe/rxe.c:775:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&out->_sockaddr_in6.sin6_addr.s6_addr, gid->raw, 16);
data/rdma-core-32.0/providers/rxe/rxe.c:801:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&av->grh, &attr->grh, sizeof(attr->grh));
data/rdma-core-32.0/providers/siw/siw.c:550:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data,
data/rdma-core-32.0/providers/siw/siw.c:562:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(siw_sqe->sge, base_wr->sg_list,
data/rdma-core-32.0/providers/siw/siw.c:656:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(siw_rqe->sge, base_wr->sg_list,
data/rdma-core-32.0/providers/vmw_pvrdma/verbs.c:176:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(mac, gid->raw + 8, 3);
data/rdma-core-32.0/providers/vmw_pvrdma/verbs.c:177:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(mac + 3, gid->raw + 13, 3);
data/rdma-core-32.0/providers/vmw_pvrdma/verbs.c:221:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(av->dgid, attr->grh.dgid.raw, 16);
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nd[128];
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char new_nd[64];
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:126:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nd_file[PATH_MAX];
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:133:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(nd_file, "r+");
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:242:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[128];
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:248:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	hn_fd = open(SYS_HOSTNAME, O_RDONLY);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:115:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:133:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:139:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_CREAT|O_RDWR,
data/rdma-core-32.0/srp_daemon/srp_daemon.c:158:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256], *s;
data/rdma-core-32.0/srp_daemon/srp_daemon.c:163:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_RDONLY)) < 0)
data/rdma-core-32.0/srp_daemon/srp_daemon.c:184:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64], *str, *s;
data/rdma-core-32.0/srp_daemon/srp_daemon.c:203:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:273:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open(config->add_target_file, O_WRONLY);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:315:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attr_value[64];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:335:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attr_value[64];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:340:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (value != atoi(attr_value))
data/rdma-core-32.0/srp_daemon/srp_daemon.c:409:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open("/sys/module/ib_srp/parameters/use_imm_data", O_RDONLY);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:429:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen("/sys/module/ib_srp/parameters/max_imm_data", "r");
data/rdma-core-32.0/srp_daemon/srp_daemon.c:450:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char scsi_host_dir[256];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:456:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char target_config_str[255];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:463:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(scsi_host_dir, "/sys/class/scsi_host/");
data/rdma-core-32.0/srp_daemon/srp_daemon.c:889:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char val[64];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:956:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(iou_info, in_dm_mad->data, sizeof *iou_info);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:988:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ioc_prof, in_dm_mad->data, sizeof *ioc_prof);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1019:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(svc_entries, in_dm_mad->data, sizeof *svc_entries);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1546:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[255];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1549:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *infile = fopen(conf->rules_file, "r");
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1659:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		conf->port_num = atoi(ibport);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1762:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			conf->port_num = atoi(optarg);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1769:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char dev[32];
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1803:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			conf->timeout = atoi(optarg);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1810:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			conf->mad_retries = atoi(optarg);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1817:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			conf->recalc_time = atoi(optarg);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1824:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			conf->retry_timeout = atoi(optarg);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1834:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			conf->tl_retry_count = atoi(optarg);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:2441:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char val[7];
data/rdma-core-32.0/srp_daemon/srp_daemon.h:158:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		id[64];
data/rdma-core-32.0/srp_daemon/srp_daemon.h:163:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char		name[40];
data/rdma-core-32.0/srp_daemon/srp_daemon.h:176:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char id_ext[17], ioc_guid[17], dgid[33], service_id[17], pkey[10], options[128];
data/rdma-core-32.0/srp_daemon/srp_daemon.h:184:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char 			id_ext[MAX_ID_EXT_STRING_LENGTH];
data/rdma-core-32.0/srp_daemon/srp_daemon.h:276:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filler[MAD_BLOCK_SIZE];
data/rdma-core-32.0/srp_daemon/srp_handle_traps.c:708:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(response_buffer, mad_buffer, sizeof(struct umad_sa_packet));
data/rdma-core-32.0/srp_daemon/srp_sync.c:250:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(target, orig_target, sizeof(struct target_details));
data/rdma-core-32.0/util/node_name_map.c:134:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[PARSE_NODE_MAP_BUFLEN];
data/rdma-core-32.0/util/node_name_map.c:137:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(file_name, "r")))
data/rdma-core-32.0/util/node_name_map.c:155:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(linebuf, line,
data/rdma-core-32.0/util/node_name_map.c:186:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char linebuf[PARSE_NODE_MAP_BUFLEN + 1];
data/rdma-core-32.0/util/open_cdev.c:52:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR | O_CLOEXEC);
data/rdma-core-32.0/ccan/str.c:6:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t i = 0, nlen = strlen(needle);
data/rdma-core-32.0/ccan/str.h:32:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define strstarts(str,prefix) (strncmp((str),(prefix),strlen(prefix)) == 0)
data/rdma-core-32.0/ccan/str.h:45:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) < strlen(postfix))
data/rdma-core-32.0/ccan/str.h:45:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) < strlen(postfix))
data/rdma-core-32.0/ccan/str.h:48:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return streq(str + strlen(str) - strlen(postfix), postfix);
data/rdma-core-32.0/ccan/str.h:48:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return streq(str + strlen(str) - strlen(postfix), postfix);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:1791:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret = memcmp(sip, dip, strlen(dip));
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2308:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(s, "%46s%46s", addr, gid) != 2)
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2325:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy((char *)name, addr, ACM_MAX_ADDRESS);
data/rdma-core-32.0/ibacm/prov/acmp/src/acmp.c:2956:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(s, "%31s%255s", opt, value) != 2)
data/rdma-core-32.0/ibacm/src/acm.c:640:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		saved_mask = umask(0);
data/rdma-core-32.0/ibacm/src/acm.c:643:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(saved_mask);
data/rdma-core-32.0/ibacm/src/acm.c:1249:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char *)msg->ep_data[0].prov_name, ep->port->prov->name,
data/rdma-core-32.0/ibacm/src/acm.c:2220:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(s, "%46s%31s%d%7s", name, dev, &port, pkey_str) != 4)
data/rdma-core-32.0/ibacm/src/acm.c:2238:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy((char *)addr, name, sizeof(addr));
data/rdma-core-32.0/ibacm/src/acm.c:2796:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(prov_name, p, sizeof(prov_name));
data/rdma-core-32.0/ibacm/src/acm.c:2803:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(def_prov_name, prov_name, sizeof(def_prov_name));
data/rdma-core-32.0/ibacm/src/acm.c:2839:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t s1_len = strlen(s1);
data/rdma-core-32.0/ibacm/src/acm.c:2840:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t s2_len = strlen(s2);
data/rdma-core-32.0/ibacm/src/acm.c:3184:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(s, "%31s%255s", opt, value) != 2)
data/rdma-core-32.0/ibacm/src/acm.c:3277:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(lock_fd, pid, strlen(pid)) != strlen(pid)){
data/rdma-core-32.0/ibacm/src/acm.c:3277:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(lock_fd, pid, strlen(pid)) != strlen(pid)){
data/rdma-core-32.0/ibacm/src/parse.c:52:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			width = strlen(token);
data/rdma-core-32.0/ibacm/src/parse.c:57:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			str_buf = realloc(str_buf, size + strlen(buf)+1);
data/rdma-core-32.0/ibacm/src/parse.c:62:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size += strlen(buf)+1;
data/rdma-core-32.0/ibacm/src/parse.c:95:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		str_size = strlen(token) + 1;
data/rdma-core-32.0/infiniband-diags/dump_fts.c:63:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
static int dump_mlid(char *str, int strlen, unsigned mlid, unsigned nports,
data/rdma-core-32.0/infiniband-diags/dump_fts.c:77:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (n >= strlen) {
data/rdma-core-32.0/infiniband-diags/dump_fts.c:78:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				n = strlen;
data/rdma-core-32.0/infiniband-diags/dump_fts.c:122:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(nd, node->nodedesc, strlen(node->nodedesc));
data/rdma-core-32.0/infiniband-diags/dump_fts.c:279:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(nd, port->node->nodedesc, strlen(port->node->nodedesc));
data/rdma-core-32.0/infiniband-diags/dump_fts.c:318:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(nd, node->nodedesc, strlen(node->nodedesc));
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:115:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return ((strncmp(val_str, "TRUE", strlen("TRUE")) == 0) ||
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:116:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(strncmp(val_str, "true", strlen("true")) == 0));
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:147:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(name, "CA", strlen("CA")) == 0) {
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:150:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strncmp(name, "Port", strlen("Port")) == 0) {
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:152:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strncmp(name, "timeout", strlen("timeout")) == 0) {
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:154:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strncmp(name, "MLX_EPI", strlen("MLX_EPI")) == 0) {
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:160:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strncmp(name, "m_key", strlen("m_key")) == 0) {
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:163:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				   strlen("sa_key")) == 0) {
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:166:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				   strlen("nd_format")) == 0) {
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:882:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(mad_field_name(f));
data/rdma-core-32.0/infiniband-diags/ibdiag_common.c:886:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, mad_field_name(f), n);
data/rdma-core-32.0/infiniband-diags/ibping.c:68:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((n = strlen(s)) >= sz)
data/rdma-core-32.0/infiniband-diags/ibping.c:76:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(s) == 0)
data/rdma-core-32.0/infiniband-diags/ibportstate.c:164:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mad_dump_field(IB_PORT_LID_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:165:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:166:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:168:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mad_dump_field(IB_PORT_SMLID_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:169:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:170:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:172:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mad_dump_field(IB_PORT_LMC_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:173:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:174:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:176:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mad_dump_field(IB_PORT_LINK_WIDTH_SUPPORTED_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:177:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:178:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:180:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mad_dump_field(IB_PORT_LINK_WIDTH_ENABLED_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:181:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:182:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:184:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mad_dump_field(IB_PORT_LINK_WIDTH_ACTIVE_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:185:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:186:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:188:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mad_dump_field(IB_PORT_LINK_SPEED_SUPPORTED_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:189:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:190:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:192:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mad_dump_field(IB_PORT_LINK_SPEED_ENABLED_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:193:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:194:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:196:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mad_dump_field(IB_PORT_LINK_SPEED_ACTIVE_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:197:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:198:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:202:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       buf + strlen(buf), sizeof buf - strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:202:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       buf + strlen(buf), sizeof buf - strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:204:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:207:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       buf + strlen(buf), sizeof buf - strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:207:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       buf + strlen(buf), sizeof buf - strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:209:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:212:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       buf + strlen(buf), sizeof buf - strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:212:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       buf + strlen(buf), sizeof buf - strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:214:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sprintf(buf + strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:219:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			mad_dump_field(IB_PORT_MKEY_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:220:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:222:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			snprint_field(buf+strlen(buf), sizeof(buf)-strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:222:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			snprint_field(buf+strlen(buf), sizeof(buf)-strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:224:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sprintf(buf+strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:226:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mad_dump_field(IB_PORT_MKEY_LEASE_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:227:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:228:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sprintf(buf+strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibportstate.c:230:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		mad_dump_field(IB_PORT_MKEY_PROT_BITS_F, buf + strlen(buf),
data/rdma-core-32.0/infiniband-diags/ibportstate.c:231:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       sizeof buf - strlen(buf), val);
data/rdma-core-32.0/infiniband-diags/ibportstate.c:232:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sprintf(buf+strlen(buf), "%s", "\n");
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:115:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(threshold_str)+strlen(tmp)+1);
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:115:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(threshold_str)+strlen(tmp)+1);
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:121:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			n = strlen(threshold_str);
data/rdma-core-32.0/infiniband-diags/ibqueryerrors.c:141:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	threshold_str = malloc(strlen(str)+1);
data/rdma-core-32.0/infiniband-diags/ibroute.c:88:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
static int dump_mlid(char *str, int strlen, unsigned mlid, unsigned nports,
data/rdma-core-32.0/infiniband-diags/ibroute.c:102:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (n >= strlen) {
data/rdma-core-32.0/infiniband-diags/ibroute.c:103:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				n = strlen;
data/rdma-core-32.0/infiniband-diags/ibroute.c:246:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
static int dump_lid(char *str, int strlen, int lid, int valid)
data/rdma-core-32.0/infiniband-diags/ibroute.c:267:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			return snprintf(str, strlen,
data/rdma-core-32.0/infiniband-diags/ibroute.c:271:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			return snprintf(str, strlen,
data/rdma-core-32.0/infiniband-diags/ibroute.c:276:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			return snprintf(str, strlen,
data/rdma-core-32.0/infiniband-diags/ibroute.c:286:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return snprintf(str, strlen, ": (illegal port)");
data/rdma-core-32.0/infiniband-diags/ibroute.c:294:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return snprintf(str, strlen, ": (unknown node and type)");
data/rdma-core-32.0/infiniband-diags/ibroute.c:310:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	rc = snprintf(str, strlen, ": (%s portguid %s: '%s')",
data/rdma-core-32.0/infiniband-diags/ibstat.c:121:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((r = read(fd, str, max_len)) < 0) {
data/rdma-core-32.0/infiniband-diags/ibsysstat.c:124:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((n = strlen(s)) >= sz - 1) {
data/rdma-core-32.0/infiniband-diags/ibsysstat.c:134:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((n = strlen(s)) == 0)
data/rdma-core-32.0/infiniband-diags/ibtracert.c:929:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = (int) strlen(p_first);
data/rdma-core-32.0/infiniband-diags/ibtracert.c:939:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			if (sscanf(portsbuf, "%20s %20s", srcbuf, dstbuf) != 2)
data/rdma-core-32.0/infiniband-diags/perfquery.c:314:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	offset = strlen(buf);
data/rdma-core-32.0/infiniband-diags/perfquery.c:319:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tmp_offset = strlen(buf + offset);
data/rdma-core-32.0/infiniband-diags/saquery.c:420:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf_service_name, (char *)p_sr->service_name, 64);
data/rdma-core-32.0/infiniband-diags/smpquery.c:94:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(nodename);
data/rdma-core-32.0/iwpmd/iwarp_pm_server.c:1510:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0); /* change file mode mask */
data/rdma-core-32.0/kernel-boot/rdma_rename.c:172:9:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		ret = fscanf(fp, "%255s", address);
data/rdma-core-32.0/kernel-boot/rdma_rename.c:325:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(dent->d_name, s, strlen(s)) ||
data/rdma-core-32.0/kernel-boot/rdma_rename.c:326:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(dent->d_name) == strlen(s))
data/rdma-core-32.0/kernel-boot/rdma_rename.c:326:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(dent->d_name) == strlen(s))
data/rdma-core-32.0/libibmad/dump.c:236:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			snprintf(buf + strlen(buf), bufsz - strlen(buf),
data/rdma-core-32.0/libibmad/dump.c:236:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			snprintf(buf + strlen(buf), bufsz - strlen(buf),
data/rdma-core-32.0/libibmad/dump.c:771:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(s);
data/rdma-core-32.0/libibmad/dump.c:790:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, val, bufsz);
data/rdma-core-32.0/libibmad/fields.c:1212:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(name);
data/rdma-core-32.0/libibmad/portid.c:69:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			n += sprintf(buf + n, " ");
data/rdma-core-32.0/libibnetdisc/chassis.c:710:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(node->ch_type_str , system_type, sizeof(node->ch_type_str)-1);
data/rdma-core-32.0/libibnetdisc/ibnetdisc_cache.c:151:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, ((char *) buf) + count_done, count - count_done);
data/rdma-core-32.0/libibumad/sysfs.c:66:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((r = read(fd, (void *)str, max_len)) < 0) {
data/rdma-core-32.0/libibumad/umad.c:155:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(port->ca_name, ca_name, sizeof port->ca_name - 1);
data/rdma-core-32.0/libibumad/umad.c:436:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ca->ca_name, ca_name, sizeof(ca->ca_name) - 1);
data/rdma-core-32.0/libibumad/umad.c:603:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(namelist[i]->d_name) < UMAD_CA_NAME_LEN) {
data/rdma-core-32.0/libibumad/umad.c:612:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char *)cas, def_ca_name, UMAD_CA_NAME_LEN);
data/rdma-core-32.0/libibumad/umad.c:964:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, umad, umad_size() + *length);
data/rdma-core-32.0/libibumad/umad.c:1291:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		d_name_size = strlen(entry->d_name) + 1;
data/rdma-core-32.0/libibumad/umad.c:1307:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ca_name, entry->d_name, d_name_size);
data/rdma-core-32.0/libibverbs/device.c:473:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(context->async_fd, &ev, sizeof ev) != sizeof ev)
data/rdma-core-32.0/libibverbs/examples/devinfo.c:525:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(device_attr.orig_attr.fw_ver))
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:211:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sockfd, msg, sizeof msg) != sizeof msg ||
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:291:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(connfd, msg, sizeof msg);
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:319:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(connfd, msg, sizeof msg) != sizeof "done") {
data/rdma-core-32.0/libibverbs/examples/rc_pingpong.c:347:13:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	ctx->buf = memalign(page_size, size);
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:210:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			r = read(sockfd, msg + n, sizeof msg - n);
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:303:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			r = read(connfd, msg + n, sizeof msg - n);
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:338:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(connfd, msg, sizeof msg) != sizeof "done") {
data/rdma-core-32.0/libibverbs/examples/srq_pingpong.c:367:13:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	ctx->buf = memalign(page_size, size);
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:178:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sockfd, msg, sizeof msg) != sizeof msg ||
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:259:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(connfd, msg, sizeof msg);
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:287:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(connfd, msg, sizeof msg) != sizeof "done") {
data/rdma-core-32.0/libibverbs/examples/uc_pingpong.c:313:13:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	ctx->buf = memalign(page_size, size);
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:178:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sockfd, msg, sizeof msg) != sizeof msg ||
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:257:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(connfd, msg, sizeof msg);
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:284:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(connfd, msg, sizeof msg) != sizeof "done") {
data/rdma-core-32.0/libibverbs/examples/ud_pingpong.c:309:13:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	ctx->buf = memalign(page_size, size + 40);
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:247:12:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	ctx.buf = memalign(page_size, ctx.size);
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:342:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(sockfd, msg + n, TERMINATION_MSG_SIZE - n);
data/rdma-core-32.0/libibverbs/examples/xsrq_pingpong.c:453:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(sockfd, msg + n, MSG_SIZE - n);
data/rdma-core-32.0/libibverbs/neigh.c:375:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				    read(timer_fd, &read_val, sizeof(read_val));
data/rdma-core-32.0/libibverbs/sysfs.c:67:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(dup);
data/rdma-core-32.0/libibverbs/sysfs.c:87:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, size);
data/rdma-core-32.0/libibverbs/verbs.c:548:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(channel->fd, &ev, sizeof ev) != sizeof ev)
data/rdma-core-32.0/librdmacm/examples/rcopy.c:446:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = (((uint32_t) strlen(dst_file)) + 8) & 0xFFFFFFF8;
data/rdma-core-32.0/librdmacm/examples/rdma_xclient.c:146:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(port, optarg, sizeof port - 1);
data/rdma-core-32.0/librdmacm/examples/riostream.c:558:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(arg) == 1) {
data/rdma-core-32.0/librdmacm/examples/rping.c:778:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cb->rdma_sq_wr.sg_list->length = strlen(cb->rdma_buf) + 1;
data/rdma-core-32.0/librdmacm/examples/rstream.c:571:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(arg) == 1) {
data/rdma-core-32.0/librdmacm/examples/udpong.c:474:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(arg) == 1) {
data/rdma-core-32.0/librdmacm/preload.c:72:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t (*read)(int socket, void *buf, size_t count);
data/rdma-core-32.0/librdmacm/preload.c:168:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(line, "%63s%15s%15s%15s", prog, dom, type, proto) != 4)
data/rdma-core-32.0/librdmacm/preload.c:245:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				  strlen(config[i].name))) &&
data/rdma-core-32.0/librdmacm/preload.c:812:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t read(int socket, void *buf, size_t count)
data/rdma-core-32.0/librdmacm/preload.c:817:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rread(fd, buf, count) : real.read(fd, buf, count);
data/rdma-core-32.0/librdmacm/rsocket.c:441:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t __attribute__((unused)) rc = read(fd, msg, len);
data/rdma-core-32.0/librdmacm/rsocket.c:1342:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(rs->accept_queue[0], &new_rs, sizeof(new_rs));
data/rdma-core-32.0/librdmacm/rsocket.c:3071:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(pollsignal, &c, sizeof(c));
data/rdma-core-32.0/librdmacm/rsocket.c:3106:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(pollsignal, &c, sizeof(c));
data/rdma-core-32.0/providers/cxgb4/dev.c:468:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	       c4iw_stats.send, c4iw_stats.recv, c4iw_stats.read,
data/rdma-core-32.0/providers/cxgb4/libcxgb4.h:263:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	unsigned long read;
data/rdma-core-32.0/providers/cxgb4/qp.c:343:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.stag_src = htobe32(wr->wr.rdma.rkey);
data/rdma-core-32.0/providers/cxgb4/qp.c:344:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.to_src_hi = htobe32((u32)(wr->wr.rdma.remote_addr >>32));
data/rdma-core-32.0/providers/cxgb4/qp.c:345:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.to_src_lo = htobe32((u32)wr->wr.rdma.remote_addr);
data/rdma-core-32.0/providers/cxgb4/qp.c:346:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.stag_sink = htobe32(wr->sg_list[0].lkey);
data/rdma-core-32.0/providers/cxgb4/qp.c:347:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.plen = htobe32(wr->sg_list[0].length);
data/rdma-core-32.0/providers/cxgb4/qp.c:348:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.to_sink_hi = htobe32((u32)(wr->sg_list[0].addr >> 32));
data/rdma-core-32.0/providers/cxgb4/qp.c:349:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.to_sink_lo = htobe32((u32)(wr->sg_list[0].addr));
data/rdma-core-32.0/providers/cxgb4/qp.c:351:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.stag_src = htobe32(2);
data/rdma-core-32.0/providers/cxgb4/qp.c:352:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.to_src_hi = 0;
data/rdma-core-32.0/providers/cxgb4/qp.c:353:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.to_src_lo = 0;
data/rdma-core-32.0/providers/cxgb4/qp.c:354:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.stag_sink = htobe32(2);
data/rdma-core-32.0/providers/cxgb4/qp.c:355:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.plen = 0;
data/rdma-core-32.0/providers/cxgb4/qp.c:356:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.to_sink_hi = 0;
data/rdma-core-32.0/providers/cxgb4/qp.c:357:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		wqe->read.to_sink_lo = 0;
data/rdma-core-32.0/providers/cxgb4/qp.c:359:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	wqe->read.r2 = 0;
data/rdma-core-32.0/providers/cxgb4/qp.c:360:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	wqe->read.r5 = 0;
data/rdma-core-32.0/providers/cxgb4/qp.c:361:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	*len16 = DIV_ROUND_UP(sizeof wqe->read, 16);
data/rdma-core-32.0/providers/cxgb4/qp.c:565:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			INC_STAT(read);
data/rdma-core-32.0/providers/cxgb4/t4.h:136:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	struct fw_ri_rdma_read_wr read;
data/rdma-core-32.0/providers/cxgb4/t4fw_ri_api.h:783:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				struct fw_ri_rdma_read_wr read;
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:250:17:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	info.cq_base = memalign(I40IW_HW_PAGE_SIZE, totalsize);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:519:13:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	info->sq = memalign(I40IW_HW_PAGE_SIZE, totalqpsize);
data/rdma-core-32.0/providers/i40iw/i40iw_uverbs.c:645:10:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	iwuqp = memalign(1024, sizeof(*iwuqp));
data/rdma-core-32.0/providers/mlx5/dr_send.c:502:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			 &send_info->read, MLX5_OPCODE_RDMA_READ, 1);
data/rdma-core-32.0/providers/mlx5/dr_send.c:602:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	send_info->read.length = send_info->write.length;
data/rdma-core-32.0/providers/mlx5/dr_send.c:605:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		send_info->read.addr = (uintptr_t)send_ring->sync_buff;
data/rdma-core-32.0/providers/mlx5/dr_send.c:606:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		send_info->read.lkey = send_ring->sync_mr->lkey;
data/rdma-core-32.0/providers/mlx5/dr_send.c:609:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		send_info->read.addr = (uintptr_t)send_info->write.addr;
data/rdma-core-32.0/providers/mlx5/dr_send.c:610:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		send_info->read.lkey = send_ring->mr->lkey;
data/rdma-core-32.0/providers/mlx5/dr_send.c:614:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		send_info->read.send_flags = IBV_SEND_SIGNALED;
data/rdma-core-32.0/providers/mlx5/dr_send.c:616:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		send_info->read.send_flags = 0;
data/rdma-core-32.0/providers/mlx5/mlx5.c:336:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, env_value, sizeof(buf) - 1);
data/rdma-core-32.0/providers/mlx5/mlx5.c:710:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		     capability.odp_cap.dc_odp_caps.read))
data/rdma-core-32.0/providers/mlx5/mlx5_ifc.h:1062:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	u8         read[0x1];
data/rdma-core-32.0/providers/mlx5/mlx5dv_dr.h:171:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	struct dr_data_seg	read;
data/rdma-core-32.0/providers/mlx5/verbs.c:4144:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				 uint32_t read)
data/rdma-core-32.0/providers/mlx5/verbs.c:4164:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read) {
data/rdma-core-32.0/providers/mlx5/verbs.c:5311:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(cmd_comp->fd, cmd_resp, cmd_resp_len);
data/rdma-core-32.0/providers/mlx5/verbs.c:5327:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(event_channel->fd, event_data, event_resp_len);
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:186:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, name, len-1) >= 0) {
data/rdma-core-32.0/rdma-ndd/rdma-ndd.c:338:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (g_nd_format && strncmp("", g_nd_format, strlen(g_nd_format)) != 0)
data/rdma-core-32.0/srp_daemon/srp_daemon.c:125:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ret = read(fd, buf, sizeof(buf))) > 0)
data/rdma-core-32.0/srp_daemon/srp_daemon.c:166:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((r = read(fd, str, max_len)) < 0) {
data/rdma-core-32.0/srp_daemon/srp_daemon.c:278:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ret = write(fd, target_str, strlen(target_str));
data/rdma-core-32.0/srp_daemon/srp_daemon.c:316:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(value);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:413:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	cnt = read(fd, &flag, 1);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:469:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	prefix_len = strlen(scsi_host_dir);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:482:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(subdir_name_ptr, subdir->d_name,
data/rdma-core-32.0/srp_daemon/srp_daemon.c:728:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(dup);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1106:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
					if (sscanf(svc_entries.service[k].name,
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1483:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		optnamelen = strlen(opt_info[i].name);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1522:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(optr);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:1526:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		optnamelen = strlen(opt[i]);
data/rdma-core-32.0/srp_daemon/srp_daemon.c:2220:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strcmp(argv[0] + max_t(int, 0, strlen(argv[0]) - strlen("ibsrpdm")),
data/rdma-core-32.0/srp_daemon/srp_daemon.c:2220:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strcmp(argv[0] + max_t(int, 0, strlen(argv[0]) - strlen("ibsrpdm")),
data/rdma-core-32.0/util/open_cdev.c:118:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(ifd, buf, sizeof(buf)) == -1)

ANALYSIS SUMMARY:

Hits = 1583
Lines analyzed = 192844 in approximately 4.48 seconds (43026 lines/second)
Physical Source Lines of Code (SLOC) = 143717
Hits@level = [0] 2233 [1] 234 [2] 955 [3]  84 [4] 308 [5]   2
Hits@level+ = [0+] 3816 [1+] 1583 [2+] 1349 [3+] 394 [4+] 310 [5+]   2
Hits/KSLOC@level+ = [0+] 26.5522 [1+] 11.0147 [2+] 9.3865 [3+] 2.7415 [4+] 2.15702 [5+] 0.0139162
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.