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/zeromq3-4.3.3/builds/deprecated-msvc/errno.cpp
Examining data/zeromq3-4.3.3/builds/deprecated-msvc/errno.hpp
Examining data/zeromq3-4.3.3/builds/deprecated-msvc/platform.hpp
Examining data/zeromq3-4.3.3/builds/deprecated-msvc/resource.h
Examining data/zeromq3-4.3.3/builds/deprecated-msvc/vs2015_xp/platform.hpp
Examining data/zeromq3-4.3.3/builds/deprecated-msvc/vs2015_xp/test_zmq/test_multithread.cpp
Examining data/zeromq3-4.3.3/builds/gyp/platform.hpp
Examining data/zeromq3-4.3.3/builds/mingw32/platform.hpp
Examining data/zeromq3-4.3.3/builds/vxworks/platform.hpp
Examining data/zeromq3-4.3.3/builds/zos/platform.hpp
Examining data/zeromq3-4.3.3/builds/zos/test_fork.cpp
Examining data/zeromq3-4.3.3/external/sha1/sha1.c
Examining data/zeromq3-4.3.3/external/sha1/sha1.h
Examining data/zeromq3-4.3.3/external/unity/unity.c
Examining data/zeromq3-4.3.3/external/unity/unity.h
Examining data/zeromq3-4.3.3/external/unity/unity_internals.h
Examining data/zeromq3-4.3.3/external/wepoll/wepoll.c
Examining data/zeromq3-4.3.3/external/wepoll/wepoll.h
Examining data/zeromq3-4.3.3/include/zmq.h
Examining data/zeromq3-4.3.3/include/zmq_utils.h
Examining data/zeromq3-4.3.3/perf/benchmark_radix_tree.cpp
Examining data/zeromq3-4.3.3/perf/inproc_lat.cpp
Examining data/zeromq3-4.3.3/perf/inproc_thr.cpp
Examining data/zeromq3-4.3.3/perf/local_lat.cpp
Examining data/zeromq3-4.3.3/perf/local_thr.cpp
Examining data/zeromq3-4.3.3/perf/proxy_thr.cpp
Examining data/zeromq3-4.3.3/perf/remote_lat.cpp
Examining data/zeromq3-4.3.3/perf/remote_thr.cpp
Examining data/zeromq3-4.3.3/src/address.cpp
Examining data/zeromq3-4.3.3/src/address.hpp
Examining data/zeromq3-4.3.3/src/array.hpp
Examining data/zeromq3-4.3.3/src/atomic_counter.hpp
Examining data/zeromq3-4.3.3/src/atomic_ptr.hpp
Examining data/zeromq3-4.3.3/src/blob.hpp
Examining data/zeromq3-4.3.3/src/channel.cpp
Examining data/zeromq3-4.3.3/src/channel.hpp
Examining data/zeromq3-4.3.3/src/client.cpp
Examining data/zeromq3-4.3.3/src/client.hpp
Examining data/zeromq3-4.3.3/src/clock.cpp
Examining data/zeromq3-4.3.3/src/clock.hpp
Examining data/zeromq3-4.3.3/src/command.hpp
Examining data/zeromq3-4.3.3/src/compat.hpp
Examining data/zeromq3-4.3.3/src/condition_variable.hpp
Examining data/zeromq3-4.3.3/src/config.hpp
Examining data/zeromq3-4.3.3/src/ctx.cpp
Examining data/zeromq3-4.3.3/src/ctx.hpp
Examining data/zeromq3-4.3.3/src/curve_client.cpp
Examining data/zeromq3-4.3.3/src/curve_client.hpp
Examining data/zeromq3-4.3.3/src/curve_client_tools.hpp
Examining data/zeromq3-4.3.3/src/curve_mechanism_base.cpp
Examining data/zeromq3-4.3.3/src/curve_mechanism_base.hpp
Examining data/zeromq3-4.3.3/src/curve_server.cpp
Examining data/zeromq3-4.3.3/src/curve_server.hpp
Examining data/zeromq3-4.3.3/src/dbuffer.hpp
Examining data/zeromq3-4.3.3/src/dealer.cpp
Examining data/zeromq3-4.3.3/src/dealer.hpp
Examining data/zeromq3-4.3.3/src/decoder.hpp
Examining data/zeromq3-4.3.3/src/decoder_allocators.cpp
Examining data/zeromq3-4.3.3/src/decoder_allocators.hpp
Examining data/zeromq3-4.3.3/src/devpoll.cpp
Examining data/zeromq3-4.3.3/src/devpoll.hpp
Examining data/zeromq3-4.3.3/src/dgram.cpp
Examining data/zeromq3-4.3.3/src/dgram.hpp
Examining data/zeromq3-4.3.3/src/dish.cpp
Examining data/zeromq3-4.3.3/src/dish.hpp
Examining data/zeromq3-4.3.3/src/dist.cpp
Examining data/zeromq3-4.3.3/src/dist.hpp
Examining data/zeromq3-4.3.3/src/encoder.hpp
Examining data/zeromq3-4.3.3/src/endpoint.cpp
Examining data/zeromq3-4.3.3/src/endpoint.hpp
Examining data/zeromq3-4.3.3/src/epoll.cpp
Examining data/zeromq3-4.3.3/src/epoll.hpp
Examining data/zeromq3-4.3.3/src/err.cpp
Examining data/zeromq3-4.3.3/src/err.hpp
Examining data/zeromq3-4.3.3/src/fd.hpp
Examining data/zeromq3-4.3.3/src/fq.cpp
Examining data/zeromq3-4.3.3/src/fq.hpp
Examining data/zeromq3-4.3.3/src/gather.cpp
Examining data/zeromq3-4.3.3/src/gather.hpp
Examining data/zeromq3-4.3.3/src/generic_mtrie.hpp
Examining data/zeromq3-4.3.3/src/generic_mtrie_impl.hpp
Examining data/zeromq3-4.3.3/src/gssapi_client.cpp
Examining data/zeromq3-4.3.3/src/gssapi_client.hpp
Examining data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp
Examining data/zeromq3-4.3.3/src/gssapi_mechanism_base.hpp
Examining data/zeromq3-4.3.3/src/gssapi_server.cpp
Examining data/zeromq3-4.3.3/src/gssapi_server.hpp
Examining data/zeromq3-4.3.3/src/i_decoder.hpp
Examining data/zeromq3-4.3.3/src/i_encoder.hpp
Examining data/zeromq3-4.3.3/src/i_engine.hpp
Examining data/zeromq3-4.3.3/src/i_mailbox.hpp
Examining data/zeromq3-4.3.3/src/i_poll_events.hpp
Examining data/zeromq3-4.3.3/src/io_object.cpp
Examining data/zeromq3-4.3.3/src/io_object.hpp
Examining data/zeromq3-4.3.3/src/io_thread.cpp
Examining data/zeromq3-4.3.3/src/io_thread.hpp
Examining data/zeromq3-4.3.3/src/ip.cpp
Examining data/zeromq3-4.3.3/src/ip.hpp
Examining data/zeromq3-4.3.3/src/ip_resolver.cpp
Examining data/zeromq3-4.3.3/src/ip_resolver.hpp
Examining data/zeromq3-4.3.3/src/ipc_address.cpp
Examining data/zeromq3-4.3.3/src/ipc_address.hpp
Examining data/zeromq3-4.3.3/src/ipc_connecter.cpp
Examining data/zeromq3-4.3.3/src/ipc_connecter.hpp
Examining data/zeromq3-4.3.3/src/ipc_listener.cpp
Examining data/zeromq3-4.3.3/src/ipc_listener.hpp
Examining data/zeromq3-4.3.3/src/kqueue.cpp
Examining data/zeromq3-4.3.3/src/kqueue.hpp
Examining data/zeromq3-4.3.3/src/lb.cpp
Examining data/zeromq3-4.3.3/src/lb.hpp
Examining data/zeromq3-4.3.3/src/likely.hpp
Examining data/zeromq3-4.3.3/src/macros.hpp
Examining data/zeromq3-4.3.3/src/mailbox.cpp
Examining data/zeromq3-4.3.3/src/mailbox.hpp
Examining data/zeromq3-4.3.3/src/mailbox_safe.cpp
Examining data/zeromq3-4.3.3/src/mailbox_safe.hpp
Examining data/zeromq3-4.3.3/src/mechanism.cpp
Examining data/zeromq3-4.3.3/src/mechanism.hpp
Examining data/zeromq3-4.3.3/src/mechanism_base.cpp
Examining data/zeromq3-4.3.3/src/mechanism_base.hpp
Examining data/zeromq3-4.3.3/src/metadata.cpp
Examining data/zeromq3-4.3.3/src/metadata.hpp
Examining data/zeromq3-4.3.3/src/msg.cpp
Examining data/zeromq3-4.3.3/src/msg.hpp
Examining data/zeromq3-4.3.3/src/mtrie.cpp
Examining data/zeromq3-4.3.3/src/mtrie.hpp
Examining data/zeromq3-4.3.3/src/mutex.hpp
Examining data/zeromq3-4.3.3/src/norm_engine.cpp
Examining data/zeromq3-4.3.3/src/norm_engine.hpp
Examining data/zeromq3-4.3.3/src/null_mechanism.cpp
Examining data/zeromq3-4.3.3/src/null_mechanism.hpp
Examining data/zeromq3-4.3.3/src/object.cpp
Examining data/zeromq3-4.3.3/src/object.hpp
Examining data/zeromq3-4.3.3/src/options.cpp
Examining data/zeromq3-4.3.3/src/options.hpp
Examining data/zeromq3-4.3.3/src/own.cpp
Examining data/zeromq3-4.3.3/src/own.hpp
Examining data/zeromq3-4.3.3/src/pair.cpp
Examining data/zeromq3-4.3.3/src/pair.hpp
Examining data/zeromq3-4.3.3/src/peer.cpp
Examining data/zeromq3-4.3.3/src/peer.hpp
Examining data/zeromq3-4.3.3/src/pgm_receiver.cpp
Examining data/zeromq3-4.3.3/src/pgm_receiver.hpp
Examining data/zeromq3-4.3.3/src/pgm_sender.cpp
Examining data/zeromq3-4.3.3/src/pgm_sender.hpp
Examining data/zeromq3-4.3.3/src/pgm_socket.cpp
Examining data/zeromq3-4.3.3/src/pgm_socket.hpp
Examining data/zeromq3-4.3.3/src/pipe.cpp
Examining data/zeromq3-4.3.3/src/pipe.hpp
Examining data/zeromq3-4.3.3/src/plain_client.cpp
Examining data/zeromq3-4.3.3/src/plain_client.hpp
Examining data/zeromq3-4.3.3/src/plain_common.hpp
Examining data/zeromq3-4.3.3/src/plain_server.cpp
Examining data/zeromq3-4.3.3/src/plain_server.hpp
Examining data/zeromq3-4.3.3/src/poll.cpp
Examining data/zeromq3-4.3.3/src/poll.hpp
Examining data/zeromq3-4.3.3/src/poller.hpp
Examining data/zeromq3-4.3.3/src/poller_base.cpp
Examining data/zeromq3-4.3.3/src/poller_base.hpp
Examining data/zeromq3-4.3.3/src/polling_util.cpp
Examining data/zeromq3-4.3.3/src/polling_util.hpp
Examining data/zeromq3-4.3.3/src/pollset.cpp
Examining data/zeromq3-4.3.3/src/pollset.hpp
Examining data/zeromq3-4.3.3/src/precompiled.cpp
Examining data/zeromq3-4.3.3/src/precompiled.hpp
Examining data/zeromq3-4.3.3/src/proxy.cpp
Examining data/zeromq3-4.3.3/src/proxy.hpp
Examining data/zeromq3-4.3.3/src/pub.cpp
Examining data/zeromq3-4.3.3/src/pub.hpp
Examining data/zeromq3-4.3.3/src/pull.cpp
Examining data/zeromq3-4.3.3/src/pull.hpp
Examining data/zeromq3-4.3.3/src/push.cpp
Examining data/zeromq3-4.3.3/src/push.hpp
Examining data/zeromq3-4.3.3/src/radio.cpp
Examining data/zeromq3-4.3.3/src/radio.hpp
Examining data/zeromq3-4.3.3/src/radix_tree.cpp
Examining data/zeromq3-4.3.3/src/radix_tree.hpp
Examining data/zeromq3-4.3.3/src/random.cpp
Examining data/zeromq3-4.3.3/src/random.hpp
Examining data/zeromq3-4.3.3/src/raw_decoder.cpp
Examining data/zeromq3-4.3.3/src/raw_decoder.hpp
Examining data/zeromq3-4.3.3/src/raw_encoder.cpp
Examining data/zeromq3-4.3.3/src/raw_encoder.hpp
Examining data/zeromq3-4.3.3/src/raw_engine.cpp
Examining data/zeromq3-4.3.3/src/raw_engine.hpp
Examining data/zeromq3-4.3.3/src/reaper.cpp
Examining data/zeromq3-4.3.3/src/reaper.hpp
Examining data/zeromq3-4.3.3/src/rep.cpp
Examining data/zeromq3-4.3.3/src/rep.hpp
Examining data/zeromq3-4.3.3/src/req.cpp
Examining data/zeromq3-4.3.3/src/req.hpp
Examining data/zeromq3-4.3.3/src/router.cpp
Examining data/zeromq3-4.3.3/src/router.hpp
Examining data/zeromq3-4.3.3/src/scatter.cpp
Examining data/zeromq3-4.3.3/src/scatter.hpp
Examining data/zeromq3-4.3.3/src/secure_allocator.hpp
Examining data/zeromq3-4.3.3/src/select.cpp
Examining data/zeromq3-4.3.3/src/select.hpp
Examining data/zeromq3-4.3.3/src/server.cpp
Examining data/zeromq3-4.3.3/src/server.hpp
Examining data/zeromq3-4.3.3/src/session_base.cpp
Examining data/zeromq3-4.3.3/src/session_base.hpp
Examining data/zeromq3-4.3.3/src/signaler.cpp
Examining data/zeromq3-4.3.3/src/signaler.hpp
Examining data/zeromq3-4.3.3/src/socket_base.cpp
Examining data/zeromq3-4.3.3/src/socket_base.hpp
Examining data/zeromq3-4.3.3/src/socket_poller.cpp
Examining data/zeromq3-4.3.3/src/socket_poller.hpp
Examining data/zeromq3-4.3.3/src/socks.cpp
Examining data/zeromq3-4.3.3/src/socks.hpp
Examining data/zeromq3-4.3.3/src/socks_connecter.cpp
Examining data/zeromq3-4.3.3/src/socks_connecter.hpp
Examining data/zeromq3-4.3.3/src/stdint.hpp
Examining data/zeromq3-4.3.3/src/stream.cpp
Examining data/zeromq3-4.3.3/src/stream.hpp
Examining data/zeromq3-4.3.3/src/stream_connecter_base.cpp
Examining data/zeromq3-4.3.3/src/stream_connecter_base.hpp
Examining data/zeromq3-4.3.3/src/stream_engine_base.cpp
Examining data/zeromq3-4.3.3/src/stream_engine_base.hpp
Examining data/zeromq3-4.3.3/src/stream_listener_base.cpp
Examining data/zeromq3-4.3.3/src/stream_listener_base.hpp
Examining data/zeromq3-4.3.3/src/sub.cpp
Examining data/zeromq3-4.3.3/src/sub.hpp
Examining data/zeromq3-4.3.3/src/tcp.cpp
Examining data/zeromq3-4.3.3/src/tcp.hpp
Examining data/zeromq3-4.3.3/src/tcp_address.cpp
Examining data/zeromq3-4.3.3/src/tcp_address.hpp
Examining data/zeromq3-4.3.3/src/tcp_connecter.cpp
Examining data/zeromq3-4.3.3/src/tcp_connecter.hpp
Examining data/zeromq3-4.3.3/src/tcp_listener.cpp
Examining data/zeromq3-4.3.3/src/tcp_listener.hpp
Examining data/zeromq3-4.3.3/src/thread.cpp
Examining data/zeromq3-4.3.3/src/thread.hpp
Examining data/zeromq3-4.3.3/src/timers.cpp
Examining data/zeromq3-4.3.3/src/timers.hpp
Examining data/zeromq3-4.3.3/src/tipc_address.cpp
Examining data/zeromq3-4.3.3/src/tipc_address.hpp
Examining data/zeromq3-4.3.3/src/tipc_connecter.cpp
Examining data/zeromq3-4.3.3/src/tipc_connecter.hpp
Examining data/zeromq3-4.3.3/src/tipc_listener.cpp
Examining data/zeromq3-4.3.3/src/tipc_listener.hpp
Examining data/zeromq3-4.3.3/src/trie.cpp
Examining data/zeromq3-4.3.3/src/trie.hpp
Examining data/zeromq3-4.3.3/src/tweetnacl.c
Examining data/zeromq3-4.3.3/src/tweetnacl.h
Examining data/zeromq3-4.3.3/src/udp_address.cpp
Examining data/zeromq3-4.3.3/src/udp_address.hpp
Examining data/zeromq3-4.3.3/src/udp_engine.cpp
Examining data/zeromq3-4.3.3/src/udp_engine.hpp
Examining data/zeromq3-4.3.3/src/v1_decoder.cpp
Examining data/zeromq3-4.3.3/src/v1_decoder.hpp
Examining data/zeromq3-4.3.3/src/v1_encoder.cpp
Examining data/zeromq3-4.3.3/src/v1_encoder.hpp
Examining data/zeromq3-4.3.3/src/v2_decoder.cpp
Examining data/zeromq3-4.3.3/src/v2_decoder.hpp
Examining data/zeromq3-4.3.3/src/v2_encoder.cpp
Examining data/zeromq3-4.3.3/src/v2_encoder.hpp
Examining data/zeromq3-4.3.3/src/v2_protocol.hpp
Examining data/zeromq3-4.3.3/src/v3_1_encoder.cpp
Examining data/zeromq3-4.3.3/src/v3_1_encoder.hpp
Examining data/zeromq3-4.3.3/src/vmci.cpp
Examining data/zeromq3-4.3.3/src/vmci.hpp
Examining data/zeromq3-4.3.3/src/vmci_address.cpp
Examining data/zeromq3-4.3.3/src/vmci_address.hpp
Examining data/zeromq3-4.3.3/src/vmci_connecter.cpp
Examining data/zeromq3-4.3.3/src/vmci_connecter.hpp
Examining data/zeromq3-4.3.3/src/vmci_listener.cpp
Examining data/zeromq3-4.3.3/src/vmci_listener.hpp
Examining data/zeromq3-4.3.3/src/windows.hpp
Examining data/zeromq3-4.3.3/src/wire.hpp
Examining data/zeromq3-4.3.3/src/ws_address.cpp
Examining data/zeromq3-4.3.3/src/ws_address.hpp
Examining data/zeromq3-4.3.3/src/ws_connecter.cpp
Examining data/zeromq3-4.3.3/src/ws_connecter.hpp
Examining data/zeromq3-4.3.3/src/ws_decoder.cpp
Examining data/zeromq3-4.3.3/src/ws_decoder.hpp
Examining data/zeromq3-4.3.3/src/ws_encoder.cpp
Examining data/zeromq3-4.3.3/src/ws_encoder.hpp
Examining data/zeromq3-4.3.3/src/ws_engine.cpp
Examining data/zeromq3-4.3.3/src/ws_engine.hpp
Examining data/zeromq3-4.3.3/src/ws_listener.cpp
Examining data/zeromq3-4.3.3/src/ws_listener.hpp
Examining data/zeromq3-4.3.3/src/ws_protocol.hpp
Examining data/zeromq3-4.3.3/src/wss_address.cpp
Examining data/zeromq3-4.3.3/src/wss_address.hpp
Examining data/zeromq3-4.3.3/src/wss_engine.cpp
Examining data/zeromq3-4.3.3/src/wss_engine.hpp
Examining data/zeromq3-4.3.3/src/xpub.cpp
Examining data/zeromq3-4.3.3/src/xpub.hpp
Examining data/zeromq3-4.3.3/src/xsub.cpp
Examining data/zeromq3-4.3.3/src/xsub.hpp
Examining data/zeromq3-4.3.3/src/ypipe.hpp
Examining data/zeromq3-4.3.3/src/ypipe_base.hpp
Examining data/zeromq3-4.3.3/src/ypipe_conflate.hpp
Examining data/zeromq3-4.3.3/src/yqueue.hpp
Examining data/zeromq3-4.3.3/src/zap_client.cpp
Examining data/zeromq3-4.3.3/src/zap_client.hpp
Examining data/zeromq3-4.3.3/src/zmq_draft.h
Examining data/zeromq3-4.3.3/src/zmq_utils.cpp
Examining data/zeromq3-4.3.3/src/zmtp_engine.cpp
Examining data/zeromq3-4.3.3/src/zmtp_engine.hpp
Examining data/zeromq3-4.3.3/src/zmq.cpp
Examining data/zeromq3-4.3.3/tests/test_abstract_ipc.cpp
Examining data/zeromq3-4.3.3/tests/test_address_tipc.cpp
Examining data/zeromq3-4.3.3/tests/test_ancillaries.cpp
Examining data/zeromq3-4.3.3/tests/test_app_meta.cpp
Examining data/zeromq3-4.3.3/tests/test_atomics.cpp
Examining data/zeromq3-4.3.3/tests/test_base85.cpp
Examining data/zeromq3-4.3.3/tests/test_bind_after_connect_tcp.cpp
Examining data/zeromq3-4.3.3/tests/test_bind_curve_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_bind_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_bind_null_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_bind_src_address.cpp
Examining data/zeromq3-4.3.3/tests/test_bind_stream_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_bind_ws_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_capabilities.cpp
Examining data/zeromq3-4.3.3/tests/test_channel.cpp
Examining data/zeromq3-4.3.3/tests/test_client_server.cpp
Examining data/zeromq3-4.3.3/tests/test_conflate.cpp
Examining data/zeromq3-4.3.3/tests/test_connect_curve_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_connect_delay_tipc.cpp
Examining data/zeromq3-4.3.3/tests/test_connect_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_connect_null_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_connect_resolve.cpp
Examining data/zeromq3-4.3.3/tests/test_connect_rid.cpp
Examining data/zeromq3-4.3.3/tests/test_connect_stream_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_connect_ws_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_ctx_destroy.cpp
Examining data/zeromq3-4.3.3/tests/test_dgram.cpp
Examining data/zeromq3-4.3.3/tests/test_diffserv.cpp
Examining data/zeromq3-4.3.3/tests/test_disconnect_inproc.cpp
Examining data/zeromq3-4.3.3/tests/test_disconnect_msg.cpp
Examining data/zeromq3-4.3.3/tests/test_filter_ipc.cpp
Examining data/zeromq3-4.3.3/tests/test_fork.cpp
Examining data/zeromq3-4.3.3/tests/test_getsockopt_memset.cpp
Examining data/zeromq3-4.3.3/tests/test_heartbeats.cpp
Examining data/zeromq3-4.3.3/tests/test_hello_msg.cpp
Examining data/zeromq3-4.3.3/tests/test_hwm.cpp
Examining data/zeromq3-4.3.3/tests/test_hwm_pubsub.cpp
Examining data/zeromq3-4.3.3/tests/test_immediate.cpp
Examining data/zeromq3-4.3.3/tests/test_inproc_connect.cpp
Examining data/zeromq3-4.3.3/tests/test_invalid_rep.cpp
Examining data/zeromq3-4.3.3/tests/test_iov.cpp
Examining data/zeromq3-4.3.3/tests/test_ipc_wildcard.cpp
Examining data/zeromq3-4.3.3/tests/test_issue_566.cpp
Examining data/zeromq3-4.3.3/tests/test_last_endpoint.cpp
Examining data/zeromq3-4.3.3/tests/test_many_sockets.cpp
Examining data/zeromq3-4.3.3/tests/test_metadata.cpp
Examining data/zeromq3-4.3.3/tests/test_mock_pub_sub.cpp
Examining data/zeromq3-4.3.3/tests/test_monitor.cpp
Examining data/zeromq3-4.3.3/tests/test_msg_ffn.cpp
Examining data/zeromq3-4.3.3/tests/test_msg_flags.cpp
Examining data/zeromq3-4.3.3/tests/test_msg_init.cpp
Examining data/zeromq3-4.3.3/tests/test_pair_inproc.cpp
Examining data/zeromq3-4.3.3/tests/test_pair_ipc.cpp
Examining data/zeromq3-4.3.3/tests/test_pair_tcp.cpp
Examining data/zeromq3-4.3.3/tests/test_pair_tcp_cap_net_admin.cpp
Examining data/zeromq3-4.3.3/tests/test_pair_tipc.cpp
Examining data/zeromq3-4.3.3/tests/test_pair_vmci.cpp
Examining data/zeromq3-4.3.3/tests/test_peer.cpp
Examining data/zeromq3-4.3.3/tests/test_poller.cpp
Examining data/zeromq3-4.3.3/tests/test_probe_router.cpp
Examining data/zeromq3-4.3.3/tests/test_proxy.cpp
Examining data/zeromq3-4.3.3/tests/test_proxy_hwm.cpp
Examining data/zeromq3-4.3.3/tests/test_proxy_single_socket.cpp
Examining data/zeromq3-4.3.3/tests/test_proxy_terminate.cpp
Examining data/zeromq3-4.3.3/tests/test_pub_invert_matching.cpp
Examining data/zeromq3-4.3.3/tests/test_radio_dish.cpp
Examining data/zeromq3-4.3.3/tests/test_rebind_ipc.cpp
Examining data/zeromq3-4.3.3/tests/test_reconnect_ivl.cpp
Examining data/zeromq3-4.3.3/tests/test_reconnect_options.cpp
Examining data/zeromq3-4.3.3/tests/test_reqrep_device.cpp
Examining data/zeromq3-4.3.3/tests/test_reqrep_device_tipc.cpp
Examining data/zeromq3-4.3.3/tests/test_reqrep_inproc.cpp
Examining data/zeromq3-4.3.3/tests/test_reqrep_ipc.cpp
Examining data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp
Examining data/zeromq3-4.3.3/tests/test_reqrep_tipc.cpp
Examining data/zeromq3-4.3.3/tests/test_reqrep_vmci.cpp
Examining data/zeromq3-4.3.3/tests/test_router_handover.cpp
Examining data/zeromq3-4.3.3/tests/test_router_mandatory.cpp
Examining data/zeromq3-4.3.3/tests/test_router_mandatory_hwm.cpp
Examining data/zeromq3-4.3.3/tests/test_router_mandatory_tipc.cpp
Examining data/zeromq3-4.3.3/tests/test_router_notify.cpp
Examining data/zeromq3-4.3.3/tests/test_scatter_gather.cpp
Examining data/zeromq3-4.3.3/tests/test_security_curve.cpp
Examining data/zeromq3-4.3.3/tests/test_security_gssapi.cpp
Examining data/zeromq3-4.3.3/tests/test_security_no_zap_handler.cpp
Examining data/zeromq3-4.3.3/tests/test_security_null.cpp
Examining data/zeromq3-4.3.3/tests/test_security_plain.cpp
Examining data/zeromq3-4.3.3/tests/test_security_zap.cpp
Examining data/zeromq3-4.3.3/tests/test_setsockopt.cpp
Examining data/zeromq3-4.3.3/tests/test_shutdown_stress.cpp
Examining data/zeromq3-4.3.3/tests/test_shutdown_stress_tipc.cpp
Examining data/zeromq3-4.3.3/tests/test_socket_null.cpp
Examining data/zeromq3-4.3.3/tests/test_socket_options_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_sockopt_hwm.cpp
Examining data/zeromq3-4.3.3/tests/test_socks.cpp
Examining data/zeromq3-4.3.3/tests/test_sodium.cpp
Examining data/zeromq3-4.3.3/tests/test_srcfd.cpp
Examining data/zeromq3-4.3.3/tests/test_stream.cpp
Examining data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp
Examining data/zeromq3-4.3.3/tests/test_stream_empty.cpp
Examining data/zeromq3-4.3.3/tests/test_stream_exceeds_buffer.cpp
Examining data/zeromq3-4.3.3/tests/test_stream_timeout.cpp
Examining data/zeromq3-4.3.3/tests/test_sub_forward.cpp
Examining data/zeromq3-4.3.3/tests/test_sub_forward_tipc.cpp
Examining data/zeromq3-4.3.3/tests/test_system.cpp
Examining data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp
Examining data/zeromq3-4.3.3/tests/test_term_endpoint.cpp
Examining data/zeromq3-4.3.3/tests/test_term_endpoint_tipc.cpp
Examining data/zeromq3-4.3.3/tests/test_thread_safe.cpp
Examining data/zeromq3-4.3.3/tests/test_timeo.cpp
Examining data/zeromq3-4.3.3/tests/test_timers.cpp
Examining data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp
Examining data/zeromq3-4.3.3/tests/test_use_fd.cpp
Examining data/zeromq3-4.3.3/tests/test_ws_transport.cpp
Examining data/zeromq3-4.3.3/tests/test_wss_transport.cpp
Examining data/zeromq3-4.3.3/tests/test_xpub_manual.cpp
Examining data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp
Examining data/zeromq3-4.3.3/tests/test_xpub_nodrop.cpp
Examining data/zeromq3-4.3.3/tests/test_xpub_verbose.cpp
Examining data/zeromq3-4.3.3/tests/test_xpub_welcome_msg.cpp
Examining data/zeromq3-4.3.3/tests/test_z85_decode_fuzzer.cpp
Examining data/zeromq3-4.3.3/tests/test_zmq_poll_fd.cpp
Examining data/zeromq3-4.3.3/tests/testutil.hpp
Examining data/zeromq3-4.3.3/tests/testutil_monitoring.cpp
Examining data/zeromq3-4.3.3/tests/testutil_monitoring.hpp
Examining data/zeromq3-4.3.3/tests/testutil_security.cpp
Examining data/zeromq3-4.3.3/tests/testutil_security.hpp
Examining data/zeromq3-4.3.3/tests/test_ctx_options.cpp
Examining data/zeromq3-4.3.3/tests/test_req_correlate.cpp
Examining data/zeromq3-4.3.3/tests/test_req_relaxed.cpp
Examining data/zeromq3-4.3.3/tests/test_spec_dealer.cpp
Examining data/zeromq3-4.3.3/tests/test_spec_pushpull.cpp
Examining data/zeromq3-4.3.3/tests/test_spec_rep.cpp
Examining data/zeromq3-4.3.3/tests/test_spec_req.cpp
Examining data/zeromq3-4.3.3/tests/test_spec_router.cpp
Examining data/zeromq3-4.3.3/tests/testutil.cpp
Examining data/zeromq3-4.3.3/tests/testutil_unity.cpp
Examining data/zeromq3-4.3.3/tests/testutil_unity.hpp
Examining data/zeromq3-4.3.3/tools/curve_keygen.cpp
Examining data/zeromq3-4.3.3/unittests/unittest_curve_encoding.cpp
Examining data/zeromq3-4.3.3/unittests/unittest_ip_resolver.cpp
Examining data/zeromq3-4.3.3/unittests/unittest_mtrie.cpp
Examining data/zeromq3-4.3.3/unittests/unittest_poller.cpp
Examining data/zeromq3-4.3.3/unittests/unittest_radix_tree.cpp
Examining data/zeromq3-4.3.3/unittests/unittest_resolver_common.hpp
Examining data/zeromq3-4.3.3/unittests/unittest_udp_address.cpp
Examining data/zeromq3-4.3.3/unittests/unittest_ypipe.cpp
Examining data/zeromq3-4.3.3/debian/zmq.hpp
Examining data/zeromq3-4.3.3/debian/zmq_addon.hpp

