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/accelio-1.7/benchmarks/usr/xio_perftest/get_clock.c Examining data/accelio-1.7/benchmarks/usr/xio_perftest/get_clock.h Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_msg.c Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_msg.h Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest.c Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest.h Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_client.c Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.h Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_parameters.h Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_resources.h Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_server.c Examining data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_parameters.c Examining data/accelio-1.7/examples/kernel/hello_world/xio_client.c Examining data/accelio-1.7/examples/kernel/hello_world/xio_server.c Examining data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c Examining data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c Examining data/accelio-1.7/examples/raio/kernel/nbdx/nbdx.h Examining data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_configfs.c Examining data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_main.c Examining data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_mq.c Examining data/accelio-1.7/examples/raio/kernel/nbdx/raio_kbuffer.h Examining data/accelio-1.7/examples/raio/kernel/nbdx/raio_kutils.c Examining data/accelio-1.7/examples/raio/kernel/nbdx/raio_kutils.h Examining data/accelio-1.7/examples/raio/usr/client/get_clock.c Examining data/accelio-1.7/examples/raio/usr/client/get_clock.h Examining data/accelio-1.7/examples/raio/usr/client/raio_client.c Examining data/accelio-1.7/examples/raio/usr/fio/libraio.c Examining data/accelio-1.7/examples/raio/usr/libraio/libraio.h Examining data/accelio-1.7/examples/raio/usr/libraio/raio_api.c Examining data/accelio-1.7/examples/raio/usr/libraio/raio_buffer.h Examining data/accelio-1.7/examples/raio/usr/libraio/raio_command.h Examining data/accelio-1.7/examples/raio/usr/libraio/raio_msg_pool.c Examining data/accelio-1.7/examples/raio/usr/libraio/raio_msg_pool.h Examining data/accelio-1.7/examples/raio/usr/libraio/raio_utils.c Examining data/accelio-1.7/examples/raio/usr/libraio/raio_utils.h Examining data/accelio-1.7/examples/raio/usr/server/bitset.c Examining data/accelio-1.7/examples/raio/usr/server/bitset.h Examining data/accelio-1.7/examples/raio/usr/server/raio_bs.c Examining data/accelio-1.7/examples/raio/usr/server/raio_bs.h Examining data/accelio-1.7/examples/raio/usr/server/raio_bs_aio.c Examining data/accelio-1.7/examples/raio/usr/server/raio_bs_null.c Examining data/accelio-1.7/examples/raio/usr/server/raio_handlers.c Examining data/accelio-1.7/examples/raio/usr/server/raio_handlers.h Examining data/accelio-1.7/examples/raio/usr/server/raio_server.c Examining data/accelio-1.7/examples/usr/hello_world/xio_client.c Examining data/accelio-1.7/examples/usr/hello_world/xio_server.c Examining data/accelio-1.7/examples/usr/hello_world_daemon/xioclntd.c Examining data/accelio-1.7/examples/usr/hello_world_daemon/xiosrvd.c Examining data/accelio-1.7/examples/usr/hello_world_iov/xio_client.c Examining data/accelio-1.7/examples/usr/hello_world_iov/xio_server.c Examining data/accelio-1.7/examples/usr/hello_world_libevent/xio_client.c Examining data/accelio-1.7/examples/usr/hello_world_libevent/xio_server.c Examining data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_client.c Examining data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c Examining data/accelio-1.7/include/libxio.h Examining data/accelio-1.7/include/xio_base.h Examining data/accelio-1.7/include/xio_kernel.h Examining data/accelio-1.7/include/xio_predefs.h Examining data/accelio-1.7/include/xio_user.h Examining data/accelio-1.7/regression/usr/common/obj_pool.h Examining data/accelio-1.7/regression/usr/common/reg_utils.h Examining data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c Examining data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_client.c Examining data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c Examining data/accelio-1.7/src/common/sys/hashtable.h Examining data/accelio-1.7/src/common/xio_common.h Examining data/accelio-1.7/src/common/xio_connection.c Examining data/accelio-1.7/src/common/xio_connection.h Examining data/accelio-1.7/src/common/xio_context.h Examining data/accelio-1.7/src/common/xio_error.c Examining data/accelio-1.7/src/common/xio_hash.h Examining data/accelio-1.7/src/common/xio_idr.c Examining data/accelio-1.7/src/common/xio_idr.h Examining data/accelio-1.7/src/common/xio_mbuf.h Examining data/accelio-1.7/src/common/xio_msg_list.h Examining data/accelio-1.7/src/common/xio_nexus.c Examining data/accelio-1.7/src/common/xio_nexus.h Examining data/accelio-1.7/src/common/xio_nexus_cache.c Examining data/accelio-1.7/src/common/xio_nexus_cache.h Examining data/accelio-1.7/src/common/xio_objpool.c Examining data/accelio-1.7/src/common/xio_objpool.h Examining data/accelio-1.7/src/common/xio_observer.c Examining data/accelio-1.7/src/common/xio_observer.h Examining data/accelio-1.7/src/common/xio_options.c Examining data/accelio-1.7/src/common/xio_protocol.h Examining data/accelio-1.7/src/common/xio_server.c Examining data/accelio-1.7/src/common/xio_server.h Examining data/accelio-1.7/src/common/xio_session.c Examining data/accelio-1.7/src/common/xio_session.h Examining data/accelio-1.7/src/common/xio_session_client.c Examining data/accelio-1.7/src/common/xio_session_priv.h Examining data/accelio-1.7/src/common/xio_session_server.c Examining data/accelio-1.7/src/common/xio_sessions_cache.c Examining data/accelio-1.7/src/common/xio_sessions_cache.h Examining data/accelio-1.7/src/common/xio_sg_table.h Examining data/accelio-1.7/src/common/xio_task.h Examining data/accelio-1.7/src/common/xio_transport.c Examining data/accelio-1.7/src/common/xio_transport.h Examining data/accelio-1.7/src/common/xio_utils.c Examining data/accelio-1.7/src/common/xio_workqueue.h Examining data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_datapath.c Examining data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_management.c Examining data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_memory.c Examining data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_transport.h Examining data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_utils.c Examining data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_utils.h Examining data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_verbs.c Examining data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_datapath.c Examining data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_management.c Examining data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_transport.h Examining data/accelio-1.7/src/kernel/transport/xio_ktransport.c Examining data/accelio-1.7/src/kernel/transport/xio_ktransport.h Examining data/accelio-1.7/src/kernel/xio/xio_context.c Examining data/accelio-1.7/src/kernel/xio/xio_context_priv.h Examining data/accelio-1.7/src/kernel/xio/xio_ev_data.h Examining data/accelio-1.7/src/kernel/xio/xio_ev_loop.c Examining data/accelio-1.7/src/kernel/xio/xio_ev_loop.h Examining data/accelio-1.7/src/kernel/xio/xio_init.c Examining data/accelio-1.7/src/kernel/xio/xio_kernel_utils.c Examining data/accelio-1.7/src/kernel/xio/xio_mem.c Examining data/accelio-1.7/src/kernel/xio/xio_mem.h Examining data/accelio-1.7/src/kernel/xio/xio_mempool.c Examining data/accelio-1.7/src/kernel/xio/xio_mempool.h Examining data/accelio-1.7/src/kernel/xio/xio_os.h Examining data/accelio-1.7/src/kernel/xio/xio_sg_iov.c Examining data/accelio-1.7/src/kernel/xio/xio_sg_iovptr.c Examining data/accelio-1.7/src/kernel/xio/xio_sg_scatter.c Examining data/accelio-1.7/src/kernel/xio/xio_sg_table.c Examining data/accelio-1.7/src/kernel/xio/xio_task.c Examining data/accelio-1.7/src/kernel/xio/xio_workqueue.c Examining data/accelio-1.7/src/kernel/xio/xio_workqueue_priv.h Examining data/accelio-1.7/src/kernel/xio_log.h Examining data/accelio-1.7/src/libxio_os/linuxapp/xio_env.h Examining data/accelio-1.7/src/libxio_os/linuxapp/xio_env_adv.h Examining data/accelio-1.7/src/libxio_os/linuxapp/xio_env_basic.h Examining data/accelio-1.7/src/libxio_os/linuxkernel/xio_env.h Examining data/accelio-1.7/src/libxio_os/linuxkernel/xio_env_adv.h Examining data/accelio-1.7/src/libxio_os/linuxkernel/xio_env_basic.h Examining data/accelio-1.7/src/libxio_os/winapp/list.h Examining data/accelio-1.7/src/libxio_os/winapp/spinlock.h Examining data/accelio-1.7/src/libxio_os/winapp/xio_env.h Examining data/accelio-1.7/src/libxio_os/winapp/xio_env_adv.h Examining data/accelio-1.7/src/libxio_os/winapp/xio_env_basic.h Examining data/accelio-1.7/src/libxio_os/winapp/xio_os.h Examining data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c Examining data/accelio-1.7/src/tools/usr/xio_mem_usage.c Examining data/accelio-1.7/src/usr/linux/atomic.h Examining data/accelio-1.7/src/usr/linux/bitops.h Examining data/accelio-1.7/src/usr/linux/debugfs.h Examining data/accelio-1.7/src/usr/linux/jiffies.h Examining data/accelio-1.7/src/usr/linux/kernel.h Examining data/accelio-1.7/src/usr/linux/kref.h Examining data/accelio-1.7/src/usr/linux/list.h Examining data/accelio-1.7/src/usr/linux/printk.h Examining data/accelio-1.7/src/usr/linux/slab.h Examining data/accelio-1.7/src/usr/linux/usr.h Examining data/accelio-1.7/src/usr/transport/rdma/ib_cm.h Examining data/accelio-1.7/src/usr/transport/rdma/xio_rdma_datapath.c Examining data/accelio-1.7/src/usr/transport/rdma/xio_rdma_management.c Examining data/accelio-1.7/src/usr/transport/rdma/xio_rdma_transport.h Examining data/accelio-1.7/src/usr/transport/rdma/xio_rdma_utils.c Examining data/accelio-1.7/src/usr/transport/rdma/xio_rdma_utils.h Examining data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c Examining data/accelio-1.7/src/usr/transport/tcp/xio_tcp_datapath.c Examining data/accelio-1.7/src/usr/transport/tcp/xio_tcp_management.c Examining data/accelio-1.7/src/usr/transport/tcp/xio_tcp_transport.h Examining data/accelio-1.7/src/usr/transport/xio_mempool.c Examining data/accelio-1.7/src/usr/transport/xio_mempool.h Examining data/accelio-1.7/src/usr/transport/xio_usr_transport.c Examining data/accelio-1.7/src/usr/transport/xio_usr_transport.h Examining data/accelio-1.7/src/usr/xio/get_clock.c Examining data/accelio-1.7/src/usr/xio/get_clock.h Examining data/accelio-1.7/src/usr/xio/xio_context.c Examining data/accelio-1.7/src/usr/xio/xio_context_priv.h Examining data/accelio-1.7/src/usr/xio/xio_ev_data.h Examining data/accelio-1.7/src/usr/xio/xio_ev_loop.c Examining data/accelio-1.7/src/usr/xio/xio_ev_loop.h Examining data/accelio-1.7/src/usr/xio/xio_init.c Examining data/accelio-1.7/src/usr/xio/xio_init.h Examining data/accelio-1.7/src/usr/xio/xio_log.c Examining data/accelio-1.7/src/usr/xio/xio_log.h Examining data/accelio-1.7/src/usr/xio/xio_mem.c Examining data/accelio-1.7/src/usr/xio/xio_mem.h Examining data/accelio-1.7/src/usr/xio/xio_netlink.c Examining data/accelio-1.7/src/usr/xio/xio_os.h Examining data/accelio-1.7/src/usr/xio/xio_sg_iov.c Examining data/accelio-1.7/src/usr/xio/xio_sg_iovptr.c Examining data/accelio-1.7/src/usr/xio/xio_sg_table.c Examining data/accelio-1.7/src/usr/xio/xio_task.c Examining data/accelio-1.7/src/usr/xio/xio_timers_list.h Examining data/accelio-1.7/src/usr/xio/xio_tls.c Examining data/accelio-1.7/src/usr/xio/xio_tls.h Examining data/accelio-1.7/src/usr/xio/xio_usr_utils.c Examining data/accelio-1.7/src/usr/xio/xio_usr_utils.h Examining data/accelio-1.7/src/usr/xio/xio_workqueue.c Examining data/accelio-1.7/src/usr/xio/xio_workqueue_priv.h Examining data/accelio-1.7/tests/kernel/common/xio_msg.c Examining data/accelio-1.7/tests/kernel/common/xio_msg.h Examining data/accelio-1.7/tests/kernel/common/xio_test_utils.c Examining data/accelio-1.7/tests/kernel/common/xio_test_utils.h Examining data/accelio-1.7/tests/kernel/direct_rdma_test/xio_client.c Examining data/accelio-1.7/tests/kernel/direct_rdma_test/xio_rdma_common_kernel.c Examining data/accelio-1.7/tests/kernel/direct_rdma_test/xio_server.c Examining data/accelio-1.7/tests/kernel/hello_test/xio_client.c Examining data/accelio-1.7/tests/kernel/hello_test/xio_server.c Examining data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_client.c Examining data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_server.c Examining data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_client.c Examining data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_server.c Examining data/accelio-1.7/tests/portable/abstraction.h Examining data/accelio-1.7/tests/portable/direct_rdma_test/xio_rdma_common.h Examining data/accelio-1.7/tests/portable/direct_rdma_test/xio_rdma_common.c Examining data/accelio-1.7/tests/usr/common/xio_intf.c Examining data/accelio-1.7/tests/usr/common/xio_intf.h Examining data/accelio-1.7/tests/usr/common/xio_msg.c Examining data/accelio-1.7/tests/usr/common/xio_msg.h Examining data/accelio-1.7/tests/usr/common/xio_test_utils.c Examining data/accelio-1.7/tests/usr/common/xio_test_utils.h Examining data/accelio-1.7/tests/usr/common/xio_thread.c Examining data/accelio-1.7/tests/usr/common/xio_thread.h Examining data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_client.c Examining data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_common_usr.c Examining data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_server.c Examining data/accelio-1.7/tests/usr/event_loop_tests/event_loop_tests.c Examining data/accelio-1.7/tests/usr/hello_test/xio_client.c Examining data/accelio-1.7/tests/usr/hello_test/xio_server.c Examining data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.c Examining data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.c Examining data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_client.c Examining data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_server.c Examining data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_client.c Examining data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c Examining data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.c Examining data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_server.c Examining data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_client.c Examining data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_server.c Examining data/accelio-1.7/win/event_loop_tests/stdafx.cpp Examining data/accelio-1.7/win/event_loop_tests/stdafx.h Examining data/accelio-1.7/win/event_loop_tests/targetver.h Examining data/accelio-1.7/win/hello_world_client/stdafx.cpp Examining data/accelio-1.7/win/hello_world_client/stdafx.h Examining data/accelio-1.7/win/hello_world_client/targetver.h Examining data/accelio-1.7/win/hello_world_server/stdafx.cpp Examining data/accelio-1.7/win/hello_world_server/stdafx.h Examining data/accelio-1.7/win/hello_world_server/targetver.h Examining data/accelio-1.7/win/iocp_echo_server/iocp_echo_server.c Examining data/accelio-1.7/win/xiodll/dllmain.cpp Examining data/accelio-1.7/win/xiodll/stdafx.cpp Examining data/accelio-1.7/win/xiodll/stdafx.h Examining data/accelio-1.7/win/xiodll/targetver.h Examining data/accelio-1.7/win/xiodll/xio_ev_loop-iocp.c Examining data/accelio-1.7/win/xiodll/xio_ev_loop-select.c Examining data/accelio-1.7/win/xiodll/xiodll.cpp FINAL RESULTS: data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:538:9: [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. len = readlink(path, buf, sizeof(buf) - 1); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:67:9: [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. len = readlink(path, buf, sizeof(buf) - 1); data/accelio-1.7/tests/usr/common/xio_intf.c:128:9: [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. len = readlink(path, buf, sizeof(buf) - 1); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_client.c:484:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_client.c:553: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(REPORT_FMT, data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:243:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://*:%d", data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:253:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:484: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(if_name, ifa->ifa_name); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:546: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(buf, ptr); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:548: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(master, buf); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_parameters.c:122:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", transport, host, port); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_server.c:307:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://*:%d", data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_server.c:335: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(REPORT_FMT, data/accelio-1.7/examples/kernel/hello_world/xio_client.c:266:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", argv[4], argv[1], argv[2]); data/accelio-1.7/examples/kernel/hello_world/xio_server.c:319:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", argv[4], argv[1], argv[2]); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:479:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", argv[1], argv[2]); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:554:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. return sprintf(buf, "%s %s %s\n", data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:601:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. return sprintf(buf, "%s %s\n", data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:122:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s:%d", sdata->base_portal, sdata->port + i + 1); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:350:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s:%d", sdata->base_portal, tdata->port); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:522:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sdata->base_portal, "rdma://%s", argv[1]); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:523:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s:%s", sdata->base_portal, argv[2]); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:711:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. return sprintf(buf, "%s %s %s\n", data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:759:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. return sprintf(buf, "%s %s\n", data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_configfs.c:57: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(page, "%s", xdev_name); data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_configfs.c:137: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(name, "%s", nbdx_file->dev_name); data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_configfs.c:169: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(strcat(rdma, buf), "%s", rdma); data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_configfs.c:169:9: [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). sscanf(strcat(rdma, buf), "%s", rdma); data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_main.c:570: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(xdev_name, "%s", nbdx_file->file_name); data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_main.c:755: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(nbdx_session->portal, portal); data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_mq.c:318: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(nbdx_file->dev_name, "%s", nbdx_file->disk->disk_name); data/accelio-1.7/examples/raio/usr/fio/libraio.c:255: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(host, sep1); data/accelio-1.7/examples/raio/usr/fio/libraio.c:272: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(path, sep); data/accelio-1.7/examples/raio/usr/libraio/raio_api.c:468:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/examples/raio/usr/server/raio_server.c:732:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", transport, server_addr, server_port); data/accelio-1.7/examples/raio/usr/server/raio_server.c:765:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(server_data.tdata[i].portal, "%s://%s:%d", data/accelio-1.7/examples/usr/hello_world/xio_client.c:215:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", argv[3], argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world/xio_client.c:217:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world/xio_server.c:308:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", argv[3], argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world/xio_server.c:310:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_daemon/xioclntd.c:434:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", trans, addr, port); data/accelio-1.7/examples/usr/hello_world_daemon/xioclntd.c:436:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", addr, port); data/accelio-1.7/examples/usr/hello_world_daemon/xiosrvd.c:443:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", trans, addr, port); data/accelio-1.7/examples/usr/hello_world_daemon/xiosrvd.c:445:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", addr, port); data/accelio-1.7/examples/usr/hello_world_iov/xio_client.c:371:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", argv[3], argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_iov/xio_client.c:373:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_iov/xio_server.c:434:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", argv[3], argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_iov/xio_server.c:436:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_libevent/xio_client.c:210:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", argv[3], argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_libevent/xio_client.c:212:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_libevent/xio_server.c:240:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", argv[3], argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_libevent/xio_server.c:242:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_client.c:248:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%s", argv[3], argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_client.c:250:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", argv[1], argv[2]); data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:320:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", argv[3], argv[1], port); data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:322:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%d", argv[1], port); data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:341:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(server_data->tdata[i].portal, "%s://%s:%d", data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:344:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(server_data->tdata[i].portal, "rdma://%s:%d", data/accelio-1.7/regression/usr/common/reg_utils.h:52: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, __VA_ARGS__); \ data/accelio-1.7/regression/usr/common/reg_utils.h:57: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, __VA_ARGS__); \ data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_client.c:571:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%s", argv[1], argv[2]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:654:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%d", argv[1], port); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:671:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(server_data->tdata[i].portal, "rdma://%s:%d", data/accelio-1.7/src/common/xio_utils.c:130: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(resource, res); data/accelio-1.7/src/kernel/xio/xio_context.c:685:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pool_name, "ctx:%p - initial_pool_%s", ctx, proto_str); data/accelio-1.7/src/kernel/xio/xio_context.c:691:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pool_name, "ctx:%p - primary_pool_%s", ctx, proto_str); data/accelio-1.7/src/kernel/xio/xio_kernel_utils.c:142: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(port, p1 + 2); data/accelio-1.7/src/kernel/xio/xio_kernel_utils.c:164: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(port, (p1 + 1)); data/accelio-1.7/src/libxio_os/winapp/xio_env.h:665:9: [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. #define snprintf c99_snprintf data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:75: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(buf, ptr); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:77: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(master, buf); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:220:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(flags, "%s %s", flags, "UP"); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:222:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(flags, "%s %s", flags, "DOWN"); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:224:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(flags, "%s %s", flags, "LOOPBACK"); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:226:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(flags, "%s %s", flags, "RUNNING"); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:231:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(flags, "%s %s - [%s]", flags, "SLAVE", master); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:234:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(flags, "%s %s", flags, "MASTER"); data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:132: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. reg_mem->addr, length, access); data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:226:20: [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 access) data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:237: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. reg_mr_in.exp_access = access; data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:248: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. *addr, length, access); data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:275:74: [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. static struct xio_mr *xio_reg_mr_ex(void **addr, size_t length, uint64_t access) data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:284: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. if ((access & IBV_XIO_ACCESS_ALLOCATE_MR) == 0 && data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:322: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. tmr_elem = xio_reg_mr_ex_dev(dev, addr, length, access); data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:331: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. if (access & IBV_XIO_ACCESS_ALLOCATE_MR) { data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:332:4: [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_XIO_ACCESS_ALLOCATE_MR; data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:341: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. tmr->access = access; data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:443: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. tmr->access); data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:520: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. uint64_t access; data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:539: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_XIO_ACCESS_ALLOCATE_MR; data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:541:55: [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. reg_mem->mr = xio_reg_mr_ex(®_mem->addr, length, access); data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:558:54: [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. reg_mem->mr = xio_reg_mr_ex(®_mem->addr, length, access); data/accelio-1.7/src/usr/transport/rdma/xio_rdma_verbs.c:562: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. reg_mem->addr, length, access); data/accelio-1.7/src/usr/transport/xio_usr_transport.c:107: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. reg_mem->addr, length, access); data/accelio-1.7/src/usr/transport/xio_usr_transport.h:85: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. int access; /* for new devices */ data/accelio-1.7/src/usr/xio/xio_context.c:727:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pool_name, "ctx:%p - initial_pool_%s", ctx, proto_str); data/accelio-1.7/src/usr/xio/xio_context.c:733:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pool_name, "ctx:%p - primary_pool_%s", ctx, proto_str); data/accelio-1.7/src/usr/xio/xio_log.c:69:11: [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. length = vsnprintf(buf, sizeof(buf), fmt, args); data/accelio-1.7/src/usr/xio/xio_log.h:52:28: [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, fmtarg, varg))) data/accelio-1.7/src/usr/xio/xio_netlink.c:103: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(ptr, ctx->stats.name[i]); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:108:5: [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(port, tp); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:122:5: [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(port, cp); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:128:5: [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(host, cp); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:138: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(port, tp); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:199: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(port, p1 + 2); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:221: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(port, (p1 + 1)); data/accelio-1.7/tests/kernel/hello_test/xio_client.c:515:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->server_addr, "%s", argv[1]); data/accelio-1.7/tests/kernel/hello_test/xio_client.c:524:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->transport, "%s", argv[3]); data/accelio-1.7/tests/kernel/hello_test/xio_client.c:792:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/kernel/hello_test/xio_server.c:413:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->server_addr, "%s", argv[1]); data/accelio-1.7/tests/kernel/hello_test/xio_server.c:422:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->transport, "%s", argv[3]); data/accelio-1.7/tests/kernel/hello_test/xio_server.c:538:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_client.c:452:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->server_addr, "%s", argv[1]); data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_client.c:461:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->transport, "%s", argv[3]); data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_client.c:580:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_server.c:365:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->server_addr, "%s", argv[1]); data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_server.c:374:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->transport, "%s", argv[3]); data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_server.c:484:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_client.c:515:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->server_addr, "%s", argv[1]); data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_client.c:524:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->transport, "%s", argv[3]); data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_client.c:672:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_server.c:369:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->server_addr, "%s", argv[1]); data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_server.c:378:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(test_config->transport, "%s", argv[3]); data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_server.c:489:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/portable/abstraction.h:76:17: [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 pr_info printf data/accelio-1.7/tests/usr/common/xio_intf.c:74: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(if_name, ifa->ifa_name); data/accelio-1.7/tests/usr/common/xio_intf.c:136: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(buf, ptr); data/accelio-1.7/tests/usr/common/xio_intf.c:138: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(master, buf); data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_client.c:140: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(test_config.server_addr, argv[optind]); data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_client.c:202:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%d", data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_server.c:130: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_server.c:201:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "rdma://%s:%d", data/accelio-1.7/tests/usr/hello_test/xio_client.c:524: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test/xio_client.c:571: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test/xio_client.c:777:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test/xio_server.c:394: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test/xio_server.c:427: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test/xio_server.c:506:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.c:512: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.c:546: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.c:617:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.c:556: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.c:586: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.c:640:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_client.c:424: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_client.c:458: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_client.c:529:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_server.c:342: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_server.c:372: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_server.c:432:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_client.c:551: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_client.c:589: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_client.c:662:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:541: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:575: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:665:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:690:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(server_data.tdata[i].portal, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.c:478: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.c:512: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.c:595:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_server.c:422: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_server.c:448: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_server.c:519:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://*:%d", data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_client.c:465: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_client.c:499: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_client.c:576:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_server.c:337: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(test_config->transport, optarg); data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_server.c:367: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(test_config->server_addr, argv[optind]); data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_server.c:426:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(url, "%s://%s:%d", data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_parameters.c:333: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_options, data/accelio-1.7/examples/raio/usr/client/raio_client.c:216: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_options, data/accelio-1.7/examples/raio/usr/server/raio_server.c:576: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_options, data/accelio-1.7/examples/usr/hello_world_daemon/xioclntd.c:341: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, "a:p:r:hdnV", longopts, NULL); data/accelio-1.7/examples/usr/hello_world_daemon/xiosrvd.c:365: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, "a:p:r:hdnV", longopts, NULL); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:100:2: [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(vars->seed); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:103:9: [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. var = random() % cpus; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:109:9: [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. var = random() % cpus; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:118:9: [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. var = random() % max_qdepth; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:128:8: [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. var = random() % max_dlen; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:132:8: [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. var = random() % max_dlen; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:137:9: [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. var = random() % 25000; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:143:9: [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. var = random() % 25000; data/accelio-1.7/src/libxio_os/winapp/xio_env_basic.h:13:2: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(m); data/accelio-1.7/src/libxio_os/winapp/xio_env_basic.h:31:2: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(m); data/accelio-1.7/src/usr/xio/xio_log.c:101: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. char *val = getenv("XIO_TRACE"); data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_client.c:114: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_options, data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_server.c:104: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_options, data/accelio-1.7/tests/usr/hello_test/xio_client.c:509: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_options, data/accelio-1.7/tests/usr/hello_test/xio_server.c:379: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_options, data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.c:497: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_options, data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.c:541: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_options, data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_client.c:409: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_options, data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_server.c:327: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_options, data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_client.c:536: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_options, data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:526: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_options, data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.c:463: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_options, data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_server.c:407: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_options, data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_client.c:450: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_options, data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_server.c:322: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_options, data/accelio-1.7/benchmarks/usr/xio_perftest/get_clock.c: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 buf[256]; data/accelio-1.7/benchmarks/usr/xio_perftest/get_clock.c:146: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("/proc/cpuinfo", "r"); data/accelio-1.7/benchmarks/usr/xio_perftest/get_clock.c:193:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/benchmarks/usr/xio_perftest/get_clock.c:203: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, data/accelio-1.7/benchmarks/usr/xio_perftest/get_clock.c:207: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/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_client.c:414:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_client.c:415:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_client.c:449: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). fd = fopen(user_param->output_file, "w"); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:235:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:305: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/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:321: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(rem_data, data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:388: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, data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:433:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char done[16]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.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/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:505: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(buf, O_RDONLY); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.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 path[256]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:528:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:532: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_RDONLY); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:591:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char if_name[32]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:634:11: [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. len += sprintf(&str[len], "%d ", i); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_parameters.c:105:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[256]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_parameters.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 url[1024]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_parameters.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 *array[1024]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_server.c:299:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_server.c:350:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/examples/kernel/hello_world/xio_client.c:236:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/kernel/hello_world/xio_client.c:310: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, "hello world iovec request", 26); data/accelio-1.7/examples/kernel/hello_world/xio_server.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 url[256]; data/accelio-1.7/examples/kernel/hello_world/xio_server.c:310: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, "hello world iovec rsp", 22); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:64: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 xio_ip[64]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:65: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 xio_port[8]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:291: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 msg[128]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:295: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(msg, data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:394:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[32]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:415: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(name, "xio-hello-client-%d\n", i); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.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 url[256]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:571: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(xio_ip, "%d.%d.%d.%d", d1, d2, d3, d4); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:572: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(xio_port, "%d", p); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:64: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 xio_ip[64]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:65: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 xio_port[8]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:79: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. const char *vec[MAX_THREADS]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.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 base_portal[64]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[128]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:302:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:318: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 msg[128]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:322: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(msg, data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:423:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[32]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:444: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(name, "xio-hello-server-%d\n", i); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:482:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:728: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(xio_ip, "%d.%d.%d.%d", d1, d2, d3, d4); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:729: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(xio_port, "%d", p); data/accelio-1.7/examples/raio/kernel/nbdx/nbdx.h:97:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char portal[MAX_PORTAL_NAME]; data/accelio-1.7/examples/raio/kernel/nbdx/nbdx.h:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MAX_NBDX_DEV_NAME]; data/accelio-1.7/examples/raio/kernel/nbdx/nbdx.h: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 dev_name[MAX_NBDX_DEV_NAME]; data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_configfs.c:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char xdev_name[MAX_NBDX_DEV_NAME]; data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_configfs.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 rdma[MAX_PORTAL_NAME] = "rdma://" ; data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_main.c:728:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[50]; data/accelio-1.7/examples/raio/kernel/nbdx/nbdx_main.c:736: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(name, "session thread %d", cpu); data/accelio-1.7/examples/raio/kernel/nbdx/raio_kbuffer.h:51: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(buffer, data, size); data/accelio-1.7/examples/raio/kernel/nbdx/raio_kbuffer.h:94: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, buffer, size); data/accelio-1.7/examples/raio/kernel/nbdx/raio_kutils.h: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 req_hdr[SUBMIT_HEADER_SIZE]; data/accelio-1.7/examples/raio/usr/client/get_clock.c: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 buf[256]; data/accelio-1.7/examples/raio/usr/client/get_clock.c:146: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("/proc/cpuinfo", "r"); data/accelio-1.7/examples/raio/usr/client/get_clock.c:193:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/examples/raio/usr/client/get_clock.c:203: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, data/accelio-1.7/examples/raio/usr/client/get_clock.c:207: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/accelio-1.7/examples/raio/usr/client/raio_client.c:341:8: [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). fdw = open(file, O_TRUNC|O_WRONLY|O_CREAT|O_SYNC, 0666); data/accelio-1.7/examples/raio/usr/fio/libraio.c:184: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(&io_u->issue_time, &now, sizeof(now)); data/accelio-1.7/examples/raio/usr/fio/libraio.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 path[256]; data/accelio-1.7/examples/raio/usr/fio/libraio.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 host[256]; data/accelio-1.7/examples/raio/usr/libraio/raio_api.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 req_hdr[MAX_MSG_LEN]; data/accelio-1.7/examples/raio/usr/libraio/raio_api.c:257:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[INET_ADDRSTRLEN]; data/accelio-1.7/examples/raio/usr/libraio/raio_api.c:263:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[INET6_ADDRSTRLEN]; data/accelio-1.7/examples/raio/usr/libraio/raio_api.c:414:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/raio/usr/libraio/raio_buffer.h: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(buffer, data, size); data/accelio-1.7/examples/raio/usr/libraio/raio_buffer.h:102: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, buffer, size); data/accelio-1.7/examples/raio/usr/server/bitset.c:72: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(b1->bs_bits, b2->bs_bits, MIN(SIZE_TO_BYTES(b1->bs_size), SIZE_TO_BYTES(b2->bs_size))); data/accelio-1.7/examples/raio/usr/server/bitset.c:320:36: [2] (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). Risk is low because the source is a constant string. case '0': strcat(binstr, "0000"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:321:36: [2] (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). Risk is low because the source is a constant string. case '1': strcat(binstr, "0001"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:322:36: [2] (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). Risk is low because the source is a constant string. case '2': strcat(binstr, "0010"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:323:36: [2] (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). Risk is low because the source is a constant string. case '3': strcat(binstr, "0011"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:324:36: [2] (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). Risk is low because the source is a constant string. case '4': strcat(binstr, "0100"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:325:36: [2] (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). Risk is low because the source is a constant string. case '5': strcat(binstr, "0101"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:326:36: [2] (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). Risk is low because the source is a constant string. case '6': strcat(binstr, "0110"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:327:36: [2] (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). Risk is low because the source is a constant string. case '7': strcat(binstr, "0111"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:328:36: [2] (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). Risk is low because the source is a constant string. case '8': strcat(binstr, "1000"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:329:36: [2] (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). Risk is low because the source is a constant string. case '9': strcat(binstr, "1001"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:331:36: [2] (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). Risk is low because the source is a constant string. case 'A': strcat(binstr, "1010"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:333:36: [2] (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). Risk is low because the source is a constant string. case 'B': strcat(binstr, "1011"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:335:36: [2] (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). Risk is low because the source is a constant string. case 'C': strcat(binstr, "1100"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:337:36: [2] (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). Risk is low because the source is a constant string. case 'D': strcat(binstr, "1101"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:339:36: [2] (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). Risk is low because the source is a constant string. case 'E': strcat(binstr, "1110"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:341:36: [2] (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). Risk is low because the source is a constant string. case 'F': strcat(binstr, "1111"); break; data/accelio-1.7/examples/raio/usr/server/bitset.c:412: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. char dst[1024]; data/accelio-1.7/examples/raio/usr/server/raio_handlers.c:231:8: [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(pathname, flags); data/accelio-1.7/examples/raio/usr/server/raio_server.c:81:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char portal[64]; data/accelio-1.7/examples/raio/usr/server/raio_server.c:654:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/usr/hello_world/xio_client.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 url[256]; data/accelio-1.7/examples/usr/hello_world/xio_client.c:183: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). test_disconnect = atoi(argv[4]); data/accelio-1.7/examples/usr/hello_world/xio_client.c:187: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). msg_size = atoi(argv[5]); data/accelio-1.7/examples/usr/hello_world/xio_client.c:259: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((char *)data, "hello world data request"); data/accelio-1.7/examples/usr/hello_world/xio_server.c:105:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. str = (char *)sglist[i].iov_base; data/accelio-1.7/examples/usr/hello_world/xio_server.c:225:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/usr/hello_world/xio_server.c:242: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). test_disconnect = atoi(argv[4]); data/accelio-1.7/examples/usr/hello_world/xio_server.c:246: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). msg_size = atoi(argv[5]); data/accelio-1.7/examples/usr/hello_world/xio_server.c:284: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. sprintf((char *)data, "hello world data response"); data/accelio-1.7/examples/usr/hello_world_daemon/xioclntd.c:278: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(pidfile, O_RDWR|O_CREAT, 0644); data/accelio-1.7/examples/usr/hello_world_daemon/xioclntd.c:330:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/usr/hello_world_daemon/xiosrvd.c:141:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. str = (char *)sglist[i].iov_base; data/accelio-1.7/examples/usr/hello_world_daemon/xiosrvd.c:304: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(pidfile, O_RDWR|O_CREAT, 0644); data/accelio-1.7/examples/usr/hello_world_daemon/xiosrvd.c:356:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/usr/hello_world_iov/xio_client.c:136: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((char *)data, "hello world request data"); data/accelio-1.7/examples/usr/hello_world_iov/xio_client.c:232:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. str = (char *)sglist[i].iov_base; data/accelio-1.7/examples/usr/hello_world_iov/xio_client.c:336:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/usr/hello_world_iov/xio_client.c:376: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). test_disconnect = atoi(argv[4]); data/accelio-1.7/examples/usr/hello_world_iov/xio_server.c:133: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((char *)data, "hello world response data"); data/accelio-1.7/examples/usr/hello_world_iov/xio_server.c:211:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. str = (char *)sglist[i].iov_base; data/accelio-1.7/examples/usr/hello_world_iov/xio_server.c:401:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/usr/hello_world_iov/xio_server.c:439: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). test_disconnect = atoi(argv[4]); data/accelio-1.7/examples/usr/hello_world_libevent/xio_client.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 url[256]; data/accelio-1.7/examples/usr/hello_world_libevent/xio_client.c:215: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). test_disconnect = atoi(argv[4]); data/accelio-1.7/examples/usr/hello_world_libevent/xio_server.c:90:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. str = (char *)sglist[i].iov_base; data/accelio-1.7/examples/usr/hello_world_libevent/xio_server.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 url[256]; data/accelio-1.7/examples/usr/hello_world_libevent/xio_server.c:245: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). test_disconnect = atoi(argv[4]); data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_client.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 str[128]; data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_client.c:103: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, "hello world header request from thread %d", data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_client.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 url[256]; data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_client.c:253: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). test_disconnect = atoi(argv[4]); data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:55: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. const char *vec[MAX_THREADS]; data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.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 portal[64]; data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:167:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[128]; data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:188: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, "hello world header response from thread %d", data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:299:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:301: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). uint16_t port = atoi(argv[2]); data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:325: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). test_disconnect = atoi(argv[4]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char client_threads_num[8]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_threads_num[8]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.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 client_dlen[8]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.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 server_dlen[8]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:60:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char queue_depth[8]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char client_disconnect_nr[8]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:62:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_disconnect_nr[8]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:105: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(vars->server_threads_num, "%d", var); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:112: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(vars->client_threads_num, "%d", client_threads_num); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:120: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(vars->queue_depth, "%d", var); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:129: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(vars->client_dlen, "%d", var); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:133: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(vars->server_dlen, "%d", var); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:139: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(vars->client_disconnect_nr, "%d", var); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:145: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(vars->server_disconnect_nr, "%d", var); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:150:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *argvv[11] = { 0 }; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt.c:151: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). int max_iterations = atoi(argv[3]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_client.c:534:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_client.c:536: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). int queue_depth = atoi(argv[3]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_client.c:537: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). uint16_t client_threads_num = atoi(argv[4]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_client.c:539: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). int client_dlen = atoi(argv[6]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_client.c:540: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). int server_dlen = atoi(argv[7]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_client.c:541:31: [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). int client_disconnect_nr = atoi(argv[8]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char portal[64]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:618:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:620: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). uint16_t port = atoi(argv[2]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:621: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). int queue_depth = atoi(argv[3]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:623: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). uint16_t server_threads_num = atoi(argv[5]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:624: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). int client_dlen = atoi(argv[6]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:625: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). int server_dlen = atoi(argv[7]); data/accelio-1.7/regression/usr/reg_basic_mt/reg_basic_mt_server.c:627:31: [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). int server_disconnect_nr = atoi(argv[9]); data/accelio-1.7/src/common/xio_connection.c:223: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(&connection->ses_ops, &session->ses_ops, data/accelio-1.7/src/common/xio_connection.h:171: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(&connection->ses_ops, ses_ops, sizeof(*ses_ops)); data/accelio-1.7/src/common/xio_context.h:83:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[XIO_STAT_LAST]; data/accelio-1.7/src/common/xio_nexus.c:1733: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(&ev_params->event_data, ev_data, sizeof(*ev_data)); data/accelio-1.7/src/common/xio_nexus.c:1818:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char proto[8]; data/accelio-1.7/src/common/xio_nexus.c:1869:18: [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 (!transport->open) { data/accelio-1.7/src/common/xio_nexus.c:1918:37: [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). nexus->transport_hndl = transport->open( data/accelio-1.7/src/common/xio_nexus.c:1992:41: [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). nexus->new_transport_hndl = transport->open(nexus->transport, ctx, data/accelio-1.7/src/common/xio_nexus.c:2451: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(sa, &nexus->transport_hndl->peer_addr, len); data/accelio-1.7/src/common/xio_nexus.c:2461: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(sa, &nexus->transport_hndl->local_addr, len); data/accelio-1.7/src/common/xio_options.c:128: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(&g_mempool_config, data/accelio-1.7/src/common/xio_options.c:277: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(&g_options.ka, optval, optlen); data/accelio-1.7/src/common/xio_options.c:364: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(optval, &g_options.ka, *optlen); data/accelio-1.7/src/common/xio_protocol.h:386: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(buffer+bindex, b, length); data/accelio-1.7/src/common/xio_protocol.h:401: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(b, buffer+bindex, length); data/accelio-1.7/src/common/xio_server.c:349: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(&server->ops, ops, sizeof(*ops)); data/accelio-1.7/src/common/xio_session.c:1691: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(session->hs_private_data, params->private_data, data/accelio-1.7/src/common/xio_session.c:1709: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(&session->ses_ops, params->ses_ops, data/accelio-1.7/src/common/xio_session.c:1843: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(&session->ses_ops, ops, sizeof(*ops)); data/accelio-1.7/src/common/xio_session_client.c:462:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char portal[64]; data/accelio-1.7/src/common/xio_session_client.c:927: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 portal[64]; data/accelio-1.7/src/common/xio_transport.h:214:31: [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). struct xio_transport_base *(*open)( data/accelio-1.7/src/common/xio_utils.c:313: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(daddr, saddr, slen); data/accelio-1.7/src/common/xio_utils.c:327: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(daddr, saddr, dlen); data/accelio-1.7/src/common/xio_utils.c:340: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(daddr, saddr, dlen); data/accelio-1.7/src/common/xio_utils.c:396: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(daddr, saddr, slen); data/accelio-1.7/src/common/xio_utils.c:410: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(daddr, saddr, dlen); data/accelio-1.7/src/common/xio_utils.c:423: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(daddr, saddr, dlen); data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_datapath.c:3512: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(omsg->in.header.iov_base, data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_management.c:933: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(rdma_slab->name, "initial_pool-%p", rdma_slab); data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_management.c:1407: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(rdma_slab->name, "primary_pool-%p", rdma_slab); data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_management.c:2340: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(&rdma_hndl->trans_attr, attr, sizeof(*attr)); data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_memory.c:1059: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(sgt, &vmsg->data_tbl, sizeof(*sgt)); data/accelio-1.7/src/kernel/transport/rdma/xio_rdma_transport.h:369:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[32]; /* kmem_cache_create keeps a pointer to the pool's name data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_datapath.c:1856: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(MSGHDR_IOV(&xio_recv->msg)[0].iov_base, data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_datapath.c:2446: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(omsg->in.header.iov_base, data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_management.c:1004: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(tcp_hndl->socket.ops, (tcp_options.tcp_dual_sock ? data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_management.c:1006:29: [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 (tcp_hndl->socket.ops->open(&tcp_hndl->socket)) data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_management.c:1202: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(child_hndl->socket.ops, &single_sock_ops, data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_management.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(child_hndl->socket.ops, &dual_sock_ops, data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_management.c:1978: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(tcp_slab->name, "initial_pool-%p", tcp_slab); data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_management.c:2259: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(tcp_slab->name, "primary_pool-%p", tcp_slab); data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_transport.h:289:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[32]; /* kmem_cache_create keeps a pointer to the pool's name data/accelio-1.7/src/kernel/transport/tcp/xio_tcp_transport.h:324:8: [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 (*open)(struct xio_tcp_socket *sock); data/accelio-1.7/src/kernel/xio/xio_context.c:654:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pool_name[64]; data/accelio-1.7/src/kernel/xio/xio_ev_loop.c:92:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char queue_name[64]; data/accelio-1.7/src/kernel/xio/xio_ev_loop.c:134: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(queue_name, "xio-%p", loop); data/accelio-1.7/src/kernel/xio/xio_kernel_utils.c:114:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[NI_MAXSERV]; data/accelio-1.7/src/kernel/xio/xio_mem.h: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(mem_allocator, allocator, sizeof(*allocator)); data/accelio-1.7/src/kernel/xio/xio_mempool.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[64]; /* kmem_cache_create keeps a pointer to the pool's name data/accelio-1.7/src/kernel/xio/xio_mempool.c:133: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(ch->name, "xio_mempool-%zuK-%p", data/accelio-1.7/src/kernel/xio/xio_os.h:144: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[64]; data/accelio-1.7/src/kernel/xio/xio_os.h:146: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, "errno(%d)", errnum); data/accelio-1.7/src/kernel/xio/xio_sg_table.c:120: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(daddr, saddr, slen); data/accelio-1.7/src/kernel/xio/xio_sg_table.c:136: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(daddr, saddr, dlen); data/accelio-1.7/src/kernel/xio/xio_sg_table.c:148: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(daddr, saddr, dlen); data/accelio-1.7/src/kernel/xio/xio_sg_table.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(daddr, saddr, dlen); data/accelio-1.7/src/kernel/xio/xio_task.c:239: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->params, params, sizeof(*params)); data/accelio-1.7/src/kernel/xio/xio_workqueue.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char queue_name[64]; data/accelio-1.7/src/kernel/xio/xio_workqueue.c:80: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(queue_name, "xio-scheduler-%p", ctx); data/accelio-1.7/src/libxio_os/linuxapp/xio_env.h: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 size[32] = {0}; data/accelio-1.7/src/libxio_os/linuxapp/xio_env.h:265: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(XIO_HZ_FILE, O_RDONLY); data/accelio-1.7/src/libxio_os/linuxapp/xio_env.h:283: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(XIO_HZ_FILE, O_CREAT | O_TRUNC | O_WRONLY | O_SYNC, 0644); data/accelio-1.7/src/libxio_os/linuxapp/xio_env.h:287: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(size, "%f", hz); data/accelio-1.7/src/libxio_os/winapp/xio_env.h:147: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(once_control, &INIT_ONCE_RESET_VALUE, sizeof(INIT_ONCE)) data/accelio-1.7/src/libxio_os/winapp/xio_env.h:567: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/accelio-1.7/src/libxio_os/winapp/xio_env.h:605: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/accelio-1.7/src/libxio_os/winapp/xio_env.h:658:16: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (char*)memcpy(new1, s, len); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:56:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:61: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_RDONLY); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c: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 buf[256]; data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:93: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(buf, O_RDONLY); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:166:11: [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. len += sprintf(&str[len], "%d ", i); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.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 host[NI_MAXHOST] = {0}; data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.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 cpus_str[256]; data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.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 flags[1024]; data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:228: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 master[256]; data/accelio-1.7/src/usr/transport/rdma/xio_rdma_datapath.c:2213: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(write_reg_mem->addr, data/accelio-1.7/src/usr/transport/rdma/xio_rdma_datapath.c:2379: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(rdma_task->write_reg_mem[i].addr, data/accelio-1.7/src/usr/transport/rdma/xio_rdma_datapath.c:3025: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(omsg->in.header.iov_base, data/accelio-1.7/src/usr/transport/rdma/xio_rdma_datapath.c:3874: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(rdma_task->write_reg_mem[i].addr, data/accelio-1.7/src/usr/transport/rdma/xio_rdma_management.c:2733: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(&rdma_hndl->trans_attr, attr, sizeof(*attr)); data/accelio-1.7/src/usr/transport/rdma/xio_rdma_management.c:3394:8: [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("/dev/cpu_dma_latency", O_WRONLY); data/accelio-1.7/src/usr/transport/tcp/xio_tcp_datapath.c:757: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(tcp_task->write_reg_mem[i].addr, data/accelio-1.7/src/usr/transport/tcp/xio_tcp_datapath.c:1628: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(tcp_task->write_reg_mem[i].addr, data/accelio-1.7/src/usr/transport/tcp/xio_tcp_datapath.c:2036: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(xio_recv->msg.msg_iov[0].iov_base, data/accelio-1.7/src/usr/transport/tcp/xio_tcp_datapath.c:2650: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(omsg->in.header.iov_base, data/accelio-1.7/src/usr/transport/tcp/xio_tcp_management.c:856: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(tcp_hndl->sock.ops, data/accelio-1.7/src/usr/transport/tcp/xio_tcp_management.c:860:27: [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 (tcp_hndl->sock.ops->open(&tcp_hndl->sock)) data/accelio-1.7/src/usr/transport/tcp/xio_tcp_management.c:1064: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(child_hndl->sock.ops, &single_sock_ops, data/accelio-1.7/src/usr/transport/tcp/xio_tcp_management.c:1070: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(child_hndl->sock.ops, &dual_sock_ops, data/accelio-1.7/src/usr/transport/tcp/xio_tcp_management.c:1708: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(&tcp_hndl->trans_attr, attr, sizeof(*attr)); data/accelio-1.7/src/usr/transport/tcp/xio_tcp_management.c:1739:8: [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("/dev/cpu_dma_latency", O_WRONLY); data/accelio-1.7/src/usr/transport/tcp/xio_tcp_transport.h:266:8: [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 (*open)(struct xio_tcp_socket *sock); data/accelio-1.7/src/usr/xio/get_clock.c:142:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/src/usr/xio/get_clock.c:145: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("/proc/cpuinfo", "r"); data/accelio-1.7/src/usr/xio/get_clock.c: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 buf[256]; data/accelio-1.7/src/usr/xio/get_clock.c:201: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, data/accelio-1.7/src/usr/xio/get_clock.c:205: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/accelio-1.7/src/usr/xio/xio_context.c:696:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pool_name[64]; data/accelio-1.7/src/usr/xio/xio_log.c:60:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/src/usr/xio/xio_log.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[256]; data/accelio-1.7/src/usr/xio/xio_log.c:107: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). level = atoi(val); data/accelio-1.7/src/usr/xio/xio_mem.h:66: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(mem_allocator, allocator, sizeof(*allocator)); data/accelio-1.7/src/usr/xio/xio_netlink.c:63:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[NLMSG_SPACE(1024)]; data/accelio-1.7/src/usr/xio/xio_netlink.c:95: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(ptr, &ctx->stats.hertz, sizeof(ctx->stats.hertz)); data/accelio-1.7/src/usr/xio/xio_netlink.c:97: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(ptr, &now, sizeof(now)); data/accelio-1.7/src/usr/xio/xio_netlink.c:112: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(ptr, &now, sizeof(now)); data/accelio-1.7/src/usr/xio/xio_netlink.c:118: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 *)ptr, &ctx->stats.counter[i], data/accelio-1.7/src/usr/xio/xio_sg_table.c:117: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(daddr, saddr, slen); data/accelio-1.7/src/usr/xio/xio_sg_table.c:133: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(daddr, saddr, dlen); data/accelio-1.7/src/usr/xio/xio_sg_table.c:145: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(daddr, saddr, dlen); data/accelio-1.7/src/usr/xio/xio_sg_table.c:207: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(daddr, saddr, dlen); data/accelio-1.7/src/usr/xio/xio_task.c:225: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->params, params, sizeof(*params)); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:67: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/accelio-1.7/src/usr/xio/xio_usr_utils.c:69: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/accelio-1.7/src/usr/xio/xio_usr_utils.c:85:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[NI_MAXHOST]; data/accelio-1.7/src/usr/xio/xio_usr_utils.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 port[NI_MAXSERV]; data/accelio-1.7/src/usr/xio/xio_usr_utils.c:119:4: [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(host, "0.0.0.0"); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:159:48: [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). ((struct sockaddr_in *)ss)->sin_port = htons(atoi(port)); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:163:50: [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). ((struct sockaddr_in6 *)ss)->sin6_port = htons(atoi(port)); data/accelio-1.7/src/usr/xio/xio_usr_utils.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 host[NI_MAXHOST]; data/accelio-1.7/src/usr/xio/xio_usr_utils.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 port[NI_MAXSERV]; data/accelio-1.7/src/usr/xio/xio_usr_utils.c:259:48: [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). ((struct sockaddr_in *)ss)->sin_port = htons(atoi(port)); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:263:50: [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). ((struct sockaddr_in6 *)ss)->sin6_port = htons(atoi(port)); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:268: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 buffer[NI_MAXHOST]; data/accelio-1.7/tests/kernel/common/xio_test_utils.c:100: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.%d.%d.%d", NIPQUAD(v4->sin_addr)); data/accelio-1.7/tests/kernel/common/xio_test_utils.c:106: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.%d.%d.%d.%d.%d.%d.%d", NIP6(v6->sin6_addr)); data/accelio-1.7/tests/kernel/hello_test/xio_client.c:119:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/kernel/hello_test/xio_client.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 transport[16]; data/accelio-1.7/tests/kernel/hello_test/xio_client.c:226: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 timeb[40]; data/accelio-1.7/tests/kernel/hello_test/xio_client.c:743:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/kernel/hello_test/xio_server.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 server_addr[32]; data/accelio-1.7/tests/kernel/hello_test/xio_server.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 transport[16]; data/accelio-1.7/tests/kernel/hello_test/xio_server.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 ip[INET6_ADDRSTRLEN + 1]; data/accelio-1.7/tests/kernel/hello_test/xio_server.c:507:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_client.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 server_addr[32]; data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_client.c:114:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_client.c:183: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 timeb[40]; data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_client.c:539:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_server.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 server_addr[32]; data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_server.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 transport[16]; data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_server.c: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 ip[48]; data/accelio-1.7/tests/kernel/hello_test_lat/xio_lat_server.c:453:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_client.c:118:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_client.c:120:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_client.c:215: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 timeb[40]; data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_client.c:627:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_server.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 server_addr[32]; data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_server.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 transport[16]; data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_server.c:229:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[INET6_ADDRSTRLEN + 1]; data/accelio-1.7/tests/kernel/hello_test_ow/xio_ow_server.c:466:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/portable/direct_rdma_test/xio_rdma_common.c:196: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_buf[RDMA_BUF_SIZE]; data/accelio-1.7/tests/usr/common/xio_intf.c:92:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/tests/usr/common/xio_intf.c:95: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(buf, O_RDONLY); data/accelio-1.7/tests/usr/common/xio_intf.c:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/tests/usr/common/xio_intf.c:118:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/accelio-1.7/tests/usr/common/xio_intf.c:122: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_RDONLY); data/accelio-1.7/tests/usr/common/xio_intf.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 if_name[32]; data/accelio-1.7/tests/usr/common/xio_intf.c:224:11: [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. len += sprintf(&str[len], "%d ", i); data/accelio-1.7/tests/usr/common/xio_test_utils.h:105:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[INET_ADDRSTRLEN]; data/accelio-1.7/tests/usr/common/xio_test_utils.h:111:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[INET6_ADDRSTRLEN]; data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_client.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_client.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 url[256]; data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_server.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/direct_rdma_test/xio_rdma_server.c:185:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test/xio_client.c:74:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test/xio_client.c:76:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/usr/hello_test/xio_client.c:179: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 timeb[40]; data/accelio-1.7/tests/usr/hello_test/xio_client.c:726:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test/xio_server.c:69:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test/xio_server.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/usr/hello_test/xio_server.c:118:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (char *)sglist[0].iov_base); data/accelio-1.7/tests/usr/hello_test/xio_server.c:463:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.c:68:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.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 transport[16]; data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.c:123:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (char *)sglist[0].iov_base); data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.c:169: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 timeb[40]; data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_client.c:583:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.c:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.c:69:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.c:139: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 timeb[40]; data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.c:178:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (char *)sglist[0].iov_base, data/accelio-1.7/tests/usr/hello_test_bidi/xio_bidi_server.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 url[256]; data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_client.c:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_client.c:69:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_client.c:136: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 timeb[40]; data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_client.c:495:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_server.c:64:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_server.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 transport[16]; data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_server.c:111:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (char *)sglist[0].iov_base); data/accelio-1.7/tests/usr/hello_test_lat/xio_lat_server.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 url[256]; data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_client.c:72:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_client.c:74:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_client.c:177: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 timeb[40]; data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_client.c:626:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:69:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:83: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. const char *vec[MAX_THREADS]; data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.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 portal[64]; data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:180:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (char *)sglist[0].iov_base); data/accelio-1.7/tests/usr/hello_test_mt/xio_mt_server.c:612:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.c:68:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.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 transport[16]; data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.c:148: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 timeb[40]; data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.c:200: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 timeb[40]; data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_client.c:550:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_server.c:68:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_server.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 transport[16]; data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_server.c:120:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (char *)sglist[0].iov_base); data/accelio-1.7/tests/usr/hello_test_oneway/xio_oneway_server.c:483:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_client.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char server_addr[32]; data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_client.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_client.c:537:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_server.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 server_addr[32]; data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_server.c:67:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char transport[16]; data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_server.c:118:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (char *)sglist[0].iov_base); data/accelio-1.7/tests/usr/hello_test_ow/xio_ow_server.c:403:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[256]; data/accelio-1.7/win/iocp_echo_server/iocp_echo_server.c:33: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 buf[MAX_BUF]; data/accelio-1.7/win/xiodll/xio_ev_loop-iocp.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(&loop->readfds, &loop->save_rfds, sizeof(fd_set)); data/accelio-1.7/win/xiodll/xio_ev_loop-iocp.c:413: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(&loop->writefds, &loop->save_wfds, sizeof(fd_set)); data/accelio-1.7/win/xiodll/xio_ev_loop-iocp.c:420: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 buffer[256]; data/accelio-1.7/win/xiodll/xio_ev_loop-select.c:373: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(&loop->readfds, &loop->save_rfds, sizeof(fd_set)); data/accelio-1.7/win/xiodll/xio_ev_loop-select.c:374: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(&loop->writefds, &loop->save_wfds, sizeof(fd_set)); data/accelio-1.7/win/xiodll/xio_ev_loop-select.c:382: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 buffer[256]; data/accelio-1.7/benchmarks/usr/xio_perftest/xio_msg.c:108:19: [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. buf = (uint8_t *)memalign(pagesz, pool_size); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:509:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf, sizeof(buf)); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_communication.c:536:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf, sizeof(buf)-1); data/accelio-1.7/benchmarks/usr/xio_perftest/xio_perftest_parameters.c:86:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(host, token, len); data/accelio-1.7/examples/kernel/hello_world/xio_client.c:298:45: [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). session_data->req[i].out.header.iov_len = strlen((const char *) session_data->req[i].out.header.iov_base) + 1; data/accelio-1.7/examples/kernel/hello_world/xio_client.c:313: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). sg_init_one(omsg->data_tbl.sgl, buf, strlen(buf) + 1); data/accelio-1.7/examples/kernel/hello_world/xio_server.c:299:44: [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). server_data->rsp[i].out.header.iov_len = strlen((const char *) server_data->rsp[i].out.header.iov_base) + 1; data/accelio-1.7/examples/kernel/hello_world/xio_server.c:313: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). sg_init_one(omsg->data_tbl.sgl, buf, strlen(buf) + 1); data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_client.c:302: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). out->header.iov_len = strlen(msg) + 1; data/accelio-1.7/examples/kernel/hello_world_mt/xio_mt_server.c:329: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). out->header.iov_len = strlen(msg) + 1; data/accelio-1.7/examples/raio/kernel/nbdx/raio_kutils.c:100: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). unsigned int path_len = strlen(pathname) + 1; data/accelio-1.7/examples/raio/usr/fio/libraio.c:273: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). if (!strlen(path)) data/accelio-1.7/examples/raio/usr/libraio/raio_msg_pool.c:118:8: [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. buf = memalign(pagesz, pool_size); data/accelio-1.7/examples/raio/usr/libraio/raio_utils.c:168: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). unsigned int path_len = strlen(pathname) + 1; data/accelio-1.7/examples/raio/usr/server/bitset.c:421: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). len = strlen(str); data/accelio-1.7/examples/raio/usr/server/raio_handlers.c:223: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). if (sizeof(flags) + strlen(pathname) + 1 != cmd->data_len) { data/accelio-1.7/examples/usr/hello_world/xio_client.c:240:4: [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((const char *) data/accelio-1.7/examples/usr/hello_world/xio_client.c:266: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). strlen((const char *) data/accelio-1.7/examples/usr/hello_world/xio_server.c:267:4: [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((const char *) data/accelio-1.7/examples/usr/hello_world/xio_server.c:295: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). strlen((const char *) data/accelio-1.7/examples/usr/hello_world_daemon/xioclntd.c:414:4: [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((const char *) data/accelio-1.7/examples/usr/hello_world_daemon/xioclntd.c:424:4: [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((const char *) data/accelio-1.7/examples/usr/hello_world_daemon/xiosrvd.c:433:4: [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((const char *) data/accelio-1.7/examples/usr/hello_world_iov/xio_client.c:128: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). sdata->hdrlen = strlen((char *)sdata->hdr) + 1; data/accelio-1.7/examples/usr/hello_world_iov/xio_server.c:125: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). sdata->hdrlen = strlen((char *)sdata->hdr) + 1; data/accelio-1.7/examples/usr/hello_world_libevent/xio_client.c:239:4: [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((char *)session_data.req[i].out.header.iov_base); data/accelio-1.7/examples/usr/hello_world_libevent/xio_client.c:246:60: [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). session_data.req[i].out.data_iov.sglist[0].iov_len = 1 + strlen( data/accelio-1.7/examples/usr/hello_world_libevent/xio_server.c:230:4: [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((const char *) data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_client.c:107:3: [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((const char *)tdata->req.out.header.iov_base) + 1; data/accelio-1.7/examples/usr/hello_world_mt/xio_mt_server.c:194:4: [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((const char *) data/accelio-1.7/include/xio_base.h:1338: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. void * (*memalign)(size_t boundary, size_t size, void *user_context); data/accelio-1.7/src/common/xio_session.c:1662: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). uri_len = strlen(params->uri); data/accelio-1.7/src/common/xio_session_server.c:238: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). tot_len += strlen(portals_array[i]) + sizeof(uint16_t); data/accelio-1.7/src/common/xio_session_server.c:301: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). str_len = strlen(portals_array[i]); data/accelio-1.7/src/common/xio_utils.c:92: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). p1 = (char *)uri + strlen(uri); data/accelio-1.7/src/common/xio_utils.c:108: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). int len = (!res) ? strlen(uri) : (size_t)(res - uri); data/accelio-1.7/src/common/xio_utils.c:111:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(portal, uri, len); data/accelio-1.7/src/common/xio_utils.c:127: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). int len = strlen(res); data/accelio-1.7/src/kernel/xio/xio_kernel_utils.c:145:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(port, (p1 + 2), len); data/accelio-1.7/src/kernel/xio/xio_kernel_utils.c:150: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). p1 = uri + strlen(uri); data/accelio-1.7/src/kernel/xio/xio_kernel_utils.c:177:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(port, p1 + 1, len); data/accelio-1.7/src/libxio_os/linuxapp/xio_env.h:269:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, size, sizeof(size)); data/accelio-1.7/src/libxio_os/linuxapp/xio_env.h:418:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(sock, buf, count); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:65:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf, sizeof(buf) - 1); data/accelio-1.7/src/tools/usr/xio_if_numa_cpus.c:97:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf, sizeof(buf)); data/accelio-1.7/src/usr/xio/xio_mem.h:100:43: [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. if (allocator_assigned && mem_allocator->memalign) { data/accelio-1.7/src/usr/xio/xio_mem.h:101:24: [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. ptr = mem_allocator->memalign(boundary, size, data/accelio-1.7/src/usr/xio/xio_netlink.c:105: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). ptr += strlen(ptr) + 1; data/accelio-1.7/src/usr/xio/xio_usr_utils.c:100:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(host, cp, len); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:104:4: [1] (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 character. strcpy(port, "0"); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:110:5: [1] (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 character. strcpy(port, "0"); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:112:4: [1] (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 character. strcpy(port, "0"); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:124:5: [1] (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 character. strcpy(port, "0"); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:129:5: [1] (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 character. strcpy(port, "0"); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:132:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(host, cp, len); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:136:6: [1] (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 character. strcpy(port, "0"); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:194:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(host, (start + 4), len); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:202:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(port, (p1 + 2), len); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:207: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). p1 = uri + strlen(uri); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:234:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(port, p1 + 1, len); data/accelio-1.7/src/usr/xio/xio_usr_utils.c:240:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(host, (start + 3), len); data/accelio-1.7/tests/kernel/common/xio_msg.c:84: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(ptr); data/accelio-1.7/tests/kernel/common/xio_msg.c:88:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)msg_params->g_hdr, ptr, len); data/accelio-1.7/tests/kernel/common/xio_msg.c:97: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(ptr); data/accelio-1.7/tests/kernel/common/xio_msg.c:101:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)msg_params->g_data, ptr, len); data/accelio-1.7/tests/usr/common/xio_intf.c:99:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf, sizeof(buf)); data/accelio-1.7/tests/usr/common/xio_intf.c:126:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buf, sizeof(buf)-1); data/accelio-1.7/tests/usr/common/xio_msg.c:110:8: [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. buf = memalign(pagesz, pool_size); data/accelio-1.7/tests/usr/common/xio_msg.c:175:34: [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. msg_params->g_hdr = (uint8_t *)memalign(pagesize, hdrlen); data/accelio-1.7/tests/usr/common/xio_msg.c:179: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(ptr); data/accelio-1.7/tests/usr/common/xio_msg.c:183:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)msg_params->g_hdr, ptr, len); data/accelio-1.7/tests/usr/common/xio_msg.c:193: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(ptr); data/accelio-1.7/tests/usr/common/xio_msg.c:197:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)msg_params->g_data, ptr, len); ANALYSIS SUMMARY: Hits = 663 Lines analyzed = 108335 in approximately 2.90 seconds (37419 lines/second) Physical Source Lines of Code (SLOC) = 71024 Hits@level = [0] 1029 [1] 73 [2] 391 [3] 30 [4] 166 [5] 3 Hits@level+ = [0+] 1692 [1+] 663 [2+] 590 [3+] 199 [4+] 169 [5+] 3 Hits/KSLOC@level+ = [0+] 23.8229 [1+] 9.33487 [2+] 8.30705 [3+] 2.80187 [4+] 2.37948 [5+] 0.0422392 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.