FINAL RESULTS:

data/zeromq3-4.3.3/debian/zmq.hpp:521:17:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    const char *gets(const char *property_)
data/zeromq3-4.3.3/src/ip.cpp:348:5:  [5] (misc) SetSecurityDescriptorDacl:
  Never create NULL ACLs; an attacker can set it to Everyone (Deny All
  Access), which would even forbid administrator access (CWE-732).
    SetSecurityDescriptorDacl (&sd, TRUE, 0, FALSE);
data/zeromq3-4.3.3/src/ip.cpp:348:5:  [5] (misc) SetSecurityDescriptorDacl:
  Never create NULL ACLs; an attacker can set it to Everyone (Deny All
  Access), which would even forbid administrator access (CWE-732).
    SetSecurityDescriptorDacl (&sd, TRUE, 0, FALSE);
data/zeromq3-4.3.3/external/wepoll/wepoll.c:242:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
     ACCESS_MASK access,                                                     \
data/zeromq3-4.3.3/src/ip.cpp:387:9:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
        swprintf (mutex_name, MAX_PATH, L"Global\\zmq-signaler-port-%d",
data/zeromq3-4.3.3/src/windows.hpp:98: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(buffer_, count_, format_, ...)                                \
data/zeromq3-4.3.3/tests/test_pair_tcp.cpp:96: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 (connect_endpoint, connect_endpoint_prefix);
data/zeromq3-4.3.3/tests/test_pair_tcp.cpp:97:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (connect_endpoint, pos);
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:69:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (connect_address_, "tcp://%s:%i;%s", ipv6_ ? "[::1]" : "127.0.0.1",
data/zeromq3-4.3.3/tests/test_socks.cpp:548:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (connect_address_hostname, strrchr (connect_address, ':'));
data/zeromq3-4.3.3/tests/test_socks.cpp:572:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (connect_address_hostname, strrchr (connect_address, ':'));
data/zeromq3-4.3.3/tests/test_socks.cpp:596:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (connect_address_hostname, strrchr (connect_address, ':'));
data/zeromq3-4.3.3/tests/test_socks.cpp:619:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (socks_address_bind_before_connect, socks_server_address);
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:81:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (connect_endpoint, "tcp://127.0.0.1:%s",
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:84: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 (connect_endpoint, bind_endpoint);
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:43:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (connect_endpoint, "tcp://127.0.0.1:%s",
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:46: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 (connect_endpoint, bind_endpoint);
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:84:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (connect_endpoint, "tcp://[::1]:%s",
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:87:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (connect_endpoint, "tcp://127.0.0.1:%s",
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:90: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 (connect_endpoint, bind_endpoint);
data/zeromq3-4.3.3/tests/test_use_fd.cpp:172: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 (ipc_endpoint, strchr (my_endpoint_, '/') + 2);
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:50:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (connect_address, "ws://127.0.0.1%s", strrchr (bind_address, ':'));
data/zeromq3-4.3.3/tests/testutil.cpp:392:13:  [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 (address, strchr (endpoint_, '[') + 1);
data/zeromq3-4.3.3/tests/testutil.cpp:395:13:  [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 (address, strchr (endpoint_, '/') + 2);
data/zeromq3-4.3.3/tests/testutil.cpp:416:9:  [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 ((*(struct sockaddr_un *) &addr).sun_path, endpoint_);
data/zeromq3-4.3.3/tests/testutil.cpp:496:9:  [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 ((*(struct sockaddr_un *) &addr).sun_path, buffer);
data/zeromq3-4.3.3/tests/testutil.cpp:518:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (my_endpoint_, "%s://%s:%u",
data/zeromq3-4.3.3/tests/testutil.cpp:584:9:  [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 (filename, dirname);
data/zeromq3-4.3.3/tests/testutil.cpp:586: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).
        strcat (filename, ent->d_name);
data/zeromq3-4.3.3/tests/testutil.hpp:146: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(buffer_, count_, format_, ...)                                \
data/zeromq3-4.3.3/tests/testutil_security.hpp:112:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf (stderr,                                                      \
data/zeromq3-4.3.3/tests/testutil_unity.cpp:333:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (out_endpoint_, random_file);
data/zeromq3-4.3.3/external/wepoll/wepoll.c:1083:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(&port_state->lock);
data/zeromq3-4.3.3/external/wepoll/wepoll.c:1107:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&port_state->lock);
data/zeromq3-4.3.3/external/wepoll/wepoll.c:1206:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&port_state->lock);
data/zeromq3-4.3.3/external/wepoll/wepoll.c:1252:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&port_state->lock);
data/zeromq3-4.3.3/external/wepoll/wepoll.c:1359:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&port_state->lock);
data/zeromq3-4.3.3/src/ip.cpp:861:36:  [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.
        const char *const tmpdir = getenv (*tmp_env);
data/zeromq3-4.3.3/src/mutex.hpp:47:18:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    mutex_t () { InitializeCriticalSection (&_cs); }
data/zeromq3-4.3.3/src/mutex.hpp:51:20:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    void lock () { EnterCriticalSection (&_cs); }
data/zeromq3-4.3.3/src/random.cpp:56:5:  [3] (random) srand:
  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.
    srand (static_cast<unsigned int> (clock_t::now_us () + pid));
data/zeromq3-4.3.3/src/ws_encoder.cpp:91:40:  [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.
        put_uint32 (_tmp_buf + offset, random);
data/zeromq3-4.3.3/src/ws_encoder.cpp:92:28:  [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.
        put_uint32 (_mask, random);
data/zeromq3-4.3.3/tests/test_security_gssapi.cpp:109:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!getenv ("KRB5_KTNAME") || !getenv ("KRB5_CLIENT_KTNAME")) {
data/zeromq3-4.3.3/tests/test_security_gssapi.cpp:109:37:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!getenv ("KRB5_KTNAME") || !getenv ("KRB5_CLIENT_KTNAME")) {
data/zeromq3-4.3.3/builds/deprecated-msvc/vs2015_xp/test_zmq/test_multithread.cpp:38: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, &val, sizeof(int));
data/zeromq3-4.3.3/builds/deprecated-msvc/vs2015_xp/test_zmq/test_multithread.cpp:43: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, &check_sum, sizeof(int));
data/zeromq3-4.3.3/builds/deprecated-msvc/vs2015_xp/test_zmq/test_multithread.cpp:52:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&val, data, sizeof(int));
data/zeromq3-4.3.3/builds/deprecated-msvc/vs2015_xp/test_zmq/test_multithread.cpp:65: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(&check_sum, data, sizeof(int));
data/zeromq3-4.3.3/builds/zos/test_fork.cpp:78:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 [5];
data/zeromq3-4.3.3/debian/zmq.hpp:357:9:  [2] (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_, size_);
data/zeromq3-4.3.3/debian/zmq.hpp:426:9:  [2] (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_, size_);
data/zeromq3-4.3.3/debian/zmq.hpp:1794:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&msgEvent.event, data, sizeof(uint16_t));
data/zeromq3-4.3.3/debian/zmq.hpp:1796:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&msgEvent.value, data, sizeof(int32_t));
data/zeromq3-4.3.3/external/unity/unity.c:286: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 buf[16];
data/zeromq3-4.3.3/include/zmq.h:254:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    __declspec(align (8)) unsigned char _[64];
data/zeromq3-4.3.3/include/zmq.h:256:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    __declspec(align (4)) unsigned char _[64];
data/zeromq3-4.3.3/include/zmq.h:260:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _[64] __attribute__ ((aligned (sizeof (void *))));
data/zeromq3-4.3.3/include/zmq.h:262:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _[64];
data/zeromq3-4.3.3/perf/inproc_lat.cpp:130:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    message_size = atoi (argv[1]);
data/zeromq3-4.3.3/perf/inproc_lat.cpp:131: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).
    roundtrip_count = atoi (argv[2]);
data/zeromq3-4.3.3/perf/inproc_thr.cpp:130:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    message_size = atoi (argv[1]);
data/zeromq3-4.3.3/perf/inproc_thr.cpp:131: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).
    message_count = atoi (argv[2]);
data/zeromq3-4.3.3/perf/local_lat.cpp:51:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    message_size = atoi (argv[2]);
data/zeromq3-4.3.3/perf/local_lat.cpp:52: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).
    roundtrip_count = atoi (argv[3]);
data/zeromq3-4.3.3/perf/local_thr.cpp:59:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    message_size = atoi (argv[2]);
data/zeromq3-4.3.3/perf/local_thr.cpp:60: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).
    message_count = atoi (argv[3]);
data/zeromq3-4.3.3/perf/local_thr.cpp:61:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (argc >= 5 && atoi (argv[4])) {
data/zeromq3-4.3.3/perf/proxy_thr.cpp:97: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.
    const char *frontend_endpoint[4];
data/zeromq3-4.3.3/perf/proxy_thr.cpp:98: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.
    const char *backend_endpoint[4];
data/zeromq3-4.3.3/perf/proxy_thr.cpp:108: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 buffer[512];
data/zeromq3-4.3.3/perf/proxy_thr.cpp:155:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32] = {};
data/zeromq3-4.3.3/perf/proxy_thr.cpp:332:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    message_size = atoi (argv[1]);
data/zeromq3-4.3.3/perf/proxy_thr.cpp:333: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).
    message_count = atoi (argv[2]);
data/zeromq3-4.3.3/perf/remote_lat.cpp:55:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    message_size = atoi (argv[2]);
data/zeromq3-4.3.3/perf/remote_lat.cpp:56: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).
    roundtrip_count = atoi (argv[3]);
data/zeromq3-4.3.3/perf/remote_thr.cpp:58:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    message_size = atoi (argv[2]);
data/zeromq3-4.3.3/perf/remote_thr.cpp:59: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).
    message_count = atoi (argv[3]);
data/zeromq3-4.3.3/perf/remote_thr.cpp:60:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (argc >= 5 && atoi (argv[4])) {
data/zeromq3-4.3.3/src/blob.hpp:95:9:  [2] (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_, size_);
data/zeromq3-4.3.3/src/blob.hpp:134:9:  [2] (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, other_._data, _size);
data/zeromq3-4.3.3/src/blob.hpp:145:9:  [2] (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_, size_);
data/zeromq3-4.3.3/src/ctx.cpp:263:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&value, optval_, sizeof (int));
data/zeromq3-4.3.3/src/ctx.cpp:556:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char namebuf[16] = "";
data/zeromq3-4.3.3/src/ctx.cpp:569:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&value, optval_, sizeof (int));
data/zeromq3-4.3.3/src/ctx.cpp:647:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                *value = atoi (_thread_name_prefix.c_str ());
data/zeromq3-4.3.3/src/ctx.cpp:651:17:  [2] (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_, _thread_name_prefix.data (),
data/zeromq3-4.3.3/src/curve_client.cpp:226: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 (&ready_box[crypto_box_BOXZEROBYTES], msg_data_ + 14,
data/zeromq3-4.3.3/src/curve_client.cpp:229: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 (ready_nonce, "CurveZMQREADY---", 16);
data/zeromq3-4.3.3/src/curve_client.cpp:230: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 (ready_nonce + 16, msg_data_ + 6, 8);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:69:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (hello_nonce, "CurveZMQHELLO---", 16);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:81:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (hello, "\x05HELLO", 6);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:83:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (hello + 6, "\1\0", 2);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:87:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (hello + 80, cn_public_, crypto_box_PUBLICKEYBYTES);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:89:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (hello + 112, hello_nonce + 16, 8);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:91:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (hello + 120, hello_box + crypto_box_BOXZEROBYTES, 80);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:116:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (welcome_box + crypto_box_BOXZEROBYTES, msg_data_ + 24, 144);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:118:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (welcome_nonce, "WELCOME-", 8);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:119:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (welcome_nonce + 8, msg_data_ + 8, 16);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:129:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (cn_server_, &welcome_plaintext[crypto_box_ZEROBYTES], 32);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:130:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (cn_cookie_, &welcome_plaintext[crypto_box_ZEROBYTES + 32],
data/zeromq3-4.3.3/src/curve_client_tools.hpp:161:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&vouch_plaintext[crypto_box_ZEROBYTES], cn_public_, 32);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:162:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&vouch_plaintext[crypto_box_ZEROBYTES + 32], server_key_, 32);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:165:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (vouch_nonce, "VOUCH---", 8);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:183:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&initiate_plaintext[crypto_box_ZEROBYTES], public_key_, 32);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:184:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 32], vouch_nonce + 8,
data/zeromq3-4.3.3/src/curve_client_tools.hpp:186:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 48],
data/zeromq3-4.3.3/src/curve_client_tools.hpp:189:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 48 + 80],
data/zeromq3-4.3.3/src/curve_client_tools.hpp:193:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (initiate_nonce, "CurveZMQINITIATE", 16);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:208:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (initiate, "\x08INITIATE", 9);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:210:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (initiate + 9, cn_cookie_, 96);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:212:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (initiate + 105, initiate_nonce + 16, 8);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:214:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (initiate + 113, &initiate_box[crypto_box_BOXZEROBYTES],
data/zeromq3-4.3.3/src/curve_client_tools.hpp:245:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (public_key, curve_public_key_, crypto_box_PUBLICKEYBYTES);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:246:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (secret_key, curve_secret_key_, crypto_box_SECRETKEYBYTES);
data/zeromq3-4.3.3/src/curve_client_tools.hpp:247:9:  [2] (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_key, curve_server_key_, crypto_box_PUBLICKEYBYTES);
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:142: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 (message_nonce, _encode_nonce_prefix, nonce_prefix_len);
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:179:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&message_plaintext[flags_len], zmq::sub_cmd_name,
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:183:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&message_plaintext[flags_len], zmq::cancel_cmd_name,
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:190:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&message_plaintext[flags_len + sub_cancel_len], msg_->data (),
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:223: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 (message + message_header_len, &message_box[crypto_box_BOXZEROBYTES],
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:227: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 (message, message_command, message_command_len);
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:228: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 (message + message_command_len, message_nonce + nonce_prefix_len,
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:244: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 (message_nonce, _decode_nonce_prefix, nonce_prefix_len);
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:245: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 (message_nonce + nonce_prefix_len, message + message_command_len,
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:265: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 (&message_box[crypto_box_BOXZEROBYTES], message + message_header_len,
data/zeromq3-4.3.3/src/curve_mechanism_base.cpp:298:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (msg_->data (), &message_plaintext[flags_len],
data/zeromq3-4.3.3/src/curve_server.cpp:57: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 (_secret_key, options_.curve_secret_key, crypto_box_SECRETKEYBYTES);
data/zeromq3-4.3.3/src/curve_server.cpp:181: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 (_cn_client, hello + 80, 32);
data/zeromq3-4.3.3/src/curve_server.cpp:188: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 (hello_nonce, "CurveZMQHELLO---", 16);
data/zeromq3-4.3.3/src/curve_server.cpp:189: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 (hello_nonce + 16, hello + 112, 8);
data/zeromq3-4.3.3/src/curve_server.cpp:193: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 (hello_box + crypto_box_BOXZEROBYTES, hello + 120, 80);
data/zeromq3-4.3.3/src/curve_server.cpp:220: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 (cookie_nonce, "COOKIE--", 8);
data/zeromq3-4.3.3/src/curve_server.cpp:226: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 (&cookie_plaintext[crypto_secretbox_ZEROBYTES], _cn_client, 32);
data/zeromq3-4.3.3/src/curve_server.cpp:227: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 (&cookie_plaintext[crypto_secretbox_ZEROBYTES + 32], _cn_secret, 32);
data/zeromq3-4.3.3/src/curve_server.cpp:247: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 (welcome_nonce, "WELCOME-", 8);
data/zeromq3-4.3.3/src/curve_server.cpp:253: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 (&welcome_plaintext[crypto_box_ZEROBYTES], _cn_public, 32);
data/zeromq3-4.3.3/src/curve_server.cpp:254: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 (&welcome_plaintext[crypto_box_ZEROBYTES + 32], cookie_nonce + 8,
data/zeromq3-4.3.3/src/curve_server.cpp:256: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 (&welcome_plaintext[crypto_box_ZEROBYTES + 48],
data/zeromq3-4.3.3/src/curve_server.cpp:276: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 (welcome, "\x07WELCOME", 8);
data/zeromq3-4.3.3/src/curve_server.cpp:277: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 (welcome + 8, welcome_nonce + 8, 16);
data/zeromq3-4.3.3/src/curve_server.cpp:278: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 (welcome + 24, welcome_ciphertext + crypto_box_BOXZEROBYTES, 144);
data/zeromq3-4.3.3/src/curve_server.cpp:313: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 (cookie_box + crypto_secretbox_BOXZEROBYTES, initiate + 25, 80);
data/zeromq3-4.3.3/src/curve_server.cpp:315: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 (cookie_nonce, "COOKIE--", 8);
data/zeromq3-4.3.3/src/curve_server.cpp:316: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 (cookie_nonce + 8, initiate + 9, 16);
data/zeromq3-4.3.3/src/curve_server.cpp:352: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 (&initiate_box[crypto_box_BOXZEROBYTES], initiate + 113,
data/zeromq3-4.3.3/src/curve_server.cpp:355: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 (initiate_nonce, "CurveZMQINITIATE", 16);
data/zeromq3-4.3.3/src/curve_server.cpp:356: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 (initiate_nonce + 16, initiate + 105, 8);
data/zeromq3-4.3.3/src/curve_server.cpp:378: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 (vouch_box + crypto_box_BOXZEROBYTES,
data/zeromq3-4.3.3/src/curve_server.cpp:382: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 (vouch_nonce, "VOUCH---", 8);
data/zeromq3-4.3.3/src/curve_server.cpp:383: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 (vouch_nonce + 8, &initiate_plaintext[crypto_box_ZEROBYTES + 32],
data/zeromq3-4.3.3/src/curve_server.cpp:462: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 (ready_nonce, "CurveZMQREADY---", 16);
data/zeromq3-4.3.3/src/curve_server.cpp:477: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 (ready, "\x05READY", 6);
data/zeromq3-4.3.3/src/curve_server.cpp:479: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 (ready + 6, ready_nonce + 16, 8);
data/zeromq3-4.3.3/src/curve_server.cpp:481: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 (ready + 14, &ready_box[crypto_box_BOXZEROBYTES],
data/zeromq3-4.3.3/src/curve_server.cpp:494:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_data, "\5ERROR", 6);
data/zeromq3-4.3.3/src/curve_server.cpp:496:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_data + 7, status_code.c_str (), expected_status_code_length);
data/zeromq3-4.3.3/src/dealer.cpp:83:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&value, optval_, sizeof (int));
data/zeromq3-4.3.3/src/decoder.hpp:130:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (_read_pos, data_ + bytes_used_, to_copy);
data/zeromq3-4.3.3/src/devpoll.cpp:52: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).
    devpoll_fd = open ("/dev/poll", O_RDWR);
data/zeromq3-4.3.3/src/dish.cpp:323:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (command.data (), "\4JOIN", 5);
data/zeromq3-4.3.3/src/dish.cpp:328:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (command.data (), "\5LEAVE", 6);
data/zeromq3-4.3.3/src/dish.cpp:335: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 (command_data + offset, msg_->group (), group_length);
data/zeromq3-4.3.3/src/encoder.hpp:119:13:  [2] (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 + pos, _write_pos, to_copy);
data/zeromq3-4.3.3/src/err.cpp:417: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 func_name[256] = "";
data/zeromq3-4.3.3/src/err.cpp:426:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (func_name, unknown, sizeof unknown);
data/zeromq3-4.3.3/src/err.hpp:115:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char errstr[256];                                                  \
data/zeromq3-4.3.3/src/gssapi_client.cpp:56: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 (service_name, options_.gss_service_principal.c_str (),
data/zeromq3-4.3.3/src/gssapi_client.cpp:66:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (principal_name, options_.gss_principal.c_str (),
data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp:88: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 (plaintext_buffer + 1, msg_->data (), msg_->size ());
data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp:109: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 (ptr, "\x07MESSAGE", 8);
data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp:117: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 (ptr, wrapped.value, wrapped.length);
data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp:171:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (wrapped.value, ptr, wrapped.length);
data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp:205:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_->data (), static_cast<char *> (plaintext.value) + 1,
data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp:237: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 (ptr, "\x08INITIATE", 9);
data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp:245: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 (ptr, token_value_, token_length_);
data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp:300:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (*token_value_, ptr, token_length_);
data/zeromq3-4.3.3/src/gssapi_server.cpp:62:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (principal_name, options_.gss_principal.c_str (),
data/zeromq3-4.3.3/src/io_thread.cpp:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16] = "";
data/zeromq3-4.3.3/src/ip.cpp:187:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/zeromq3-4.3.3/src/ip.cpp:382:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t mutex_name[MAX_PATH];
data/zeromq3-4.3.3/src/ip.cpp:839:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_PATH];
data/zeromq3-4.3.3/src/ip.cpp:882: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 (&buffer[0], tmp_path.c_str (), tmp_path.length () + 1);
data/zeromq3-4.3.3/src/ip.cpp:899:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    int fd = mkstemp (&buffer[0]);
data/zeromq3-4.3.3/src/ip_resolver.cpp:84:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&ip6_addr->sin6_addr, &newaddr, sizeof (in6_addr));
data/zeromq3-4.3.3/src/ip_resolver.cpp:86:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&ip6_addr->sin6_addr, &in6addr_any, sizeof (in6addr_any));
data/zeromq3-4.3.3/src/ip_resolver.cpp:219:43:  [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).
            port = static_cast<uint16_t> (atoi (port_str.c_str ()));
data/zeromq3-4.3.3/src/ip_resolver.cpp:264:46:  [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).
            zone_id = static_cast<uint32_t> (atoi (if_str.c_str ()));
data/zeromq3-4.3.3/src/ip_resolver.cpp:396: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 (ip_addr_, res->ai_addr, res->ai_addrlen);
data/zeromq3-4.3.3/src/ip_resolver.cpp:502:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (ip_addr_, &ifr.ifr_addr,
data/zeromq3-4.3.3/src/ip_resolver.cpp:554:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (ip_addr_, ifp->ifa_addr,
data/zeromq3-4.3.3/src/ip_resolver.cpp:673:25:  [2] (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/zeromq3-4.3.3/src/ipc_address.cpp:52:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&_address, sa_, sa_len_);
data/zeromq3-4.3.3/src/ipc_address.cpp:72: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 (_address.sun_path, path_, path_len + 1);
data/zeromq3-4.3.3/src/ipc_address.cpp:90:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[sizeof prefix + sizeof _address.sun_path];
data/zeromq3-4.3.3/src/ipc_address.cpp:92: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 (pos, prefix, sizeof prefix - 1);
data/zeromq3-4.3.3/src/ipc_address.cpp:105: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 (pos, src_pos, src_len);
data/zeromq3-4.3.3/src/ipc_connecter.cpp:84:20:  [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).
    const int rc = open ();
data/zeromq3-4.3.3/src/ipc_connecter.cpp:112: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).
int zmq::ipc_connecter_t::open ()
data/zeromq3-4.3.3/src/ipc_connecter.hpp:61:9:  [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 ();
data/zeromq3-4.3.3/src/mechanism.cpp:59:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_->data (), _routing_id.data (), _routing_id.size ());
data/zeromq3-4.3.3/src/mechanism.cpp:150: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 (ptr_, name_, name_len);
data/zeromq3-4.3.3/src/mechanism.cpp:155:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ptr_, value_, value_len_);
data/zeromq3-4.3.3/src/mechanism.cpp:230: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 (ptr, prefix_, prefix_len_);
data/zeromq3-4.3.3/src/msg.cpp:47: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.
typedef char
data/zeromq3-4.3.3/src/msg.cpp:66:13:  [2] (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_, size_);
data/zeromq3-4.3.3/src/msg.cpp:133:9:  [2] (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 (), buf_, size_);
data/zeromq3-4.3.3/src/msg.cpp:248:13:  [2] (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 (), topic_, size_);
data/zeromq3-4.3.3/src/msg.cpp:263:13:  [2] (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 (), topic_, size_);
data/zeromq3-4.3.3/src/msg.hpp:227: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 group[ZMQ_GROUP_MAX_LENGTH + 1];
data/zeromq3-4.3.3/src/msg.hpp:237:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char group[15];
data/zeromq3-4.3.3/src/msg.hpp:255:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char unused[msg_t_size
data/zeromq3-4.3.3/src/msg.hpp:266:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char data[max_vsm_size];
data/zeromq3-4.3.3/src/msg.hpp:277:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char
data/zeromq3-4.3.3/src/msg.hpp:290:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char
data/zeromq3-4.3.3/src/msg.hpp:304:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char unused[msg_t_size
data/zeromq3-4.3.3/src/msg.hpp:316:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char unused[msg_t_size
data/zeromq3-4.3.3/src/norm_engine.cpp:53: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 idText[32];
data/zeromq3-4.3.3/src/norm_engine.cpp:56:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        localId = (NormNodeId) atoi (idText);
data/zeromq3-4.3.3/src/norm_engine.cpp:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ifaceName[256];
data/zeromq3-4.3.3/src/norm_engine.cpp:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char addr[256];
data/zeromq3-4.3.3/src/norm_engine.cpp:92: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).
    unsigned short portNumber = atoi (portPtr);
data/zeromq3-4.3.3/src/norm_engine.hpp:175:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tx_buffer[BUFFER_SIZE];
data/zeromq3-4.3.3/src/null_mechanism.cpp:111:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (msg_data, error_command_name, error_command_name_len);
data/zeromq3-4.3.3/src/null_mechanism.cpp:115:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (msg_data, status_code.c_str (), status_code_len);
data/zeromq3-4.3.3/src/options.cpp:78: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 (optval_, value_, value_len_);
data/zeromq3-4.3.3/src/options.cpp:92:9:  [2] (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_, curve_key_, CURVE_KEYSIZE);
data/zeromq3-4.3.3/src/options.cpp:110:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (out_value_, optval_, sizeof (T));
data/zeromq3-4.3.3/src/options.cpp:275:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (destination_, optval_, optvallen_);
data/zeromq3-4.3.3/src/options.cpp:291:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char z85_key[CURVE_KEYSIZE_Z85 + 1];
data/zeromq3-4.3.3/src/options.cpp:292:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (z85_key, reinterpret_cast<const char *> (optval_),
data/zeromq3-4.3.3/src/options.cpp:316:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&value, optval_, sizeof (int));
data/zeromq3-4.3.3/src/options.cpp:343:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (routing_id, optval_, routing_id_size);
data/zeromq3-4.3.3/src/options.hpp:81:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char routing_id[256];
data/zeromq3-4.3.3/src/pgm_socket.cpp:81:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *port_number = atoi (port_delim + 1);
data/zeromq3-4.3.3/src/pgm_socket.cpp:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char network[256];
data/zeromq3-4.3.3/src/pgm_socket.cpp:89: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 (network, network_, port_delim - network_);
data/zeromq3-4.3.3/src/pipe.cpp:84: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 (id.data (), options_.routing_id, options_.routing_id_size);
data/zeromq3-4.3.3/src/plain_client.cpp:134: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 (ptr, hello_prefix, hello_prefix_len);
data/zeromq3-4.3.3/src/plain_client.cpp:138: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 (ptr, username.c_str (), username.length ());
data/zeromq3-4.3.3/src/plain_client.cpp:142: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 (ptr, password.c_str (), password.length ());
data/zeromq3-4.3.3/src/plain_server.cpp:199:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_->data (), welcome_prefix, welcome_prefix_len);
data/zeromq3-4.3.3/src/plain_server.cpp:236:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_data, error_prefix, error_prefix_len);
data/zeromq3-4.3.3/src/plain_server.cpp:238:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_data + error_prefix_len + status_code_len_size,
data/zeromq3-4.3.3/src/proxy.cpp:174:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg.data (), &stat_, sizeof (uint64_t));
data/zeromq3-4.3.3/src/radio.cpp:271:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (msg_->data (), group, length);
data/zeromq3-4.3.3/src/radix_tree.cpp:53: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, &value_, sizeof (value_));
data/zeromq3-4.3.3/src/radix_tree.cpp:65: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 + sizeof (value_), &value_, sizeof (value_));
data/zeromq3-4.3.3/src/radix_tree.cpp:77: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 + 2 * sizeof (value_), &value_, sizeof (value_));
data/zeromq3-4.3.3/src/radix_tree.cpp:87: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 (prefix (), bytes_, prefix_length ());
data/zeromq3-4.3.3/src/radix_tree.cpp:97: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 (first_bytes (), bytes_, edgecount ());
data/zeromq3-4.3.3/src/radix_tree.cpp:119: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 (node_pointers (), pointers_, edgecount () * sizeof (void *));
data/zeromq3-4.3.3/src/radix_tree.cpp:134: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 (node_pointers () + index_ * sizeof (void *), &node_._data,
data/zeromq3-4.3.3/src/radix_tree.cpp:453:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (current_node.prefix () + old_prefix_length, child.prefix (),
data/zeromq3-4.3.3/src/radix_tree.cpp:482:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (parent_node.prefix () + old_prefix_length,
data/zeromq3-4.3.3/src/req.cpp:78:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (id.data (), &_request_id, sizeof (uint32_t));
data/zeromq3-4.3.3/src/req.cpp:216:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&value, optval_, sizeof (int));
data/zeromq3-4.3.3/src/router.cpp:109:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&value, optval_, sizeof (int));
data/zeromq3-4.3.3/src/router.cpp:351:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (msg_->data (), routing_id.data (), routing_id.size ());
data/zeromq3-4.3.3/src/router.cpp:402: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 (_prefetched_id.data (), routing_id.data (), routing_id.size ());
data/zeromq3-4.3.3/src/router.cpp:467:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[5];
data/zeromq3-4.3.3/src/router.cpp:480:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char buf[5];
data/zeromq3-4.3.3/src/router.cpp:503:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[5];
data/zeromq3-4.3.3/src/select.cpp:464: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 (&read, &other_.read,
data/zeromq3-4.3.3/src/select.cpp:467: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 (&write, &other_.write,
data/zeromq3-4.3.3/src/select.cpp:470: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 (&error, &other_.error,
data/zeromq3-4.3.3/src/select.cpp:474: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 (&read, &other_.read, sizeof other_.read);
data/zeromq3-4.3.3/src/select.cpp:475: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 (&write, &other_.write, sizeof other_.write);
data/zeromq3-4.3.3/src/select.cpp:476: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 (&error, &other_.error, sizeof other_.error);
data/zeromq3-4.3.3/src/select.cpp:488: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 (&read, &other_.read,
data/zeromq3-4.3.3/src/select.cpp:491: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 (&write, &other_.write,
data/zeromq3-4.3.3/src/select.cpp:494: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 (&error, &other_.error,
data/zeromq3-4.3.3/src/select.cpp:498: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 (&read, &other_.read, sizeof other_.read);
data/zeromq3-4.3.3/src/select.cpp:499: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 (&write, &other_.write, sizeof other_.write);
data/zeromq3-4.3.3/src/select.cpp:500: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 (&error, &other_.error, sizeof other_.error);
data/zeromq3-4.3.3/src/socket_base.cpp:1987:17:  [2] (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 + 0, &event, sizeof (event));
data/zeromq3-4.3.3/src/socket_base.cpp:1988:17:  [2] (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 + sizeof (event), &value, sizeof (value));
data/zeromq3-4.3.3/src/socket_base.cpp:1996:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (zmq_msg_data (&msg), endpoint_uri.c_str (),
data/zeromq3-4.3.3/src/socket_base.cpp:2003:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (zmq_msg_data (&msg), &event_, sizeof (event_));
data/zeromq3-4.3.3/src/socket_base.cpp:2008:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (zmq_msg_data (&msg), &values_count_,
data/zeromq3-4.3.3/src/socket_base.cpp:2015:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy (zmq_msg_data (&msg), &values_[i],
data/zeromq3-4.3.3/src/socket_base.cpp:2022:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (zmq_msg_data (&msg), endpoint_uri_pair_.local.c_str (),
data/zeromq3-4.3.3/src/socket_base.cpp:2028:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (zmq_msg_data (&msg), endpoint_uri_pair_.remote.c_str (),
data/zeromq3-4.3.3/src/socket_poller.cpp:647:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (inset.get (), _pollset_in.get (),
data/zeromq3-4.3.3/src/socket_poller.cpp:649:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (outset.get (), _pollset_out.get (),
data/zeromq3-4.3.3/src/socket_poller.cpp:651:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (errset.get (), _pollset_err.get (),
data/zeromq3-4.3.3/src/socks.cpp:154: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 (ptr, req_.username.c_str (), req_.username.size ());
data/zeromq3-4.3.3/src/socks.cpp:157: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 (ptr, req_.password.c_str (), req_.password.size ());
data/zeromq3-4.3.3/src/socks.cpp:264:9:  [2] (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, &sockaddr_in->sin_addr, 4);
data/zeromq3-4.3.3/src/socks.cpp:270:9:  [2] (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, &sockaddr_in6->sin6_addr, 16);
data/zeromq3-4.3.3/src/socks.cpp:275:9:  [2] (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, req_.hostname.c_str (), req_.hostname.size ());
data/zeromq3-4.3.3/src/socks.hpp:80:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _buf[2];
data/zeromq3-4.3.3/src/socks_connecter.cpp:418:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    port_ = static_cast<uint16_t> (atoi (port_str.c_str ()));
data/zeromq3-4.3.3/src/socks_connecter.hpp:106:9:  [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 ();
data/zeromq3-4.3.3/src/stream.cpp:217:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_->data (), routing_id.data (), routing_id.size ());
data/zeromq3-4.3.3/src/stream.cpp:251: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 (_prefetched_routing_id.data (), routing_id.data (),
data/zeromq3-4.3.3/src/stream.cpp:272:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[5];
data/zeromq3-4.3.3/src/stream.cpp:285:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (options.routing_id, routing_id.data (), routing_id.size ());
data/zeromq3-4.3.3/src/stream_engine_base.cpp:609:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (msg.data (), credential.data (), credential.size ());
data/zeromq3-4.3.3/src/tcp_address.cpp:122:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[NI_MAXHOST + sizeof ipv6_prefix_ + sizeof ipv6_suffix_
data/zeromq3-4.3.3/src/tcp_address.cpp:125: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 (pos, ipv6_prefix_, sizeof ipv6_prefix_ - 1);
data/zeromq3-4.3.3/src/tcp_address.cpp:128: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 (pos, hbuf_, hbuf_len);
data/zeromq3-4.3.3/src/tcp_address.cpp:130: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 (pos, ipv6_suffix_, sizeof ipv6_suffix_ - 1);
data/zeromq3-4.3.3/src/tcp_address.cpp:132:12:  [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.
    pos += sprintf (pos, "%d", ntohs (port_));
data/zeromq3-4.3.3/src/tcp_address.cpp:145:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hbuf[NI_MAXHOST];
data/zeromq3-4.3.3/src/tcp_connecter.cpp:139:20:  [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).
    const int rc = open ();
data/zeromq3-4.3.3/src/tcp_connecter.cpp:174: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).
int zmq::tcp_connecter_t::open ()
data/zeromq3-4.3.3/src/tcp_connecter.hpp:74:9:  [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 ();
data/zeromq3-4.3.3/src/thread.hpp:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/zeromq3-4.3.3/src/tipc_address.cpp:53:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&address, sa_, sa_len_);
data/zeromq3-4.3.3/src/tipc_connecter.cpp:84:14:  [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 rc = open ();
data/zeromq3-4.3.3/src/tipc_connecter.cpp:108:28:  [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 zmq::tipc_connecter_t::open ()
data/zeromq3-4.3.3/src/tipc_connecter.hpp:67:9:  [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 ();
data/zeromq3-4.3.3/src/tweetnacl.c:976: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).
            fd = open ("/dev/urandom", flags);
data/zeromq3-4.3.3/src/udp_engine.cpp:369:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[6];
data/zeromq3-4.3.3/src/udp_engine.cpp:371:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (port, "%d", static_cast<int> (ntohs (addr_->sin_port)));
data/zeromq3-4.3.3/src/udp_engine.cpp:384: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 (address, name, name_len);
data/zeromq3-4.3.3/src/udp_engine.cpp:387: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 (address, port, static_cast<size_t> (port_len));
data/zeromq3-4.3.3/src/udp_engine.cpp:419: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).
    const uint16_t port = static_cast<uint16_t> (atoi (port_str.c_str ()));
data/zeromq3-4.3.3/src/udp_engine.cpp:470:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (_out_buffer, body_msg.data (), body_size);
data/zeromq3-4.3.3/src/udp_engine.cpp:476:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (_out_buffer + 1, group_msg.data (), group_size);
data/zeromq3-4.3.3/src/udp_engine.cpp:477:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (_out_buffer + 1 + group_size, body_msg.data (), body_size);
data/zeromq3-4.3.3/src/udp_engine.cpp:576:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (msg.data (), group_buffer, group_size);
data/zeromq3-4.3.3/src/udp_engine.cpp:602:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg.data (), _in_buffer + body_offset, body_size);
data/zeromq3-4.3.3/src/udp_engine.hpp:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _out_buffer[MAX_UDP_MSG];
data/zeromq3-4.3.3/src/udp_engine.hpp:86:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _in_buffer[MAX_UDP_MSG];
data/zeromq3-4.3.3/src/v1_decoder.hpp:53:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _tmpbuf[8];
data/zeromq3-4.3.3/src/v1_encoder.hpp:49:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _tmpbuf[11];
data/zeromq3-4.3.3/src/v2_decoder.hpp:59:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _tmpbuf[8];
data/zeromq3-4.3.3/src/v2_encoder.hpp:50:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _tmp_buf[10];
data/zeromq3-4.3.3/src/v3_1_encoder.cpp:88:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (_tmp_buf + header_size, zmq::sub_cmd_name,
data/zeromq3-4.3.3/src/v3_1_encoder.cpp:92:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (_tmp_buf + header_size, zmq::cancel_cmd_name,
data/zeromq3-4.3.3/src/v3_1_encoder.hpp:50:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _tmp_buf[9 + zmq::msg_t::sub_cmd_name_size];
data/zeromq3-4.3.3/src/vmci_address.cpp:56:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&address, sa, sa_len);
data/zeromq3-4.3.3/src/vmci_connecter.cpp:163:14:  [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 rc = open ();
data/zeromq3-4.3.3/src/vmci_connecter.cpp:210:28:  [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 zmq::vmci_connecter_t::open ()
data/zeromq3-4.3.3/src/vmci_connecter.hpp:91:9:  [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 ();
data/zeromq3-4.3.3/src/ws_address.cpp:72:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hbuf[NI_MAXHOST];
data/zeromq3-4.3.3/src/ws_connecter.cpp:148:20:  [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).
    const int rc = open ();
data/zeromq3-4.3.3/src/ws_connecter.cpp:183:26:  [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 zmq::ws_connecter_t::open ()
data/zeromq3-4.3.3/src/ws_connecter.hpp:79:9:  [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 ();
data/zeromq3-4.3.3/src/ws_decoder.cpp:160: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 (_mask, _tmpbuf, 4);
data/zeromq3-4.3.3/src/ws_decoder.hpp:66:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _tmpbuf[8];
data/zeromq3-4.3.3/src/ws_decoder.hpp:75:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _mask[4];
data/zeromq3-4.3.3/src/ws_encoder.hpp:49:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _tmp_buf[16];
data/zeromq3-4.3.3/src/ws_encoder.hpp:51:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _mask[4];
data/zeromq3-4.3.3/src/ws_engine.cpp:87:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void compute_accept_key (char *key_,
data/zeromq3-4.3.3/src/ws_engine.cpp:88:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 hash_[SHA_DIGEST_LENGTH]);
data/zeromq3-4.3.3/src/ws_engine.cpp:144:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char nonce[16];
data/zeromq3-4.3.3/src/ws_engine.cpp:186:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (msg_->data (), _options.routing_id, _options.routing_id_size);
data/zeromq3-4.3.3/src/ws_engine.cpp:506:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 hash[SHA_DIGEST_LENGTH];
data/zeromq3-4.3.3/src/ws_engine.cpp:1008:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const unsigned char base64enc_tab[65] =
data/zeromq3-4.3.3/src/ws_engine.hpp:164:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _read_buffer[WS_BUFFER_SIZE];
data/zeromq3-4.3.3/src/ws_engine.hpp:165:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _write_buffer[WS_BUFFER_SIZE];
data/zeromq3-4.3.3/src/ws_engine.hpp:166:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _header_name[MAX_HEADER_NAME_LENGTH + 1];
data/zeromq3-4.3.3/src/ws_engine.hpp:168:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _header_value[MAX_HEADER_VALUE_LENGTH + 1];
data/zeromq3-4.3.3/src/ws_engine.hpp:173:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _websocket_protocol[256];
data/zeromq3-4.3.3/src/ws_engine.hpp:174:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _websocket_key[MAX_HEADER_VALUE_LENGTH + 1];
data/zeromq3-4.3.3/src/ws_engine.hpp:175:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _websocket_accept[MAX_HEADER_VALUE_LENGTH + 1];
data/zeromq3-4.3.3/src/xpub.cpp:176:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (notification.data () + 1, data, size);
data/zeromq3-4.3.3/src/xpub.cpp:248:13:  [2] (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, optval_, optvallen_);
data/zeromq3-4.3.3/src/xpub.cpp:357:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_->data (), _pending_data.front ().data (),
data/zeromq3-4.3.3/src/xpub.cpp:389:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (unsub.data () + 1, data_, size_);
data/zeromq3-4.3.3/src/zap_client.cpp:83:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg.data (), zap_version, zap_version_len);
data/zeromq3-4.3.3/src/zap_client.cpp:91:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg.data (), id, id_len);
data/zeromq3-4.3.3/src/zap_client.cpp:99:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg.data (), options.zap_domain.c_str (),
data/zeromq3-4.3.3/src/zap_client.cpp:108:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg.data (), peer_address.c_str (), peer_address.length ());
data/zeromq3-4.3.3/src/zap_client.cpp:116:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg.data (), options.routing_id, options.routing_id_size);
data/zeromq3-4.3.3/src/zap_client.cpp:124:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg.data (), mechanism_, mechanism_length_);
data/zeromq3-4.3.3/src/zap_client.cpp:136:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (msg.data (), credentials_[i], credentials_sizes_[i]);
data/zeromq3-4.3.3/src/zmq.cpp:106:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char
data/zeromq3-4.3.3/src/zmq.cpp:473:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (zmq_msg_data (&msg), a_[i].iov_base, a_[i].iov_len);
data/zeromq3-4.3.3/src/zmq.cpp:533:9:  [2] (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_, zmq_msg_data (&msg), to_copy);
data/zeromq3-4.3.3/src/zmq.cpp:594:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (a_[i].iov_base, static_cast<char *> (zmq_msg_data (&msg)),
data/zeromq3-4.3.3/src/zmq.cpp:691:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            return atoi (fd_string);
data/zeromq3-4.3.3/src/zmq.cpp:1047:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (inset.get (), pollset_in.get (),
data/zeromq3-4.3.3/src/zmq.cpp:1049:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (outset.get (), pollset_out.get (),
data/zeromq3-4.3.3/src/zmq.cpp:1051:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (errset.get (), pollset_err.get (),
data/zeromq3-4.3.3/src/zmq_utils.cpp:101: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 encoder[85 + 1] = {"0123456789"
data/zeromq3-4.3.3/src/zmtp_engine.cpp:212:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy (_outpos + _outsize, "NULL", 4);
data/zeromq3-4.3.3/src/zmtp_engine.cpp:214:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy (_outpos + _outsize, "PLAIN", 5);
data/zeromq3-4.3.3/src/zmtp_engine.cpp:216:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy (_outpos + _outsize, "GSSAPI", 6);
data/zeromq3-4.3.3/src/zmtp_engine.cpp:218:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy (_outpos + _outsize, "CURVE", 5);
data/zeromq3-4.3.3/src/zmtp_engine.cpp:274:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char tmp[10], *bufferp = tmp;
data/zeromq3-4.3.3/src/zmtp_engine.cpp:282: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 (_routing_id_msg.data (), _options.routing_id,
data/zeromq3-4.3.3/src/zmtp_engine.cpp:436:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (msg_->data (), _options.routing_id, _options.routing_id_size);
data/zeromq3-4.3.3/src/zmtp_engine.cpp:481:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg_->data (), "\4PING", msg_t::ping_cmd_name_size);
data/zeromq3-4.3.3/src/zmtp_engine.cpp:484: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 (static_cast<uint8_t *> (msg_->data ()) + msg_t::ping_cmd_name_size,
data/zeromq3-4.3.3/src/zmtp_engine.cpp:517:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&remote_heartbeat_ttl,
data/zeromq3-4.3.3/src/zmtp_engine.cpp:542:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (_pong_msg.data (), "\4PONG", msg_t::ping_cmd_name_size);
data/zeromq3-4.3.3/src/zmtp_engine.cpp:544:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (static_cast<uint8_t *> (_pong_msg.data ())
data/zeromq3-4.3.3/src/zmtp_engine.hpp:119:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _greeting_recv[v3_greeting_size];
data/zeromq3-4.3.3/src/zmtp_engine.hpp:120:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _greeting_send[v3_greeting_size];
data/zeromq3-4.3.3/tests/test_abstract_ipc.cpp:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_address_tipc.cpp:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[256];
data/zeromq3-4.3.3/tests/test_app_meta.cpp:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_base85.cpp:48:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char expected[length + 1] = "HelloWorld";
data/zeromq3-4.3.3/tests/test_base85.cpp:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char out_encoded[length + 1] = {0};
data/zeromq3-4.3.3/tests/test_base85.cpp:96:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char test_data_z85[SIZE * 5 / 4 + 1];
data/zeromq3-4.3.3/tests/test_base85.cpp:118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char test_data_z85[SIZE];
data/zeromq3-4.3.3/tests/test_bind_curve_fuzzer.cpp:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_bind_curve_fuzzer.cpp:58: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 (valid_client_public, fixed_client_public, 41);
data/zeromq3-4.3.3/tests/test_bind_null_fuzzer.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_bind_stream_fuzzer.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_bind_ws_fuzzer.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_conflate.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_connect_curve_fuzzer.cpp:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_connect_delay_tipc.cpp:85: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 buffer[16];
data/zeromq3-4.3.3/tests/test_connect_delay_tipc.cpp:152: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 buffer[16];
data/zeromq3-4.3.3/tests/test_connect_null_fuzzer.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[256];
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:93:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[256];
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:96:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:160:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[256];
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:163:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char x_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:164:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char z_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_connect_stream_fuzzer.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_connect_ws_fuzzer.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_ctx_destroy.cpp:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/zeromq3-4.3.3/tests/test_ctx_options.cpp:158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/zeromq3-4.3.3/tests/test_ctx_options.cpp:182:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_diffserv.cpp:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_disconnect_inproc.cpp:41: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 (zmq_msg_data (&msg), data, size + 1);
data/zeromq3-4.3.3/tests/test_filter_ipc.cpp:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/zeromq3-4.3.3/tests/test_fork.cpp:41:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:94:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:96: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 (buffer, zmtp_greeting_null, sizeof (zmtp_greeting_null));
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:105: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 (buffer, zmtp_ready_dealer, sizeof (zmtp_ready_dealer));
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:120:9:  [2] (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, zmtp_ping, 12);
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:127:9:  [2] (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, zmtp_ping, 12);
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:253:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:296:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_hello_msg.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_hwm_pubsub.cpp:43:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pub_endpoint[SOCKET_STRING_LEN];
data/zeromq3-4.3.3/tests/test_hwm_pubsub.cpp:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dummybuff[64];
data/zeromq3-4.3.3/tests/test_hwm_pubsub.cpp:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[255];
data/zeromq3-4.3.3/tests/test_hwm_pubsub.cpp:111:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pub_endpoint[SOCKET_STRING_LEN];
data/zeromq3-4.3.3/tests/test_hwm_pubsub.cpp:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char counts_string[128];
data/zeromq3-4.3.3/tests/test_hwm_pubsub.cpp:190:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[SOCKET_STRING_LEN];
data/zeromq3-4.3.3/tests/test_immediate.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/zeromq3-4.3.3/tests/test_immediate.cpp:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_immediate.cpp:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_immediate.cpp:142: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 buffer[16];
data/zeromq3-4.3.3/tests/test_immediate.cpp:175:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_inproc_connect.cpp:155: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 ep[32];
data/zeromq3-4.3.3/tests/test_inproc_connect.cpp:156:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (ep, "inproc://cbbrr%d", i);
data/zeromq3-4.3.3/tests/test_inproc_connect.cpp:229:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpts[no_of_times][20];
data/zeromq3-4.3.3/tests/test_inproc_connect.cpp:234:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (endpts[i], "inproc://foo_%d", i);
data/zeromq3-4.3.3/tests/test_invalid_rep.cpp:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char addr[32];
data/zeromq3-4.3.3/tests/test_invalid_rep.cpp:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bottom[1];
data/zeromq3-4.3.3/tests/test_invalid_rep.cpp:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char body[1];
data/zeromq3-4.3.3/tests/test_iov.cpp:72:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (send_iov[i].iov_base, ref_msg, msg_size_);
data/zeromq3-4.3.3/tests/test_ipc_wildcard.cpp:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[200];
data/zeromq3-4.3.3/tests/test_issue_566.cpp:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_issue_566.cpp:60: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 routing_id[11];
data/zeromq3-4.3.3/tests/test_issue_566.cpp:61:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (routing_id, "%09d", cycle);
data/zeromq3-4.3.3/tests/test_last_endpoint.cpp:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char reported[255];
data/zeromq3-4.3.3/tests/test_metadata.cpp:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_mock_pub_sub.cpp:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/zeromq3-4.3.3/tests/test_mock_pub_sub.cpp:77: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 (buffer, zmtp_greeting_null, sizeof (zmtp_greeting_null));
data/zeromq3-4.3.3/tests/test_mock_pub_sub.cpp:138:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_mock_pub_sub.cpp:153:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/zeromq3-4.3.3/tests/test_mock_pub_sub.cpp:173:9:  [2] (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, "\0\4ALOL", 6);
data/zeromq3-4.3.3/tests/test_monitor.cpp:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_monitor.cpp:151:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_monitor.cpp:152:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_mon_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_monitor.cpp:153:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_mon_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_monitor.cpp:315:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_monitor.cpp:363:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[tcp_buffer_size * 2];
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:41: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 (hint_, (void *) "freed", 5);
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hint[5];
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[255];
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:60: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, (void *) "data", 4);
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:61: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 (hint, (void *) "hint", 4);
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:68: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 (hint, (void *) "hint", 4);
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:81: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 (hint, (void *) "hint", 4);
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[255];
data/zeromq3-4.3.3/tests/test_msg_ffn.cpp:95: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 (hint, (void *) "hint", 4);
data/zeromq3-4.3.3/tests/test_msg_init.cpp:51: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 (zmq_msg_data (&msg), data, 6);
data/zeromq3-4.3.3/tests/test_pair_ipc.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[256];
data/zeromq3-4.3.3/tests/test_pair_tcp.cpp:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_pair_tcp.cpp:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bound_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_pair_tcp.cpp:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_pair_tcp_cap_net_admin.cpp:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_peer.cpp:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_poller.cpp:593:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_poller.cpp:634:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_poller.cpp:669:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_probe_router.cpp:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_probe_router.cpp:53:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[255];
data/zeromq3-4.3.3/tests/test_probe_router.cpp:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_probe_router.cpp:90:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[255];
data/zeromq3-4.3.3/tests/test_proxy.cpp:90:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint_source[256];
data/zeromq3-4.3.3/tests/test_proxy.cpp:91: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 (endpoint_source, "inproc://endpoint%d", databag->id);
data/zeromq3-4.3.3/tests/test_proxy.cpp:107:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char content[CONTENT_SIZE_MAX] = {};
data/zeromq3-4.3.3/tests/test_proxy.cpp:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char routing_id[ROUTING_ID_SIZE] = {};
data/zeromq3-4.3.3/tests/test_proxy.cpp:110: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 (routing_id, "%04X-%04X", rand () % 0xFFFF, rand () % 0xFFFF);
data/zeromq3-4.3.3/tests/test_proxy.cpp:167:13:  [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 (content, "request #%03d", ++request_nbr); // CONTENT_SIZE
data/zeromq3-4.3.3/tests/test_proxy.cpp:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_proxy.cpp:225:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint_source[256];
data/zeromq3-4.3.3/tests/test_proxy.cpp:231:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (endpoint_source, "inproc://endpoint%d", i);
data/zeromq3-4.3.3/tests/test_proxy.cpp:276:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char content[CONTENT_SIZE_MAX] =
data/zeromq3-4.3.3/tests/test_proxy.cpp:278:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char routing_id[ROUTING_ID_SIZE_MAX] =
data/zeromq3-4.3.3/tests/test_proxy.cpp:339: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 (&res, zmq_msg_data (&stats_msg), zmq_msg_size (&stats_msg));
data/zeromq3-4.3.3/tests/test_proxy_hwm.cpp:210: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 (res_, zmq_msg_data (&stats_msg), zmq_msg_size (&stats_msg));
data/zeromq3-4.3.3/tests/test_proxy_single_socket.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_proxy_terminate.cpp:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_radio_dish.cpp:62: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 (zmq_msg_data (&msg), body_, len);
data/zeromq3-4.3.3/tests/test_radio_dish.cpp:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_radio_dish.cpp:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char group[19] = "0123456789ABCDEFGH";
data/zeromq3-4.3.3/tests/test_radio_dish.cpp:133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char too_long_group[ZMQ_GROUP_MAX_LENGTH + 2];
data/zeromq3-4.3.3/tests/test_radio_dish.cpp:157:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_radio_dish.cpp:315:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/zeromq3-4.3.3/tests/test_rebind_ipc.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reconnect_ivl.cpp:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[256];
data/zeromq3-4.3.3/tests/test_reconnect_ivl.cpp:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reconnect_options.cpp:225:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bind_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_req_correlate.cpp:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_req_relaxed.cpp:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reqrep_device.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint1[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reqrep_device.cpp:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint2[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reqrep_ipc.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[256];
data/zeromq3-4.3.3/tests/test_reqrep_ipc.cpp:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[256];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_0[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_1[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_2[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_3[MAX_SOCKET_STRING * 2];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_0[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:126:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_1[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:127:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_2[MAX_SOCKET_STRING * 2];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_3[MAX_SOCKET_STRING * 2];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_4[MAX_SOCKET_STRING * 2];
data/zeromq3-4.3.3/tests/test_reqrep_tcp.cpp:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_5[MAX_SOCKET_STRING * 2];
data/zeromq3-4.3.3/tests/test_router_handover.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_router_handover.cpp:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[255];
data/zeromq3-4.3.3/tests/test_router_handover.cpp:93:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_router_handover.cpp:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[255];
data/zeromq3-4.3.3/tests/test_router_mandatory.cpp:187:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_router_mandatory_hwm.cpp:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_router_notify.cpp:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_router_notify.cpp:230:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_router_notify.cpp:251:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[255];
data/zeromq3-4.3.3/tests/test_router_notify.cpp:268:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_router_notify.cpp:269:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char long_str[128] = {0};
data/zeromq3-4.3.3/tests/test_security_curve.cpp:56:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char error_message_buffer[256];
data/zeromq3-4.3.3/tests/test_security_curve.cpp:62:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_curve.cpp:162:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bogus_public[41];
data/zeromq3-4.3.3/tests/test_security_curve.cpp:163:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bogus_secret[41];
data/zeromq3-4.3.3/tests/test_security_curve.cpp:325:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hello[hello_length];
data/zeromq3-4.3.3/tests/test_security_curve.cpp:347:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hello[hello_length];
data/zeromq3-4.3.3/tests/test_security_curve.cpp:363:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/zeromq3-4.3.3/tests/test_security_curve.cpp:398:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hello[hello_length];
data/zeromq3-4.3.3/tests/test_security_curve.cpp:455:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char initiate[257];
data/zeromq3-4.3.3/tests/test_security_curve.cpp:475:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char initiate[257];
data/zeromq3-4.3.3/tests/test_security_curve.cpp:495:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char initiate[257];
data/zeromq3-4.3.3/tests/test_security_gssapi.cpp:102: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 my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_no_zap_handler.cpp:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_no_zap_handler.cpp:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_null.cpp:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_null.cpp:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_null.cpp:155:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_null.cpp:169:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_plain.cpp:83:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_zap.cpp:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_zap.cpp:264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_zap.cpp:281:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_zap.cpp:299:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_security_zap.cpp:323:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_setsockopt.cpp:115:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char devname[BOUNDDEVBUFSZ];
data/zeromq3-4.3.3/tests/test_setsockopt.cpp:123: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 (devname, "testdev");
data/zeromq3-4.3.3/tests/test_shutdown_stress.cpp:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:142:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4096];
data/zeromq3-4.3.3/tests/test_socks.cpp:252:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 nipv6local[16] = {0};
data/zeromq3-4.3.3/tests/test_socks.cpp:306:17:  [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 (buffer, "localhost");
data/zeromq3-4.3.3/tests/test_socks.cpp:310:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char nipv6local[16] = {0};
data/zeromq3-4.3.3/tests/test_socks.cpp:489:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:501:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:502:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:520:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:521:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:539:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:540:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:541:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address_hostname[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:547:5:  [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 (connect_address_hostname, "tcp://somedomainname.org");
data/zeromq3-4.3.3/tests/test_socks.cpp:563:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:564:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:565:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address_hostname[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:571:5:  [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 (connect_address_hostname, "tcp://::1");
data/zeromq3-4.3.3/tests/test_socks.cpp:587:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:588:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:589:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address_hostname[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:595:5:  [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 (connect_address_hostname, "tcp://[::1]");
data/zeromq3-4.3.3/tests/test_socks.cpp:611:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:612:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:613:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_address_bind_before_connect[MAX_SOCKET_STRING * 2];
data/zeromq3-4.3.3/tests/test_socks.cpp:618:5:  [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 (socks_address_bind_before_connect, "127.0.0.1:0;");
data/zeromq3-4.3.3/tests/test_socks.cpp:636:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:637:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:661:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:662:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:686:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:687:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:711:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:712:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:736:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:737:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:761:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socks_server_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:762:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_socks.cpp:791:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/zeromq3-4.3.3/tests/test_socks.cpp:812:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/zeromq3-4.3.3/tests/test_socks.cpp:844:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/zeromq3-4.3.3/tests/test_sodium.cpp:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char public_key[41] = {0};
data/zeromq3-4.3.3/tests/test_sodium.cpp:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char secret_key[41] = {0};
data/zeromq3-4.3.3/tests/test_sodium.cpp:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char out_public[41] = {0};
data/zeromq3-4.3.3/tests/test_sodium.cpp:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char out_public[41] = {0};
data/zeromq3-4.3.3/tests/test_spec_dealer.cpp:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_spec_dealer.cpp:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_spec_dealer.cpp:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_spec_pushpull.cpp:38:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_spec_pushpull.cpp:347:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2];
data/zeromq3-4.3.3/tests/test_spec_rep.cpp:37:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_spec_req.cpp:35:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_spec_router.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_spec_router.cpp:121:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_srcfd.cpp:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_srcfd.cpp:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[MSG_SIZE];
data/zeromq3-4.3.3/tests/test_srcfd.cpp:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/zeromq3-4.3.3/tests/test_stream.cpp:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_stream.cpp:150: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 (buffer, "\4\51\5READY", 8);
data/zeromq3-4.3.3/tests/test_stream.cpp:151: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 (buffer + 8, "\13Socket-Type\0\0\0\6ROUTER", 22);
data/zeromq3-4.3.3/tests/test_stream.cpp:152: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 (buffer + 30, "\10Identity\0\0\0\0", 13);
data/zeromq3-4.3.3/tests/test_stream.cpp:216:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:67:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bind_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:122:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char blob_data[256];
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:129: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 (zmq_msg_data (&msg), blob_data, blob_size);
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:135: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 (zmq_msg_data (&msg), dialog[0].text, strlen (dialog[0].text));
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:191:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (zmq_msg_data (&data_frame), dialog[step].text,
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:239:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (zmq_msg_data (&data_frame), dialog[step].text,
data/zeromq3-4.3.3/tests/test_stream_empty.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_stream_exceeds_buffer.cpp:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sndbuf[msgsize] = "\xde\xad\xbe\xef";
data/zeromq3-4.3.3/tests/test_stream_exceeds_buffer.cpp:41:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char rcvbuf[msgsize];
data/zeromq3-4.3.3/tests/test_stream_exceeds_buffer.cpp:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_stream_exceeds_buffer.cpp:70: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 (rcvbuf, zmq_msg_data (&msg), zmq_msg_size (&msg));
data/zeromq3-4.3.3/tests/test_stream_timeout.cpp:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_stream_timeout.cpp:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_sub_forward.cpp:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint1[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_sub_forward.cpp:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint2[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_sub_forward.cpp:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[32];
data/zeromq3-4.3.3/tests/test_sub_forward_tipc.cpp:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[32];
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:153:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_term_endpoint.cpp:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[BUF_SIZE];
data/zeromq3-4.3.3/tests/test_term_endpoint.cpp:80:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[BUF_SIZE];
data/zeromq3-4.3.3/tests/test_term_endpoint.cpp:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[BUF_SIZE];
data/zeromq3-4.3.3/tests/test_thread_safe.cpp:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_timeo.cpp:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bind_endpoint[256];
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:36:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_endpoint[256];
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bind_endpoint[256];
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_endpoint[256];
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:112:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[256];
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[256];
data/zeromq3-4.3.3/tests/test_unbind_wildcard.cpp:177:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endpoint[256];
data/zeromq3-4.3.3/tests/test_use_fd.cpp:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_use_fd.cpp:165:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char ipc_endpoint[MAX_SOCKET_STRING] = "";
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bind_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:39:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:150:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:184:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:186:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_public[41];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:187:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_secret[41];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_public[41];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_secret[41];
data/zeromq3-4.3.3/tests/test_ws_transport.cpp:224:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_wss_transport.cpp:127:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connect_address[MAX_SOCKET_STRING + strlen ("/roundtrip")];
data/zeromq3-4.3.3/tests/test_wss_transport.cpp:135:5:  [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.
    strcat (connect_address, "/roundtrip");
data/zeromq3-4.3.3/tests/test_xpub_manual.cpp:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[3];
data/zeromq3-4.3.3/tests/test_xpub_manual.cpp:127: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.
    const char unsubscription2[2] = {0, 'B'};
data/zeromq3-4.3.3/tests/test_xpub_manual.cpp:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_backend[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual.cpp:147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_frontend[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual.cpp:255:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1];
data/zeromq3-4.3.3/tests/test_xpub_manual.cpp:270:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_backend[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual.cpp:271:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_frontend[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual.cpp:367:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual.cpp:397:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2];
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[3];
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:127: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.
    const char unsubscription2[2] = {0, 'B'};
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_backend[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_frontend[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:261:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1];
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:276:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_backend[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:277:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint_frontend[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:374:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char my_endpoint[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:404:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2];
data/zeromq3-4.3.3/tests/test_xpub_manual_last_value.cpp:490:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[255];
data/zeromq3-4.3.3/tests/test_zmq_poll_fd.cpp:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10];
data/zeromq3-4.3.3/tests/testutil.cpp:124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/zeromq3-4.3.3/tests/testutil.cpp:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/zeromq3-4.3.3/tests/testutil.cpp:389: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 address[MAX_SOCKET_STRING];
data/zeromq3-4.3.3/tests/testutil.cpp:409:9:  [2] (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, in->ai_addr, in->ai_addrlen);
data/zeromq3-4.3.3/tests/testutil.cpp:464:9:  [2] (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, in->ai_addr, in->ai_addrlen);
data/zeromq3-4.3.3/tests/testutil.cpp:473: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 buffer[MAX_PATH] = "";
data/zeromq3-4.3.3/tests/testutil.cpp:477:9:  [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.
        strcat (buffer, "/ipc");
data/zeromq3-4.3.3/tests/testutil.cpp:487:9:  [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.
        strcat (buffer, "/socket");
data/zeromq3-4.3.3/tests/testutil.cpp:489:18:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
        int fd = mkstemp (buffer);
data/zeromq3-4.3.3/tests/testutil.cpp:497:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (my_endpoint_, "ipc://", 7);
data/zeromq3-4.3.3/tests/testutil.cpp:587:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *f = fopen (filename, "r");
data/zeromq3-4.3.3/tests/testutil_monitoring.cpp:50:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (*address_, data, size);
data/zeromq3-4.3.3/tests/testutil_monitoring.cpp:78:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (value_, data + 2, sizeof (uint32_t));
data/zeromq3-4.3.3/tests/testutil_monitoring.cpp:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/zeromq3-4.3.3/tests/testutil_monitoring.cpp:196:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/zeromq3-4.3.3/tests/testutil_monitoring.cpp:253:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (value_ + i, zmq_msg_data (&msg), sizeof (*value_));
data/zeromq3-4.3.3/tests/testutil_monitoring.cpp:321:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/zeromq3-4.3.3/tests/testutil_security.cpp:79:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char valid_client_public[41];
data/zeromq3-4.3.3/tests/testutil_security.cpp:80:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char valid_client_secret[41];
data/zeromq3-4.3.3/tests/testutil_security.cpp:81:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char valid_server_public[41];
data/zeromq3-4.3.3/tests/testutil_security.cpp:82:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char valid_server_secret[41];
data/zeromq3-4.3.3/tests/testutil_security.cpp:176:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_key_text[41];
data/zeromq3-4.3.3/tests/testutil_security.cpp:182:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_username[32];
data/zeromq3-4.3.3/tests/testutil_security.cpp:187:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_password[32];
data/zeromq3-4.3.3/tests/testutil_security.cpp:198:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/zeromq3-4.3.3/tests/testutil_security.hpp:53: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.
extern char valid_client_public[41];
data/zeromq3-4.3.3/tests/testutil_security.hpp:54: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.
extern char valid_client_secret[41];
data/zeromq3-4.3.3/tests/testutil_security.hpp: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.
extern char valid_server_public[41];
data/zeromq3-4.3.3/tests/testutil_security.hpp:56:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char valid_server_secret[41];
data/zeromq3-4.3.3/tests/testutil_unity.cpp:46: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 buffer[512];
data/zeromq3-4.3.3/tests/testutil_unity.cpp:68: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 buffer[512];
data/zeromq3-4.3.3/tests/testutil_unity.cpp:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/zeromq3-4.3.3/tests/testutil_unity.cpp:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[255];
data/zeromq3-4.3.3/tests/testutil_unity.cpp:305:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char random_file[MAX_PATH];
data/zeromq3-4.3.3/tests/testutil_unity.cpp:316:5:  [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.
    strcat (random_file, "/ipc");
data/zeromq3-4.3.3/tests/testutil_unity.cpp:319:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char random_file[16];
data/zeromq3-4.3.3/tests/testutil_unity.cpp:320:5:  [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 (random_file, "tmpXXXXXX");
data/zeromq3-4.3.3/tests/testutil_unity.cpp:324:5:  [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.
    strcat (random_file, "/ipc");
data/zeromq3-4.3.3/tests/testutil_unity.cpp:326:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    int fd = mkstemp (random_file);
data/zeromq3-4.3.3/tests/testutil_unity.cpp:332:5:  [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 (out_endpoint_, "ipc://");
data/zeromq3-4.3.3/tests/testutil_unity.hpp:179:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[255];
data/zeromq3-4.3.3/tools/curve_keygen.cpp:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char public_key[41];
data/zeromq3-4.3.3/tools/curve_keygen.cpp:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char secret_key[41];
data/zeromq3-4.3.3/unittests/unittest_curve_encoding.cpp:106:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (msg.data (), "0123456789ABCDEF0123456789ABCDEF", 32);
data/zeromq3-4.3.3/unittests/unittest_curve_encoding.cpp:118:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (static_cast<char *> (msg.data ()) + pos,
data/zeromq3-4.3.3/debian/zmq.hpp:497:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool equal(const message_t *other) const ZMQ_NOTHROW { return *this == *other; }
data/zeromq3-4.3.3/debian/zmq_addon.hpp:459:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool equal(const multipart_t *other) const
data/zeromq3-4.3.3/perf/proxy_thr.cpp:250: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).
            assert (strlen (ep) > 5);
data/zeromq3-4.3.3/perf/proxy_thr.cpp:274: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).
            assert (strlen (ep) > 5);
data/zeromq3-4.3.3/src/channel.cpp:122:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read = _pipe->read (msg_);
data/zeromq3-4.3.3/src/channel.cpp:123:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (read && msg_->flags () & msg_t::more) {
data/zeromq3-4.3.3/src/channel.cpp:125:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read = _pipe->read (msg_);
data/zeromq3-4.3.3/src/channel.cpp:126:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (read && msg_->flags () & msg_t::more)
data/zeromq3-4.3.3/src/channel.cpp:127:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read = _pipe->read (msg_);
data/zeromq3-4.3.3/src/channel.cpp:130:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read)
data/zeromq3-4.3.3/src/channel.cpp:131:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read = _pipe->read (msg_);
data/zeromq3-4.3.3/src/channel.cpp:134:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read) {
data/zeromq3-4.3.3/src/ctx.cpp:808:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const bool ok = pending_connection_.bind_pipe->read (&msg);
data/zeromq3-4.3.3/src/dbuffer.hpp:88:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read (msg_t *value_)
data/zeromq3-4.3.3/src/dgram.cpp:142:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!_pipe || !_pipe->read (msg_)) {
data/zeromq3-4.3.3/src/dish.cpp:314:48:  [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).
    const int group_length = static_cast<int> (strlen (msg_->group ()));
data/zeromq3-4.3.3/src/fq.cpp:93:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const bool fetched = _pipes[_current]->read (msg_);
data/zeromq3-4.3.3/src/gssapi_client.cpp:184:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        send_tok.length = strlen (service_name) + 1;
data/zeromq3-4.3.3/src/gssapi_mechanism_base.cpp:384:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    name_buf.length = strlen ((char *) name_buf.value) + 1;
data/zeromq3-4.3.3/src/ip_resolver.cpp:486:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (ifr.ifr_name, nic_, sizeof (ifr.ifr_name));
data/zeromq3-4.3.3/src/ip_resolver.cpp:534:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep ((backoff_msec << i) * 1000);
data/zeromq3-4.3.3/src/ipc_address.cpp:61:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t path_len = strlen (path_);
data/zeromq3-4.3.3/src/mailbox.cpp:73:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (_cpipe.read (cmd_))
data/zeromq3-4.3.3/src/mailbox.cpp:98:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const bool ok = _cpipe.read (cmd_);
data/zeromq3-4.3.3/src/mailbox_safe.cpp:99:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (_cpipe.read (cmd_))
data/zeromq3-4.3.3/src/mailbox_safe.cpp:117:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const bool ok = _cpipe.read (cmd_);
data/zeromq3-4.3.3/src/mechanism.cpp:133:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t name_len = strlen (name_);
data/zeromq3-4.3.3/src/mechanism.cpp:176:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                         socket_type, strlen (socket_type));
data/zeromq3-4.3.3/src/mechanism.cpp:193:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        it->second.c_str (), strlen (it->second.c_str ()));
data/zeromq3-4.3.3/src/mechanism.cpp:209: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).
          property_len (it->first.c_str (), strlen (it->second.c_str ()));
data/zeromq3-4.3.3/src/mechanism.cpp:212:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return property_len (ZMTP_PROPERTY_SOCKET_TYPE, strlen (socket_type))
data/zeromq3-4.3.3/src/msg.cpp:704:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (_u.base.group.lgroup.content->group, group_, length_);
data/zeromq3-4.3.3/src/msg.cpp:707:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (_u.base.group.sgroup.group, group_, length_);
data/zeromq3-4.3.3/src/norm_engine.cpp:54:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (idText, network_, idLen);
data/zeromq3-4.3.3/src/norm_engine.cpp:69:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (ifaceName, ifacePtr, ifaceLen);
data/zeromq3-4.3.3/src/norm_engine.cpp:89:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (addr, addrPtr, addrLen);
data/zeromq3-4.3.3/src/pair.cpp:112:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!_pipe || !_pipe->read (msg_)) {
data/zeromq3-4.3.3/src/pipe.cpp:188:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const bool ok = _in_pipe->read (&msg);
data/zeromq3-4.3.3/src/pipe.cpp:197:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool zmq::pipe_t::read (msg_t *msg_)
data/zeromq3-4.3.3/src/pipe.cpp:205:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!_in_pipe->read (msg_)) {
data/zeromq3-4.3.3/src/pipe.cpp:312:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (_out_pipe->read (&msg)) {
data/zeromq3-4.3.3/src/pipe.cpp:392:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (_in_pipe->read (&msg)) {
data/zeromq3-4.3.3/src/pipe.hpp:101:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read (msg_t *msg_);
data/zeromq3-4.3.3/src/radio.cpp:77:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (pipe_->read (&msg)) {
data/zeromq3-4.3.3/src/radio.cpp:265:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const int length = static_cast<int> (strlen (group));
data/zeromq3-4.3.3/src/router.cpp:474:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const bool ok = pipe_->read (&msg);
data/zeromq3-4.3.3/src/select.cpp:133:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (FD_ISSET (fd_entries_[i].fd, &local_fds_set_.read)) {
data/zeromq3-4.3.3/src/select.cpp:251:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    FD_SET (handle_, &family_entry.fds_set.read);
data/zeromq3-4.3.3/src/select.cpp:264:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    FD_CLR (handle_, &family_entry.fds_set.read);
data/zeromq3-4.3.3/src/select.cpp:374:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (FD_ISSET (fd, &family_entry.fds_set.read)
data/zeromq3-4.3.3/src/select.cpp:379:66:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    else if (FD_ISSET (fd, &family_entry.fds_set.read))
data/zeromq3-4.3.3/src/select.cpp:433:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int rc = select (max_fd_, &local_fds_set.read, &local_fds_set.write,
data/zeromq3-4.3.3/src/select.cpp:452:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    FD_ZERO (&read);
data/zeromq3-4.3.3/src/select.cpp:464:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read,
data/zeromq3-4.3.3/src/select.cpp:464:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read,
data/zeromq3-4.3.3/src/select.cpp:465:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            (char *) (other_.read.fd_array + other_.read.fd_count)
data/zeromq3-4.3.3/src/select.cpp:465:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            (char *) (other_.read.fd_array + other_.read.fd_count)
data/zeromq3-4.3.3/src/select.cpp:466:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              - (char *) &other_.read);
data/zeromq3-4.3.3/src/select.cpp:474:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read, sizeof other_.read);
data/zeromq3-4.3.3/src/select.cpp:474:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read, sizeof other_.read);
data/zeromq3-4.3.3/src/select.cpp:474:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read, sizeof other_.read);
data/zeromq3-4.3.3/src/select.cpp:488:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read,
data/zeromq3-4.3.3/src/select.cpp:488:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read,
data/zeromq3-4.3.3/src/select.cpp:489:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            (char *) (other_.read.fd_array + other_.read.fd_count)
data/zeromq3-4.3.3/src/select.cpp:489:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            (char *) (other_.read.fd_array + other_.read.fd_count)
data/zeromq3-4.3.3/src/select.cpp:490:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              - (char *) &other_.read);
data/zeromq3-4.3.3/src/select.cpp:498:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read, sizeof other_.read);
data/zeromq3-4.3.3/src/select.cpp:498:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read, sizeof other_.read);
data/zeromq3-4.3.3/src/select.cpp:498:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (&read, &other_.read, sizeof other_.read);
data/zeromq3-4.3.3/src/select.cpp:507:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    FD_CLR (fd_, &read);
data/zeromq3-4.3.3/src/select.hpp:92:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fd_set read;
data/zeromq3-4.3.3/src/session_base.cpp:173:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!_pipe || !_pipe->read (msg_)) {
data/zeromq3-4.3.3/src/session_base.cpp:206:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!_zap_pipe->read (msg_)) {
data/zeromq3-4.3.3/src/signaler.cpp:81:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep (ms_ * 1000);
data/zeromq3-4.3.3/src/signaler.cpp:89:12:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    return usleep (ms_ * 1000);
data/zeromq3-4.3.3/src/signaler.cpp:307:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t sz = read (_r, &dummy, sizeof (dummy));
data/zeromq3-4.3.3/src/signaler.cpp:343:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t sz = read (_r, &dummy, sizeof (dummy));
data/zeromq3-4.3.3/src/socket_poller.cpp:556:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep (timeout_ * 1000);
data/zeromq3-4.3.3/src/socket_poller.cpp:559:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep (timeout_ * 1000);
data/zeromq3-4.3.3/src/socket_poller.cpp:569:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep (timeout_ * 1000);
data/zeromq3-4.3.3/src/stream_engine_base.cpp:283:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const int rc = read (_inpos, bufsize);
data/zeromq3-4.3.3/src/stream_engine_base.cpp:771:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int zmq::stream_engine_base_t::read (void *data_, size_t size_)
data/zeromq3-4.3.3/src/stream_engine_base.hpp:106:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual int read (void *data, size_t size_);
data/zeromq3-4.3.3/src/tcp_address.cpp:127:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t hbuf_len = strlen (hbuf_);
data/zeromq3-4.3.3/src/thread.cpp:65:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (_name, name_, sizeof (_name) - 1);
data/zeromq3-4.3.3/src/thread.cpp:260:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (_name, name_, sizeof (_name) - 1);
data/zeromq3-4.3.3/src/tweetnacl.c:942:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        i = read(fd,x,i);
data/zeromq3-4.3.3/src/udp_engine.cpp:374:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t name_len = strlen (name);
data/zeromq3-4.3.3/src/ws_engine.cpp:289:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const int nbytes = read (_read_buffer, WS_BUFFER_SIZE);
data/zeromq3-4.3.3/src/ws_engine.cpp:560:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const int nbytes = read (_read_buffer, WS_BUFFER_SIZE);
data/zeromq3-4.3.3/src/ws_engine.cpp:1054:62:  [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).
    HASH_Update (ctx, (unsigned char *) key_, (unsigned int) strlen (key_));
data/zeromq3-4.3.3/src/ws_engine.cpp:1056:33:  [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) strlen (magic_string));
data/zeromq3-4.3.3/src/ws_engine.cpp:1062:48:  [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).
    SHA1_Update (&ctx, (unsigned char *) key_, strlen (key_));
data/zeromq3-4.3.3/src/ws_engine.cpp:1063:56:  [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).
    SHA1_Update (&ctx, (unsigned char *) magic_string, strlen (magic_string));
data/zeromq3-4.3.3/src/ws_engine.cpp:1069:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gnutls_hash (hd, key_, strlen (key_));
data/zeromq3-4.3.3/src/ws_engine.cpp:1070:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gnutls_hash (hd, magic_string, strlen (magic_string));
data/zeromq3-4.3.3/src/wss_engine.cpp:177:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int zmq::wss_engine_t::read (void *data_, size_t size_)
data/zeromq3-4.3.3/src/wss_engine.hpp:57:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read (void *data, size_t size_);
data/zeromq3-4.3.3/src/xpub.cpp:103:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (pipe_->read (&msg)) {
data/zeromq3-4.3.3/src/ypipe.hpp:153:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read (T *value_)
data/zeromq3-4.3.3/src/ypipe_base.hpp:50:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (T *value_) = 0;
data/zeromq3-4.3.3/src/ypipe_conflate.hpp:92:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read (T *value_)
data/zeromq3-4.3.3/src/ypipe_conflate.hpp:97:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return dbuffer.read (value_);
data/zeromq3-4.3.3/src/zmq.cpp:884:16:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        return usleep (timeout_ * 1000);
data/zeromq3-4.3.3/src/zmq_utils.cpp:169: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).
    size_t src_len = strlen (string_);
data/zeromq3-4.3.3/src/zmq_utils.cpp:205: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).
    assert (byte_nbr == strlen (string_) * 4 / 5);
data/zeromq3-4.3.3/src/zmtp_engine.cpp:148:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const int n = read (_greeting_recv + _greeting_bytes_read,
data/zeromq3-4.3.3/tests/test_app_meta.cpp:73:58:  [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).
      zmq_setsockopt (rep_sock, ZMQ_METADATA, rep_hello, strlen (rep_hello));
data/zeromq3-4.3.3/tests/test_app_meta.cpp:81: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).
                         strlen (rep_connection));
data/zeromq3-4.3.3/tests/test_app_meta.cpp:86:30:  [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 (bad_strings[i]));
data/zeromq3-4.3.3/tests/test_app_meta.cpp:96:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rc = zmq_setsockopt (req_sock, ZMQ_METADATA, req_hello, strlen (req_hello));
data/zeromq3-4.3.3/tests/test_app_meta.cpp: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).
                         strlen (req_connection));
data/zeromq3-4.3.3/tests/test_app_meta.cpp:103:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rc = zmq_setsockopt (req_sock, ZMQ_METADATA, req_z85, strlen (req_z85));
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:67:48:  [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 (rconn1routing_id)));
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:120:48:  [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 (rconn1routing_id)));
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:135:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        TEST_ASSERT_EQUAL_INT (strlen (y_routing_id), routing_id_len);
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:185: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).
      xbind, ZMQ_ROUTING_ID, x_routing_id, strlen (x_routing_id)));
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:189: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).
      zbind, ZMQ_ROUTING_ID, z_routing_id, strlen (z_routing_id)));
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:193:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      yconn, ZMQ_CONNECT_ROUTING_ID, x_routing_id, strlen (x_routing_id)));
data/zeromq3-4.3.3/tests/test_connect_rid.cpp:205:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      xbind, ZMQ_CONNECT_ROUTING_ID, z_routing_id, strlen (z_routing_id)));
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:160: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).
                    strlen (secret_key));
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:162: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).
                    strlen (public_key));
data/zeromq3-4.3.3/tests/test_heartbeats.cpp:168: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 (server_key));
data/zeromq3-4.3.3/tests/test_monitor.cpp:234:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  strlen (expected_prefix_));
data/zeromq3-4.3.3/tests/test_monitor.cpp:404:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      strlen (expected_prefix_));
data/zeromq3-4.3.3/tests/test_proxy_hwm.cpp:309:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep (1000); // 1ms -> in best case we will get 1000updates/second
data/zeromq3-4.3.3/tests/test_pub_invert_matching.cpp:56:54:  [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).
      zmq_setsockopt (sub1, ZMQ_SUBSCRIBE, prefi_x1, strlen (prefi_x1)));
data/zeromq3-4.3.3/tests/test_pub_invert_matching.cpp:58:54:  [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).
      zmq_setsockopt (sub2, ZMQ_SUBSCRIBE, prefi_x2, strlen (prefi_x2)));
data/zeromq3-4.3.3/tests/test_radio_dish.cpp:59:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t len = strlen (body_);
data/zeromq3-4.3.3/tests/test_radio_dish.cpp:76:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t len = strlen (body_);
data/zeromq3-4.3.3/tests/test_radio_dish.cpp:422:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rc = sendto (send_sock, msg, static_cast<socklen_t> (strlen (msg)), 0,
data/zeromq3-4.3.3/tests/test_router_mandatory.cpp:161:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        strlen (peer_routing_id));
data/zeromq3-4.3.3/tests/test_router_mandatory.cpp:170:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen (peer_routing_id));
data/zeromq3-4.3.3/tests/test_router_mandatory.cpp:176:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen (peer_routing_id));
data/zeromq3-4.3.3/tests/test_security_gssapi.cpp:137:59:  [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).
      zmq_setsockopt (server, ZMQ_GSSAPI_PRINCIPAL, name, strlen (name) + 1));
data/zeromq3-4.3.3/tests/test_security_gssapi.cpp:175:51:  [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).
      client, ZMQ_GSSAPI_SERVICE_PRINCIPAL, name, strlen (name) + 1));
data/zeromq3-4.3.3/tests/test_security_gssapi.cpp:177:59:  [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).
      zmq_setsockopt (client, ZMQ_GSSAPI_PRINCIPAL, name, strlen (name) + 1));
data/zeromq3-4.3.3/tests/test_security_gssapi.cpp:197:51:  [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).
      client, ZMQ_GSSAPI_SERVICE_PRINCIPAL, name, strlen (name) + 1));
data/zeromq3-4.3.3/tests/test_security_gssapi.cpp:199:59:  [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).
      zmq_setsockopt (client, ZMQ_GSSAPI_PRINCIPAL, name, strlen (name) + 1));
data/zeromq3-4.3.3/tests/test_security_plain.cpp:112:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      zmq_setsockopt (server, ZMQ_ZAP_DOMAIN, domain, strlen (domain)));
data/zeromq3-4.3.3/tests/test_security_plain.cpp:144:61:  [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).
      zmq_setsockopt (client, ZMQ_PLAIN_USERNAME, username, strlen (username)));
data/zeromq3-4.3.3/tests/test_security_plain.cpp:147:61:  [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).
      zmq_setsockopt (client, ZMQ_PLAIN_PASSWORD, password, strlen (password)));
data/zeromq3-4.3.3/tests/test_security_plain.cpp:159:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      zmq_setsockopt (client, ZMQ_ZAP_DOMAIN, domain, strlen (domain)));
data/zeromq3-4.3.3/tests/test_security_plain.cpp:175:61:  [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).
      zmq_setsockopt (client, ZMQ_PLAIN_USERNAME, username, strlen (username)));
data/zeromq3-4.3.3/tests/test_security_plain.cpp:177:61:  [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).
      zmq_setsockopt (client, ZMQ_PLAIN_PASSWORD, password, strlen (password)));
data/zeromq3-4.3.3/tests/test_setsockopt.cpp:124: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).
    buflen = strlen (devname);
data/zeromq3-4.3.3/tests/test_socks.cpp:111: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).
             strlen (strchr (socks_server_address, '/') + 1));
data/zeromq3-4.3.3/tests/test_socks.cpp:304:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                buffer[0] = strlen ("localhost");
data/zeromq3-4.3.3/tests/test_socks.cpp:307:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sendall (client, buffer, strlen ("localhost"));
data/zeromq3-4.3.3/tests/test_socks.cpp:433:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              strlen (socks_proxy));
data/zeromq3-4.3.3/tests/test_socks.cpp:455:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              strlen (socks_proxy));
data/zeromq3-4.3.3/tests/test_socks.cpp:462:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          username == NULL ? 0 : strlen (username));
data/zeromq3-4.3.3/tests/test_socks.cpp:466:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          password == NULL ? 0 : strlen (password));
data/zeromq3-4.3.3/tests/test_socks.cpp:789: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).
    res = zmq_setsockopt (sub, opt, value, strlen (value));
data/zeromq3-4.3.3/tests/test_socks.cpp:795:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    TEST_ASSERT_EQUAL (strlen (value) + 1, res_len);
data/zeromq3-4.3.3/tests/test_socks.cpp:817:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    TEST_ASSERT_EQUAL (expected_len, strlen (buffer));
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:134:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      zmq_msg_init_size (&msg, strlen (dialog[0].text)));
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:135:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcpy (zmq_msg_data (&msg), dialog[0].text, strlen (dialog[0].text));
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:180: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).
                TEST_ASSERT_EQUAL_INT (strlen (dialog[step].text), size);
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:190:51:  [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).
                  zmq_msg_init_size (&data_frame, strlen (dialog[step].text)));
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:229:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            TEST_ASSERT_EQUAL_INT (strlen (dialog[step].text), size);
data/zeromq3-4.3.3/tests/test_stream_disconnect.cpp:238:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              zmq_msg_init_size (&data_frame, strlen (dialog[step].text)));
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:80:57:  [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).
                                               filter_, strlen (filter_)));
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:106:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      socket, ZMQ_TCP_ACCEPT_FILTER, empty_filter, strlen (empty_filter)));
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:129:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen (non_matching_filter)));
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:151:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      bind_socket, ZMQ_TCP_ACCEPT_FILTER, filter_, strlen (filter_)));
data/zeromq3-4.3.3/tests/test_tcp_accept_filter.cpp:181:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen (non_matching_filter)));
data/zeromq3-4.3.3/tests/test_wss_transport.cpp:127:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char connect_address[MAX_SOCKET_STRING + strlen ("/roundtrip")];
data/zeromq3-4.3.3/tests/test_wss_transport.cpp:130:49:  [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).
    zmq_setsockopt (sb, ZMQ_WSS_CERT_PEM, cert, strlen (cert));
data/zeromq3-4.3.3/tests/test_wss_transport.cpp:131:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    zmq_setsockopt (sb, ZMQ_WSS_KEY_PEM, key, strlen (key));
data/zeromq3-4.3.3/tests/test_wss_transport.cpp:138:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    zmq_setsockopt (sc, ZMQ_WSS_TRUST_PEM, cert, strlen (cert));
data/zeromq3-4.3.3/tests/test_wss_transport.cpp:139:57:  [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).
    zmq_setsockopt (sc, ZMQ_WSS_HOSTNAME, "zeromq.org", strlen ("zeromq.org"));
data/zeromq3-4.3.3/tests/testutil.cpp:173:30:  [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).
              socket_, prev, strlen (prev) + 1, end ? 0 : ZMQ_SNDMORE));
data/zeromq3-4.3.3/tests/testutil.cpp:255:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep (static_cast<useconds_t> (milliseconds_) * 1000);
data/zeromq3-4.3.3/tests/testutil.cpp:393: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).
            address[strlen (address) - strlen (port) - 2] = '\0';
data/zeromq3-4.3.3/tests/testutil.cpp:393: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).
            address[strlen (address) - strlen (port) - 2] = '\0';
data/zeromq3-4.3.3/tests/testutil.cpp:396: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).
            address[strlen (address) - strlen (port) - 1] = '\0';
data/zeromq3-4.3.3/tests/testutil.cpp:396: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).
            address[strlen (address) - strlen (port) - 1] = '\0';
data/zeromq3-4.3.3/tests/testutil.cpp:482:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy (buffer, "tmpXXXXXX", len);
data/zeromq3-4.3.3/tests/testutil.cpp:494:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen((*(struct sockaddr_un *) &addr).sun_path);
data/zeromq3-4.3.3/tests/testutil.cpp:498:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(my_endpoint_);
data/zeromq3-4.3.3/tests/testutil.cpp:500:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat (my_endpoint_, buffer, len);
data/zeromq3-4.3.3/tests/testutil.cpp:582:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          (char *) malloc (strlen (dirname) + strlen (ent->d_name) + 2);
data/zeromq3-4.3.3/tests/testutil.cpp:582:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          (char *) malloc (strlen (dirname) + strlen (ent->d_name) + 2);
data/zeromq3-4.3.3/tests/testutil.cpp:585:9:  [1] (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 character.
        strcat (filename, "/");
data/zeromq3-4.3.3/tests/testutil_security.cpp:45:49:  [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_, ZMQ_ZAP_DOMAIN, test_zap_domain, strlen (test_zap_domain)));
data/zeromq3-4.3.3/tests/testutil_security.cpp:76:49:  [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_, ZMQ_ZAP_DOMAIN, test_zap_domain, strlen (test_zap_domain)));
data/zeromq3-4.3.3/tests/testutil_security.cpp:101:49:  [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_, ZMQ_ZAP_DOMAIN, test_zap_domain, strlen (test_zap_domain)));
data/zeromq3-4.3.3/tests/testutil_security.cpp:332:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      *server_, ZMQ_ROUTING_ID, routing_id_, strlen (routing_id_)));
data/zeromq3-4.3.3/tests/testutil_unity.cpp:123:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t len = str_ ? strlen (str_) : 0;
data/zeromq3-4.3.3/tests/testutil_unity.cpp:130:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t len = str_ ? strlen (str_) : 0;
data/zeromq3-4.3.3/unittests/unittest_mtrie.cpp:39:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return static_cast<int> (strlen (reinterpret_cast<const char *> (data_)));
data/zeromq3-4.3.3/unittests/unittest_mtrie.cpp:213:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 std::min (strlen (add_name_), strlen (rm_name_) + 1))
data/zeromq3-4.3.3/unittests/unittest_mtrie.cpp:213:48:  [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).
                 std::min (strlen (add_name_), strlen (rm_name_) + 1))
data/zeromq3-4.3.3/unittests/unittest_mtrie.cpp:351:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    TEST_ASSERT_EQUAL_UINT (strlen (name_), len_);
data/zeromq3-4.3.3/unittests/unittest_ypipe.cpp:48:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    TEST_ASSERT_FALSE (ypipe.read (&read_value));
data/zeromq3-4.3.3/unittests/unittest_ypipe.cpp:59:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    TEST_ASSERT_FALSE (ypipe.read (&read_value));
data/zeromq3-4.3.3/unittests/unittest_ypipe.cpp:71:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    TEST_ASSERT_TRUE (ypipe.read (&read_value));

ANALYSIS SUMMARY:

Hits = 950
Lines analyzed = 97846 in approximately 2.36 seconds (41436 lines/second)
Physical Source Lines of Code (SLOC) = 62845
Hits@level = [0] 320 [1] 198 [2] 707 [3]  13 [4]  29 [5]   3
Hits@level+ = [0+] 1270 [1+] 950 [2+] 752 [3+]  45 [4+]  32 [5+]   3
Hits/KSLOC@level+ = [0+] 20.2084 [1+] 15.1166 [2+] 11.9659 [3+] 0.716047 [4+] 0.509189 [5+] 0.0477365
Dot directories skipped = 2 (--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.