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/nng-1.3.2+git201005/src/nng.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_impl.h
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_sockaddr.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_tcp.h
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_pipe.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_clock.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_rand_urandom.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_atomic.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_pollq_port.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_resolv_gai.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_ipcdial.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_pollq_epoll.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_ipclisten.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_rand_arc4random.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_file.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_alloc.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_udp.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_aio.h
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_rand_getrandom.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_ipcconn.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_pollq_poll.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_thread.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_tcpdial.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_pollq_kqueue.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_config.h
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_tcplisten.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_pollq.h
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_ipc.h
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_debug.c
Examining data/nng-1.3.2+git201005/src/platform/posix/posix_tcpconn.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_ipcconn.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_debug.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_ipclisten.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_udp.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_tcplisten.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_tcpconn.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_sockaddr.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_resolv.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_io.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_pipe.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_tcp.h
Examining data/nng-1.3.2+git201005/src/platform/windows/win_ipcdial.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_tcpdial.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_tcp.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_ipc.h
Examining data/nng-1.3.2+git201005/src/platform/windows/win_clock.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_file.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_thread.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_rand.c
Examining data/nng-1.3.2+git201005/src/platform/windows/win_impl.h
Examining data/nng-1.3.2+git201005/src/supplemental/sha1/sha1.c
Examining data/nng-1.3.2+git201005/src/supplemental/sha1/sha1.h
Examining data/nng-1.3.2+git201005/src/supplemental/sha1/sha1_test.c
Examining data/nng-1.3.2+git201005/src/supplemental/http/http_server.c
Examining data/nng-1.3.2+git201005/src/supplemental/http/http_public.c
Examining data/nng-1.3.2+git201005/src/supplemental/http/http_client.c
Examining data/nng-1.3.2+git201005/src/supplemental/http/http_chunk.c
Examining data/nng-1.3.2+git201005/src/supplemental/http/http_msg.c
Examining data/nng-1.3.2+git201005/src/supplemental/http/http_api.h
Examining data/nng-1.3.2+git201005/src/supplemental/http/http_conn.c
Examining data/nng-1.3.2+git201005/src/supplemental/websocket/websocket_test.c
Examining data/nng-1.3.2+git201005/src/supplemental/websocket/stub.c
Examining data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c
Examining data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.h
Examining data/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c
Examining data/nng-1.3.2+git201005/src/supplemental/tcp/tcp.c
Examining data/nng-1.3.2+git201005/src/supplemental/util/platform.c
Examining data/nng-1.3.2+git201005/src/supplemental/util/options.c
Examining data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c
Examining data/nng-1.3.2+git201005/src/supplemental/base64/base64.h
Examining data/nng-1.3.2+git201005/src/supplemental/base64/base64.c
Examining data/nng-1.3.2+git201005/src/supplemental/tls/mbedtls/tls.c
Examining data/nng-1.3.2+git201005/src/supplemental/tls/tls_common.c
Examining data/nng-1.3.2+git201005/src/supplemental/tls/tls_api.h
Examining data/nng-1.3.2+git201005/src/supplemental/tls/tls_test.c
Examining data/nng-1.3.2+git201005/src/transport/ws/websocket.c
Examining data/nng-1.3.2+git201005/src/transport/tcp/tcp.c
Examining data/nng-1.3.2+git201005/src/transport/inproc/inproc.c
Examining data/nng-1.3.2+git201005/src/transport/ipc/ipc.c
Examining data/nng-1.3.2+git201005/src/transport/zerotier/zthash.h
Examining data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c
Examining data/nng-1.3.2+git201005/src/transport/zerotier/zthash.c
Examining data/nng-1.3.2+git201005/src/transport/tls/tls.c
Examining data/nng-1.3.2+git201005/src/compat/nanomsg/compat_testutil.h
Examining data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c
Examining data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c
Examining data/nng-1.3.2+git201005/src/protocol/reqrep0/req.c
Examining data/nng-1.3.2+git201005/src/protocol/reqrep0/xrep.c
Examining data/nng-1.3.2+git201005/src/protocol/reqrep0/rep_test.c
Examining data/nng-1.3.2+git201005/src/protocol/reqrep0/xrep_test.c
Examining data/nng-1.3.2+git201005/src/protocol/reqrep0/req_test.c
Examining data/nng-1.3.2+git201005/src/protocol/reqrep0/xreq_test.c
Examining data/nng-1.3.2+git201005/src/protocol/reqrep0/rep.c
Examining data/nng-1.3.2+git201005/src/protocol/reqrep0/xreq.c
Examining data/nng-1.3.2+git201005/src/protocol/pair1/pair1_poly_test.c
Examining data/nng-1.3.2+git201005/src/protocol/pair1/pair1_poly.c
Examining data/nng-1.3.2+git201005/src/protocol/pair1/pair.c
Examining data/nng-1.3.2+git201005/src/protocol/pair1/pair1_test.c
Examining data/nng-1.3.2+git201005/src/protocol/pubsub0/sub_test.c
Examining data/nng-1.3.2+git201005/src/protocol/pubsub0/xsub_test.c
Examining data/nng-1.3.2+git201005/src/protocol/pubsub0/pub_test.c
Examining data/nng-1.3.2+git201005/src/protocol/pubsub0/sub.c
Examining data/nng-1.3.2+git201005/src/protocol/pubsub0/pub.c
Examining data/nng-1.3.2+git201005/src/protocol/pubsub0/xsub.c
Examining data/nng-1.3.2+git201005/src/protocol/survey0/survey.c
Examining data/nng-1.3.2+git201005/src/protocol/survey0/survey_test.c
Examining data/nng-1.3.2+git201005/src/protocol/survey0/xrespond_test.c
Examining data/nng-1.3.2+git201005/src/protocol/survey0/xrespond.c
Examining data/nng-1.3.2+git201005/src/protocol/survey0/xsurvey.c
Examining data/nng-1.3.2+git201005/src/protocol/survey0/respond_test.c
Examining data/nng-1.3.2+git201005/src/protocol/survey0/xsurvey_test.c
Examining data/nng-1.3.2+git201005/src/protocol/survey0/respond.c
Examining data/nng-1.3.2+git201005/src/protocol/pipeline0/pull.c
Examining data/nng-1.3.2+git201005/src/protocol/pipeline0/push.c
Examining data/nng-1.3.2+git201005/src/protocol/pair0/pair.c
Examining data/nng-1.3.2+git201005/src/protocol/bus0/bus.c
Examining data/nng-1.3.2+git201005/src/core/message.h
Examining data/nng-1.3.2+git201005/src/core/pollable.h
Examining data/nng-1.3.2+git201005/src/core/sockimpl.h
Examining data/nng-1.3.2+git201005/src/core/protocol.h
Examining data/nng-1.3.2+git201005/src/core/list.h
Examining data/nng-1.3.2+git201005/src/core/lmq.c
Examining data/nng-1.3.2+git201005/src/core/clock.h
Examining data/nng-1.3.2+git201005/src/core/listener.c
Examining data/nng-1.3.2+git201005/src/core/strs.c
Examining data/nng-1.3.2+git201005/src/core/taskq.c
Examining data/nng-1.3.2+git201005/src/core/pollable.c
Examining data/nng-1.3.2+git201005/src/core/socket.c
Examining data/nng-1.3.2+git201005/src/core/idhash.h
Examining data/nng-1.3.2+git201005/src/core/protocol.c
Examining data/nng-1.3.2+git201005/src/core/tcp.h
Examining data/nng-1.3.2+git201005/src/core/message.c
Examining data/nng-1.3.2+git201005/src/core/stream.h
Examining data/nng-1.3.2+git201005/src/core/strs.h
Examining data/nng-1.3.2+git201005/src/core/socket.h
Examining data/nng-1.3.2+git201005/src/core/dialer.c
Examining data/nng-1.3.2+git201005/src/core/file.c
Examining data/nng-1.3.2+git201005/src/core/init.c
Examining data/nng-1.3.2+git201005/src/core/options.c
Examining data/nng-1.3.2+git201005/src/core/timer.c
Examining data/nng-1.3.2+git201005/src/core/timer.h
Examining data/nng-1.3.2+git201005/src/core/aio.h
Examining data/nng-1.3.2+git201005/src/core/init.h
Examining data/nng-1.3.2+git201005/src/core/stats.c
Examining data/nng-1.3.2+git201005/src/core/msgqueue.c
Examining data/nng-1.3.2+git201005/src/core/thread.c
Examining data/nng-1.3.2+git201005/src/core/stream.c
Examining data/nng-1.3.2+git201005/src/core/lmq.h
Examining data/nng-1.3.2+git201005/src/core/transport.c
Examining data/nng-1.3.2+git201005/src/core/taskq.h
Examining data/nng-1.3.2+git201005/src/core/platform.h
Examining data/nng-1.3.2+git201005/src/core/aio.c
Examining data/nng-1.3.2+git201005/src/core/stats.h
Examining data/nng-1.3.2+git201005/src/core/options.h
Examining data/nng-1.3.2+git201005/src/core/list.c
Examining data/nng-1.3.2+git201005/src/core/panic.h
Examining data/nng-1.3.2+git201005/src/core/thread.h
Examining data/nng-1.3.2+git201005/src/core/device.h
Examining data/nng-1.3.2+git201005/src/core/msgqueue.h
Examining data/nng-1.3.2+git201005/src/core/panic.c
Examining data/nng-1.3.2+git201005/src/core/pipe.c
Examining data/nng-1.3.2+git201005/src/core/pipe.h
Examining data/nng-1.3.2+git201005/src/core/transport.h
Examining data/nng-1.3.2+git201005/src/core/url.c
Examining data/nng-1.3.2+git201005/src/core/nng_impl.h
Examining data/nng-1.3.2+git201005/src/core/dialer.h
Examining data/nng-1.3.2+git201005/src/core/reap.h
Examining data/nng-1.3.2+git201005/src/core/idhash.c
Examining data/nng-1.3.2+git201005/src/core/url.h
Examining data/nng-1.3.2+git201005/src/core/clock.c
Examining data/nng-1.3.2+git201005/src/core/reap.c
Examining data/nng-1.3.2+git201005/src/core/defs.h
Examining data/nng-1.3.2+git201005/src/core/file.h
Examining data/nng-1.3.2+git201005/src/core/listener.h
Examining data/nng-1.3.2+git201005/src/core/device.c
Examining data/nng-1.3.2+git201005/tools/nngcat/nngcat.c
Examining data/nng-1.3.2+git201005/include/nng/nng.h
Examining data/nng-1.3.2+git201005/include/nng/supplemental/http/http.h
Examining data/nng-1.3.2+git201005/include/nng/supplemental/util/platform.h
Examining data/nng-1.3.2+git201005/include/nng/supplemental/util/options.h
Examining data/nng-1.3.2+git201005/include/nng/supplemental/tls/tls.h
Examining data/nng-1.3.2+git201005/include/nng/supplemental/tls/engine.h
Examining data/nng-1.3.2+git201005/include/nng/transport/ws/websocket.h
Examining data/nng-1.3.2+git201005/include/nng/transport/tcp/tcp.h
Examining data/nng-1.3.2+git201005/include/nng/transport/inproc/inproc.h
Examining data/nng-1.3.2+git201005/include/nng/transport/ipc/ipc.h
Examining data/nng-1.3.2+git201005/include/nng/transport/zerotier/zerotier.h
Examining data/nng-1.3.2+git201005/include/nng/transport/tls/tls.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/bus.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/ws.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/pipeline.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/ipc.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/reqrep.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/tcp.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/pubsub.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/survey.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/pair.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/inproc.h
Examining data/nng-1.3.2+git201005/include/nng/compat/nanomsg/nn.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/reqrep0/req.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/reqrep0/rep.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/pair1/pair.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/pubsub0/sub.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/pubsub0/pub.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/survey0/survey.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/survey0/respond.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/pipeline0/push.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/pipeline0/pull.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/pair0/pair.h
Examining data/nng-1.3.2+git201005/include/nng/protocol/bus0/bus.h
Examining data/nng-1.3.2+git201005/perf/perf.c
Examining data/nng-1.3.2+git201005/perf/pubdrop.c
Examining data/nng-1.3.2+git201005/demo/async/client.c
Examining data/nng-1.3.2+git201005/demo/async/server.c
Examining data/nng-1.3.2+git201005/demo/http_client/http_client.c
Examining data/nng-1.3.2+git201005/demo/rest/server.c
Examining data/nng-1.3.2+git201005/demo/raw/raw.c
Examining data/nng-1.3.2+git201005/demo/reqrep/reqrep.c
Examining data/nng-1.3.2+git201005/tests/scalability.c
Examining data/nng-1.3.2+git201005/tests/errors.c
Examining data/nng-1.3.2+git201005/tests/compat_iovec.c
Examining data/nng-1.3.2+git201005/tests/nonblock.c
Examining data/nng-1.3.2+git201005/tests/compat_block.c
Examining data/nng-1.3.2+git201005/tests/resolv.c
Examining data/nng-1.3.2+git201005/tests/compat_msg.c
Examining data/nng-1.3.2+git201005/tests/compat_shutdown.c
Examining data/nng-1.3.2+git201005/tests/compat_bus.c
Examining data/nng-1.3.2+git201005/tests/platform.c
Examining data/nng-1.3.2+git201005/tests/compat_testutil.h
Examining data/nng-1.3.2+git201005/tests/tcpsupp.c
Examining data/nng-1.3.2+git201005/tests/id.c
Examining data/nng-1.3.2+git201005/tests/ipcperms.c
Examining data/nng-1.3.2+git201005/tests/message.c
Examining data/nng-1.3.2+git201005/tests/udp.c
Examining data/nng-1.3.2+git201005/tests/httpserver.c
Examining data/nng-1.3.2+git201005/tests/options.c
Examining data/nng-1.3.2+git201005/tests/wss.c
Examining data/nng-1.3.2+git201005/tests/acutest.h
Examining data/nng-1.3.2+git201005/tests/testutil.h
Examining data/nng-1.3.2+git201005/tests/convey.c
Examining data/nng-1.3.2+git201005/tests/tcp6.c
Examining data/nng-1.3.2+git201005/tests/httpclient.c
Examining data/nng-1.3.2+git201005/tests/stats.c
Examining data/nng-1.3.2+git201005/tests/compat_bug777.c
Examining data/nng-1.3.2+git201005/tests/compat_pair.c
Examining data/nng-1.3.2+git201005/tests/bufsz.c
Examining data/nng-1.3.2+git201005/tests/reconnect.c
Examining data/nng-1.3.2+git201005/tests/compat_reqttl.c
Examining data/nng-1.3.2+git201005/tests/transport.c
Examining data/nng-1.3.2+git201005/tests/inproc.c
Examining data/nng-1.3.2+git201005/tests/sock.c
Examining data/nng-1.3.2+git201005/tests/compat_surveyttl.c
Examining data/nng-1.3.2+git201005/tests/compat_pipeline.c
Examining data/nng-1.3.2+git201005/tests/pipeline.c
Examining data/nng-1.3.2+git201005/tests/bus.c
Examining data/nng-1.3.2+git201005/tests/aio.c
Examining data/nng-1.3.2+git201005/tests/compat_device.c
Examining data/nng-1.3.2+git201005/tests/zt.c
Examining data/nng-1.3.2+git201005/tests/tcp.c
Examining data/nng-1.3.2+git201005/tests/reqstress.c
Examining data/nng-1.3.2+git201005/tests/convey.h
Examining data/nng-1.3.2+git201005/tests/synch.c
Examining data/nng-1.3.2+git201005/tests/list.c
Examining data/nng-1.3.2+git201005/tests/tls.c
Examining data/nng-1.3.2+git201005/tests/compat_reqrep.c
Examining data/nng-1.3.2+git201005/tests/ipcsupp.c
Examining data/nng-1.3.2+git201005/tests/compat_cmsg.c
Examining data/nng-1.3.2+git201005/tests/cplusplus_pair.cc
Examining data/nng-1.3.2+git201005/tests/files.c
Examining data/nng-1.3.2+git201005/tests/ipc.c
Examining data/nng-1.3.2+git201005/tests/compat_testutil.c
Examining data/nng-1.3.2+git201005/tests/testutil.c
Examining data/nng-1.3.2+git201005/tests/compat_survey.c
Examining data/nng-1.3.2+git201005/tests/pipe.c
Examining data/nng-1.3.2+git201005/tests/reqctx.c
Examining data/nng-1.3.2+git201005/tests/url.c
Examining data/nng-1.3.2+git201005/tests/ipcwinsec.c
Examining data/nng-1.3.2+git201005/tests/pollfd.c
Examining data/nng-1.3.2+git201005/tests/stubs.h
Examining data/nng-1.3.2+git201005/tests/compat_poll.c
Examining data/nng-1.3.2+git201005/tests/compat_ws.c
Examining data/nng-1.3.2+git201005/tests/ws.c
Examining data/nng-1.3.2+git201005/tests/bug1247.c
Examining data/nng-1.3.2+git201005/tests/set_recvmaxsize.c
Examining data/nng-1.3.2+git201005/tests/multistress.c
Examining data/nng-1.3.2+git201005/tests/trantest.h
Examining data/nng-1.3.2+git201005/tests/compat_options.c
Examining data/nng-1.3.2+git201005/tests/device.c

FINAL RESULTS:

data/nng-1.3.2+git201005/src/platform/posix/posix_ipclisten.c:336:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (((l->perms != 0) && (chmod(path, l->perms & ~S_IFMT) != 0)) ||
data/nng-1.3.2+git201005/tests/files.c:45:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod(file, 0);
data/nng-1.3.2+git201005/demo/rest/server.c:147:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buf, sizeof(buf), fmt, nng_strerror(rv));
data/nng-1.3.2+git201005/demo/rest/server.c:257:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(rest_addr, sizeof(rest_addr), REST_URL, port);
data/nng-1.3.2+git201005/perf/perf.c:225:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/nng-1.3.2+git201005/perf/pubdrop.c:97:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/nng-1.3.2+git201005/src/core/panic.c:56:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	(void) vsnprintf(fbuf, sizeof(fbuf), fmt, va);
data/nng-1.3.2+git201005/src/core/strs.c:163:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(NULL, 0, fmt, ap);
data/nng-1.3.2+git201005/src/core/strs.c:171:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	(void) vsnprintf(s, len, fmt, ap);
data/nng-1.3.2+git201005/src/platform/posix/posix_debug.c:31:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) vprintf(fmt, ap);
data/nng-1.3.2+git201005/src/platform/posix/posix_ipcdial.c:279:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(d->sa.s_ipc.sa_path, url->u_path);
data/nng-1.3.2+git201005/src/platform/posix/posix_ipclisten.c:434:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(l->sa.s_ipc.sa_path, url->u_path);
data/nng-1.3.2+git201005/src/platform/windows/win_debug.c:31:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) vprintf(fmt, ap);
data/nng-1.3.2+git201005/src/supplemental/http/http_msg.c:498:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(NULL, 0, fmt, ap);
data/nng-1.3.2+git201005/src/supplemental/http/http_msg.c:515:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = vsnprintf(buf, len, fmt, ap);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1538:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(pn, path);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1547:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(dst, NNG_PLATFORM_DIR_SEP);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1564:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(dst, "%s%s", NNG_PLATFORM_DIR_SEP, "index.html");
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1190: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.
	(void) snprintf(fname, sizeof(fname), template,
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1248:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(fname, sizeof(fname), template, objid[0], objid[1]);
data/nng-1.3.2+git201005/tests/acutest.h:464:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buffer, sizeof(buffer), fmt, args);
data/nng-1.3.2+git201005/tests/acutest.h:638:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(fmt, args);
data/nng-1.3.2+git201005/tests/acutest.h:668:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(test_case_name__, sizeof(test_case_name__) - 1, fmt, args);
data/nng-1.3.2+git201005/tests/acutest.h:697:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buffer, TEST_MSG_MAXSIZE, fmt, args);
data/nng-1.3.2+git201005/tests/acutest.h:737:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf((title[strlen(title)-1] == ':') ? "%s\n" : "%s:\n", title);
data/nng-1.3.2+git201005/tests/acutest.h:901:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(fmt, args);
data/nng-1.3.2+git201005/tests/acutest.h:1207:33:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                                sprintf(auxbuf, "--%s", opt->longname);
data/nng-1.3.2+git201005/tests/compat_testutil.c:204:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(out, "%s://%s:%d", proto, ip, port);
data/nng-1.3.2+git201005/tests/convey.c:702:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	(void) vsnprintf(log->log_buf + log->log_length,
data/nng-1.3.2+git201005/tests/ipcperms.c:87: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(sa.sun_path, ADDR);
data/nng-1.3.2+git201005/tests/multistress.c:38:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define dprintf printf
data/nng-1.3.2+git201005/tests/multistress.c:109:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buf, NNG_MAXADDRLEN, templates[i], next_port++);
data/nng-1.3.2+git201005/tests/reqstress.c:30:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define dprintf printf
data/nng-1.3.2+git201005/tests/reqstress.c:102:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buf, NNG_MAXADDRLEN, templates[i], next_port++);
data/nng-1.3.2+git201005/tests/trantest.h:105: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.
	(void) snprintf(out, NNG_MAXADDRLEN, template, trantest_port);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:221:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, ap);
data/nng-1.3.2+git201005/demo/rest/server.c:363:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("PORT") != NULL) {
data/nng-1.3.2+git201005/demo/rest/server.c:364:26:  [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.
		port = (uint16_t) atoi(getenv("PORT"));
data/nng-1.3.2+git201005/src/platform/posix/posix_file.c:317:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((temp = getenv("TMPDIR")) != NULL) {
data/nng-1.3.2+git201005/src/platform/windows/win_thread.c:380:29:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
                hKernel32 = LoadLibrary(TEXT("kernel32.dll"));
data/nng-1.3.2+git201005/tests/convey.c:878:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	term = getenv("TERM");
data/nng-1.3.2+git201005/tests/convey.c:898:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	term = getenv("TERM");
data/nng-1.3.2+git201005/tests/convey.c:975: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.
	return (getenv(name));
data/nng-1.3.2+git201005/tests/multistress.c:776:2:  [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((int) time(NULL));
data/nng-1.3.2+git201005/tests/reqstress.c:288:2:  [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((int) time(NULL));
data/nng-1.3.2+git201005/tests/resolv.c:132:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((getenv("TRAVIS") != NULL) ||
data/nng-1.3.2+git201005/tests/resolv.c:133:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		    (getenv("CIRCLECI") != NULL)) {
data/nng-1.3.2+git201005/tests/testutil.c:171:18:  [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 (((tmpdir = getenv("TMPDIR")) == NULL) &&
data/nng-1.3.2+git201005/tests/testutil.c:172:18:  [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.
		    ((tmpdir = getenv("TEMP")) == NULL) &&
data/nng-1.3.2+git201005/tests/testutil.c:173:18:  [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.
		    ((tmpdir = getenv("TMP")) == NULL)) {
data/nng-1.3.2+git201005/tests/testutil.c:212: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.
	pfile = getenv("TEST_PORT_FILE");
data/nng-1.3.2+git201005/tests/testutil.c:216:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (((str = getenv("TEST_PORT_RANGE")) == NULL) ||
data/nng-1.3.2+git201005/demo/async/client.c:50:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	msec = atoi(msecstr);
data/nng-1.3.2+git201005/demo/http_client/http_client.c:120:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	len = atoi(hdr);
data/nng-1.3.2+git201005/demo/raw/raw.c:171:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	msec = atoi(msecstr) * 1000;
data/nng-1.3.2+git201005/demo/rest/server.c:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char          buf[128];
data/nng-1.3.2+git201005/demo/rest/server.c:235: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(nng_msg_body(job->msg), data, sz);
data/nng-1.3.2+git201005/demo/rest/server.c:246:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char              rest_addr[128];
data/nng-1.3.2+git201005/demo/rest/server.c:364: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).
		port = (uint16_t) atoi(getenv("PORT"));
data/nng-1.3.2+git201005/include/nng/nng.h:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     sa_name[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/include/nng/nng.h:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     sa_path[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/perf/pubdrop.c:164:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(nng_msg_body(msg), &i, sizeof(i));
data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     addr[64];
data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c:141:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[4];
data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c:162:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     addr[32];
data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     addr[64];
data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     addr[64];
data/nng-1.3.2+git201005/src/compat/nanomsg/compat_tcp_test.c:207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     buf[64];
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:90:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char msgbuf[32];
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:486:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(mh->msg_iov[i].iov_base, ptr, n);
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:522:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(nng_msg_body(nmsg), &nmsg, sizeof(nmsg));
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:540:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ptr, &spsz, sizeof(spsz));
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:542:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ptr, nng_msg_header(msg), spsz);
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:600:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ptr, mh->msg_iov[i].iov_base,
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:691: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(valp, &i, *szp < sizeof(int) ? *szp : sizeof(int));
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:712:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(valp, &sfd, *szp < sizeof(sfd) ? *szp : sizeof(sfd));
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:734:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(valp, &zero, *szp < sizeof(zero) ? *szp : sizeof(zero));
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:756: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(valp, &val, *szp < sizeof(val) ? *szp : sizeof(val));
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:821: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(valp, &ival, *szp < sizeof(ival) ? *szp : sizeof(ival));
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:837: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(valp, &cnt, *szp < sizeof(cnt) ? *szp : sizeof(cnt));
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:876: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(valp, &cnt, *szp < sizeof(cnt) ? *szp : sizeof(cnt));
data/nng-1.3.2+git201005/src/compat/nanomsg/nn.c:954: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(valp, &ival, *szp < sizeof(ival) ? *szp : sizeof(ival));
data/nng-1.3.2+git201005/src/core/aio.c:706: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(&aio->a_sockaddr, sa, sizeof(*sa));
data/nng-1.3.2+git201005/src/core/aio.c:712:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sa, &aio->a_sockaddr, sizeof(*sa));
data/nng-1.3.2+git201005/src/core/message.c:40:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    buf[128];
data/nng-1.3.2+git201005/src/core/message.c:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/nng-1.3.2+git201005/src/core/message.c:136:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(newbuf + headwanted, ch->ch_ptr, ch->ch_len);
data/nng-1.3.2+git201005/src/core/message.c:219:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst->ch_ptr, src->ch_ptr, dst->ch_len);
data/nng-1.3.2+git201005/src/core/message.c:242:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ch->ch_ptr + ch->ch_len, data, len);
data/nng-1.3.2+git201005/src/core/message.c:287:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ch->ch_ptr, data, len);
data/nng-1.3.2+git201005/src/core/message.c:351:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst, nni_msg_header(m), len);
data/nng-1.3.2+git201005/src/core/message.c:353:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst, nni_msg_body(m), nni_msg_len(m));
data/nng-1.3.2+git201005/src/core/message.c:412:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(m->m_header_buf, src->m_header_buf, src->m_header_len);
data/nng-1.3.2+git201005/src/core/message.c:513:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((uint8_t *) m->m_header_buf) + m->m_header_len, data, len);
data/nng-1.3.2+git201005/src/core/message.c:526: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(m->m_header_buf, data, len);
data/nng-1.3.2+git201005/src/core/options.c:30:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&dur, v, sz);
data/nng-1.3.2+git201005/src/core/options.c:59:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(bp, v, sz);
data/nng-1.3.2+git201005/src/core/options.c:83:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&i, v, sz);
data/nng-1.3.2+git201005/src/core/options.c:114:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&val, v, sz);
data/nng-1.3.2+git201005/src/core/options.c:143:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&p, v, sz);
data/nng-1.3.2+git201005/src/core/options.c:173:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s, v, z);
data/nng-1.3.2+git201005/src/core/options.c:191:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&u, v, sz);
data/nng-1.3.2+git201005/src/core/options.c:215:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&a, v, sz);
data/nng-1.3.2+git201005/src/core/options.c:239:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src, copysz);
data/nng-1.3.2+git201005/src/core/panic.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    buf[100];
data/nng-1.3.2+git201005/src/core/panic.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    fbuf[93]; // 7 bytes of "panic: "
data/nng-1.3.2+git201005/src/core/socket.c:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         s_name[64];  // socket name (legacy compat)
data/nng-1.3.2+git201005/src/core/socket.c:96:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         s_scope[24]; // socket scope ("socket%u", 32 bits max)
data/nng-1.3.2+git201005/src/core/socket.c:998: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(optv->data, v, sz);
data/nng-1.3.2+git201005/src/core/socket.c:1115:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(val, sopt->data, sz);
data/nng-1.3.2+git201005/src/core/sockimpl.h:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char          s_scope[24]; // scope name for stats
data/nng-1.3.2+git201005/src/core/sockimpl.h:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char          s_scope[24]; // scope name for stats
data/nng-1.3.2+git201005/src/core/sockimpl.h:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char          s_scope[16]; // scope name for stats ("pipe" is short)
data/nng-1.3.2+git201005/src/core/stats.c:439:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/nng-1.3.2+git201005/src/core/stats.c:447:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/nng-1.3.2+git201005/src/core/stats.c:455:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[16];
data/nng-1.3.2+git201005/src/core/stats.c:501:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char        buf[128]; // to minimize recursion, not thread safe
data/nng-1.3.2+git201005/src/core/strs.c:35:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dst, src, len);
data/nng-1.3.2+git201005/src/core/url.c:343:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(url->u_userinfo, s, len);
data/nng-1.3.2+git201005/src/core/url.c:387: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(url->u_path, s, len);
data/nng-1.3.2+git201005/src/core/url.c:405:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(url->u_query, s, len);
data/nng-1.3.2+git201005/src/core/url.c:445: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(url->u_hostname, s, len);
data/nng-1.3.2+git201005/src/core/url.c:531:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    portstr[16];
data/nng-1.3.2+git201005/src/nng.c:97:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, nng_msg_body(msg),
data/nng-1.3.2+git201005/src/nng.c:115:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(nbuf, nni_msg_body(msg), nni_msg_len(msg));
data/nng-1.3.2+git201005/src/nng.c:164: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(nng_msg_body(msg), buf, len);
data/nng-1.3.2+git201005/src/nng.c:835:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char unknownerrbuf[32];
data/nng-1.3.2+git201005/src/nng.c:847:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char tranerrbuf[32];
data/nng-1.3.2+git201005/src/platform/posix/posix_file.c:84:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(name, "wb")) == NULL) {
data/nng-1.3.2+git201005/src/platform/posix/posix_file.c:107:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(name, "rb")) == NULL) {
data/nng-1.3.2+git201005/src/platform/posix/posix_file.c:277:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
data/nng-1.3.2+git201005/src/platform/posix/posix_pipe.c:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/nng-1.3.2+git201005/src/platform/posix/posix_rand_urandom.c:46:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open("/dev/urandom", O_RDONLY | O_CLOEXEC)) < 0) {
data/nng-1.3.2+git201005/src/platform/posix/posix_resolv_gai.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_buf[256];
data/nng-1.3.2+git201005/src/platform/posix/posix_resolv_gai.c:185:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(sa->s_in6.sa_addr, sin6->sin6_addr.s6_addr, 16);
data/nng-1.3.2+git201005/src/platform/posix/posix_resolv_gai.c:380:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, addr, buf_len);
data/nng-1.3.2+git201005/src/platform/posix/posix_sockaddr.c:58:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sin6->sin6_addr.s6_addr, nsin6->sa_addr, 16);
data/nng-1.3.2+git201005/src/platform/posix/posix_sockaddr.c:102:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(nsin6->sa_addr, sin6->sin6_addr.s6_addr, 16);
data/nng-1.3.2+git201005/src/platform/windows/win_file.c:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char            path[MAX_PATH + 1];
data/nng-1.3.2+git201005/src/platform/windows/win_file.c:274:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[MAX_PATH + 1];
data/nng-1.3.2+git201005/src/platform/windows/win_pipe.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/nng-1.3.2+git201005/src/platform/windows/win_resolv.c:157:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(sa.s_in6.sa_addr, sin6->sin6_addr.s6_addr, 16);
data/nng-1.3.2+git201005/src/platform/windows/win_resolv.c:340:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, addr, buf_len);
data/nng-1.3.2+git201005/src/platform/windows/win_sockaddr.c:39:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sin6->sin6_addr.s6_addr, sa->s_in6.sa_addr, 16);
data/nng-1.3.2+git201005/src/platform/windows/win_sockaddr.c:66:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sa->s_in6.sa_addr, sin6->sin6_addr.s6_addr, 16);
data/nng-1.3.2+git201005/src/platform/windows/win_tcp.h:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char              buf[512]; // to hold acceptex results
data/nng-1.3.2+git201005/src/platform/windows/win_tcpdial.c:227:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&c->sockname, &d->src, len);
data/nng-1.3.2+git201005/src/platform/windows/win_tcplisten.c:123: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(&c->sockname, sa1, len1);
data/nng-1.3.2+git201005/src/platform/windows/win_tcplisten.c:124: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(&c->peername, sa2, len2);
data/nng-1.3.2+git201005/src/platform/windows/win_thread.c:348:10:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		(void) MultiByteToWideChar(CP_UTF8, 0, name, len, wcs, len);
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_poly_test.c:321:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_test.c:334:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/protocol/pubsub0/pub_test.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       addr[64];
data/nng-1.3.2+git201005/src/protocol/pubsub0/sub.c:475:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_topic->buf, buf, sz);
data/nng-1.3.2+git201005/src/protocol/pubsub0/sub_test.c:198:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       addr[64];
data/nng-1.3.2+git201005/src/protocol/pubsub0/sub_test.c:481:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/nng-1.3.2+git201005/src/protocol/pubsub0/xsub_test.c:163:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/protocol/reqrep0/rep.c:464: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(ctx->btrace, nni_msg_header(msg), len);
data/nng-1.3.2+git201005/src/protocol/reqrep0/rep.c:561: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(ctx->btrace, nni_msg_header(msg), len);
data/nng-1.3.2+git201005/src/protocol/reqrep0/rep_test.c:151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/protocol/reqrep0/req_test.c:898:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/protocol/reqrep0/xrep_test.c:133:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       addr[64];
data/nng-1.3.2+git201005/src/protocol/reqrep0/xreq_test.c:142:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       addr[64];
data/nng-1.3.2+git201005/src/protocol/survey0/respond.c:458: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(ctx->btrace, nni_msg_header(msg), len);
data/nng-1.3.2+git201005/src/protocol/survey0/respond.c:548: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(ctx->btrace, nni_msg_header(msg), len);
data/nng-1.3.2+git201005/src/protocol/survey0/respond_test.c:154:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/protocol/survey0/survey_test.c:524:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/nng-1.3.2+git201005/src/protocol/survey0/survey_test.c:639:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/protocol/survey0/xrespond_test.c:133:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       addr[64];
data/nng-1.3.2+git201005/src/protocol/survey0/xsurvey_test.c:145:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:42:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:43:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[8];
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:63:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:64:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[8];
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[1024];
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:87:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[8];
data/nng-1.3.2+git201005/src/supplemental/http/http_chunk.c:280:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, buf, n);
data/nng-1.3.2+git201005/src/supplemental/http/http_chunk.c:294:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest, buf, n);
data/nng-1.3.2+git201005/src/supplemental/http/http_client.c:356:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst, nni_http_chunk_data(chunk),
data/nng-1.3.2+git201005/src/supplemental/http/http_conn.c:153:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(iov[0].iov_buf, rbuf, n);
data/nng-1.3.2+git201005/src/supplemental/http/http_msg.c:318:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(entity->data, data, size);
data/nng-1.3.2+git201005/src/supplemental/http/http_msg.c:326:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/nng-1.3.2+git201005/src/supplemental/http/http_msg.c:818:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	status = atoi(codestr);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:970:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	s->port = atoi(url->u_port);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:997:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if ((!s->closed) && (atoi(url->u_port) == s->port) &&
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1123: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(body, html, len);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1849: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(hs->data, data, size);
data/nng-1.3.2+git201005/src/supplemental/sha1/sha1_test.c:32: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 *testarray[4]   = { TEST1, TEST2, TEST3, TEST4 };
data/nng-1.3.2+git201005/src/supplemental/sha1/sha1_test.c:34: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 *resultarray[4] = {
data/nng-1.3.2+git201005/src/supplemental/sha1/sha1_test.c:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         strout[20 * 3 + 1];
data/nng-1.3.2+git201005/src/supplemental/sha1/sha1_test.c:50:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         name[8];
data/nng-1.3.2+git201005/src/supplemental/tls/mbedtls/tls.c:64:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/nng-1.3.2+git201005/src/supplemental/tls/mbedtls/tls.c:80:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, &x, n);
data/nng-1.3.2+git201005/src/supplemental/tls/tls_common.c:1246:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(conn->tcp_send_buf + head, buf, cnt);
data/nng-1.3.2+git201005/src/supplemental/tls/tls_common.c:1275:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, conn->tcp_recv_buf + conn->tcp_recv_off, len);
data/nng-1.3.2+git201005/src/supplemental/tls/tls_common.c:1303: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(pem, data, size);
data/nng-1.3.2+git201005/src/supplemental/tls/tls_common.c:1325: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(pem, data, size);
data/nng-1.3.2+git201005/src/supplemental/tls/tls_test.c:86:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char                 addr[32];
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:364:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(frame->head + frame->hlen, frame->mask, 4);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:399: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(frame->sdata, buf, len);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:469:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, iov->iov_buf, n);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:852: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(iov->iov_buf, frame->buf, n);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:912:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(body, frame->buf, frame->len);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:1094:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(frame->mask, frame->head + frame->hlen - 4, 4);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:1282:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char           wskey[29];
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:1489:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char              key[29];
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:1512:52:  [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 ((((ptr = GETH("Content-Length")) != NULL) && (atoi(ptr) > 0)) ||
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:2072:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char           wskey[25];
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket_test.c:35:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char                 buf1[8];
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket_test.c:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char                 buf2[8];
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket_test.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char                 uri[64];
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket_test.c:99: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(buf1, "TEST", 5);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket_test.c:145:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char                 uri[64];
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket_test.c:292:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char                 url[64];
data/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c:103:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ipv6[16];
data/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c:243:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c:282:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c:333:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c:379:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/src/transport/tcp/tcp.c:723:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(src, surl->u_hostname, len);
data/nng-1.3.2+git201005/src/transport/tls/tls.c:696:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(src, surl->u_hostname, len);
data/nng-1.3.2+git201005/src/transport/ws/websocket.c:490:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       name[64];
data/nng-1.3.2+git201005/src/transport/ws/websocket.c:524:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         name[64];
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:147:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char            zn_path[NNG_MAXADDRLEN]; // ought to be sufficient
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char          ze_home[NNG_MAXADDRLEN]; // should be enough
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:407:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&sin6->sin6_addr, nsin6->sa_addr, 16);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:918: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(body, data, len);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[32];
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1202:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ndata, data, len);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1235:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     fname[32];
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1259:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, zt_ephemeral_state[objtype].data, len);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1276: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, buf, sz);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1323:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(addr.s_in6.sa_addr, sin6->sin6_addr.s6_addr, 16);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1342:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, data, len);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1911:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, nni_msg_header(m), len);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1923:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, nni_msg_body(m), len);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:2707:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     ustr[64]; // more than plenty
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:2807:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&sin6->sin6_addr, sa.s_in6.sa_addr, 16);
data/nng-1.3.2+git201005/tests/acutest.h:335:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char test_case_name__[64] = "";
data/nng-1.3.2+git201005/tests/acutest.h:460:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/nng-1.3.2+git201005/tests/acutest.h:526: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 spaces[48];
data/nng-1.3.2+git201005/tests/acutest.h:683:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[TEST_MSG_MAXSIZE];
data/nng-1.3.2+git201005/tests/acutest.h:1028: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 tmp[32];
data/nng-1.3.2+git201005/tests/acutest.h:1039:35:  [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.
                    default:      sprintf(tmp, "signal %d", WTERMSIG(exit_code)); signame = tmp; break;
data/nng-1.3.2+git201005/tests/acutest.h:1049: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] = {0};
data/nng-1.3.2+git201005/tests/acutest.h:1149: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 badoptname[3];
data/nng-1.3.2+git201005/tests/acutest.h:1172:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char auxbuf[TEST_CMDLINE_AUXBUF_SIZE__+1];
data/nng-1.3.2+git201005/tests/acutest.h:1392:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            test_verbose_level__ = (arg != NULL ? atoi(arg) : test_verbose_level__+1);
data/nng-1.3.2+git201005/tests/acutest.h:1419:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            test_worker_index__ = atoi(arg);
data/nng-1.3.2+git201005/tests/acutest.h:1422:33:  [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).
            test_xml_output__ = fopen(arg, "w");
data/nng-1.3.2+git201005/tests/acutest.h:1461:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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+32+1];
data/nng-1.3.2+git201005/tests/acutest.h:1466:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open("/proc/self/status", O_RDONLY);
data/nng-1.3.2+git201005/tests/acutest.h:1478:40:  [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).
            pid_t tracer_pid = (pid_t) atoi(field + sizeof(pattern) - 1);
data/nng-1.3.2+git201005/tests/acutest.h:1610: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 suite_name[_MAX_FNAME];
data/nng-1.3.2+git201005/tests/bug1247.c:22:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/tests/compat_bus.c: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 buf [3];
data/nng-1.3.2+git201005/tests/compat_cmsg.c:38:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char body [3];
data/nng-1.3.2+git201005/tests/compat_cmsg.c:39: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 ctrl [256];
data/nng-1.3.2+git201005/tests/compat_cmsg.c: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 socket_address[128];
data/nng-1.3.2+git201005/tests/compat_cmsg.c:47: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(socket_address, "inproc://testaddr");
data/nng-1.3.2+git201005/tests/compat_iovec.c: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 buf [6];
data/nng-1.3.2+git201005/tests/compat_msg.c: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 longdata[1 << 20];
data/nng-1.3.2+git201005/tests/compat_msg.c: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 socket_address_tcp[128];
data/nng-1.3.2+git201005/tests/compat_poll.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char             buf[3];
data/nng-1.3.2+git201005/tests/compat_reqrep.c: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 buf [7];
data/nng-1.3.2+git201005/tests/compat_reqttl.c:32: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 socket_address_a[128];
data/nng-1.3.2+git201005/tests/compat_reqttl.c:33: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 socket_address_b[128];
data/nng-1.3.2+git201005/tests/compat_shutdown.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char socket_address[128];
data/nng-1.3.2+git201005/tests/compat_survey.c:40:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[7];
data/nng-1.3.2+git201005/tests/compat_surveyttl.c:32: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 socket_address_a[128];
data/nng-1.3.2+git201005/tests/compat_surveyttl.c:33: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 socket_address_b[128];
data/nng-1.3.2+git201005/tests/compat_testutil.c:180:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/nng-1.3.2+git201005/tests/compat_testutil.c:198:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return (atoi(argc < 2 ? "5555" : argv[1]));
data/nng-1.3.2+git201005/tests/compat_ws.c:40: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 socket_address[128];
data/nng-1.3.2+git201005/tests/compat_ws.c:73: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 ((char *)bad, "BAD.");
data/nng-1.3.2+git201005/tests/compat_ws.c:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char   any_address[128];
data/nng-1.3.2+git201005/tests/convey.c:120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char                ctx_name[256];
data/nng-1.3.2+git201005/tests/convey.c:694:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, log->log_buf, log->log_length);
data/nng-1.3.2+git201005/tests/cplusplus_pair.cc:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8];
data/nng-1.3.2+git201005/tests/httpclient.c:94:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				sz = atoi(cstr);
data/nng-1.3.2+git201005/tests/httpserver.c:76:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		clen = atoi(ptr);
data/nng-1.3.2+git201005/tests/httpserver.c:197:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     portbuf[16];
data/nng-1.3.2+git201005/tests/httpserver.c:198:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     urlstr[48];
data/nng-1.3.2+git201005/tests/httpserver.c:260:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char        chunk[256];
data/nng-1.3.2+git201005/tests/httpserver.c:280:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				So(atoi(ptr) == (int) strlen(doc1));
data/nng-1.3.2+git201005/tests/httpserver.c:295:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     urlstr[32];
data/nng-1.3.2+git201005/tests/httpserver.c:344:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:362:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:380:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:398:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:412:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:429:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:451:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:473:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:497:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     urlstr[32];
data/nng-1.3.2+git201005/tests/httpserver.c:547:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:565:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:583:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:601:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:615:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:632:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:654:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:676:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:700:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     urlstr[32];
data/nng-1.3.2+git201005/tests/httpserver.c:758:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:776:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char     fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:795:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     urlstr[32];
data/nng-1.3.2+git201005/tests/httpserver.c:815:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:820:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          txdata[5];
data/nng-1.3.2+git201005/tests/httpserver.c:842:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:866:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     urlstr[32];
data/nng-1.3.2+git201005/tests/httpserver.c:879:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:913:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:949:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:954:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          txdata[5];
data/nng-1.3.2+git201005/tests/httpserver.c:985:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     urlstr[32];
data/nng-1.3.2+git201005/tests/httpserver.c:1004:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          fullurl[256];
data/nng-1.3.2+git201005/tests/httpserver.c:1009:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char          txdata[5];
data/nng-1.3.2+git201005/tests/ipcsupp.c:26:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char                 url[64];
data/nng-1.3.2+git201005/tests/ipcsupp.c:85:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char         buf1[5];
data/nng-1.3.2+git201005/tests/ipcsupp.c:86:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char         buf2[5];
data/nng-1.3.2+git201005/tests/ipcsupp.c:103:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(buf1, "TEST", 5);
data/nng-1.3.2+git201005/tests/message.c:152:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char chunk[1024];
data/nng-1.3.2+git201005/tests/multistress.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/multistress.c:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        buf[32];
data/nng-1.3.2+git201005/tests/multistress.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/multistress.c:329:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/multistress.c:779:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    ((tmo = atoi(str)) < 1)) {
data/nng-1.3.2+git201005/tests/multistress.c:785:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    ((ncases = atoi(str)) < 1)) {
data/nng-1.3.2+git201005/tests/options.c:31:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[6];
data/nng-1.3.2+git201005/tests/options.c:56:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[6];
data/nng-1.3.2+git201005/tests/options.c:81:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[3];
data/nng-1.3.2+git201005/tests/options.c:100:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[3];
data/nng-1.3.2+git201005/tests/options.c:119:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[3];
data/nng-1.3.2+git201005/tests/options.c:138:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[3];
data/nng-1.3.2+git201005/tests/options.c:152:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[3];
data/nng-1.3.2+git201005/tests/options.c:166:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[5];
data/nng-1.3.2+git201005/tests/options.c:185:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[1];
data/nng-1.3.2+git201005/tests/options.c:196:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[2];
data/nng-1.3.2+git201005/tests/options.c:208:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *av[7];
data/nng-1.3.2+git201005/tests/pipe.c:113: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       addr[64];
data/nng-1.3.2+git201005/tests/pipe.c:122:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(addr, "inproc://test%d", cnt++);
data/nng-1.3.2+git201005/tests/reconnect.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/tests/reconnect.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         addr[64];
data/nng-1.3.2+git201005/tests/reconnect.c:88:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/tests/reconnect.c:131:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/nng-1.3.2+git201005/tests/reqstress.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        buf[32];
data/nng-1.3.2+git201005/tests/reqstress.c:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/reqstress.c:276:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    ((tmo = atoi(str)) < 1)) {
data/nng-1.3.2+git201005/tests/reqstress.c:283:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    ((ncases = atoi(str)) < 1)) {
data/nng-1.3.2+git201005/tests/resolv.c:24:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[256];
data/nng-1.3.2+git201005/tests/resolv.c:38:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[256];
data/nng-1.3.2+git201005/tests/set_recvmaxsize.c:25:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SNDBUFSIZE];
data/nng-1.3.2+git201005/tests/set_recvmaxsize.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         rcvbuf[RCVBUFSIZE];
data/nng-1.3.2+git201005/tests/sock.c:118:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       name[128]; // 64 is max
data/nng-1.3.2+git201005/tests/sock.c:158:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       name[256]; // 64 is max
data/nng-1.3.2+git201005/tests/sock.c:168:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(name, "hello");
data/nng-1.3.2+git201005/tests/sock.c:379:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         url[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/tcp.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/tcp.c:79:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/tcp.c:121:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/tcpsupp.c: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 uri[64];
data/nng-1.3.2+git201005/tests/tcpsupp.c:101:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char         buf1[5];
data/nng-1.3.2+git201005/tests/tcpsupp.c:102:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char         buf2[5];
data/nng-1.3.2+git201005/tests/tcpsupp.c:149:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(buf1, "TEST", 5);
data/nng-1.3.2+git201005/tests/testutil.c:223:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (((f = fopen(pfile, "r+")) == NULL) &&
data/nng-1.3.2+git201005/tests/testutil.c:224:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    ((f = fopen(pfile, "w+")) == NULL)) {
data/nng-1.3.2+git201005/tests/testutil.c:342:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/nng-1.3.2+git201005/tests/testutil.h:102:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char   buf_[64];                                            \
data/nng-1.3.2+git201005/tests/tls.c:278:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/tls.c:290:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/tls.c:369:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/tls.c:415:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/tls.c:441:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/tls.c:487:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/trantest.h:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[NNG_MAXADDRLEN + 1];
data/nng-1.3.2+git201005/tests/trantest.h:101:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    (atoi(pstr) != 0)) {
data/nng-1.3.2+git201005/tests/trantest.h:102: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).
			trantest_port = atoi(pstr);
data/nng-1.3.2+git201005/tests/trantest.h:303:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         msgbuf[16];
data/nng-1.3.2+git201005/tests/trantest.h:410:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(nng_msg_body(send), data, size);
data/nng-1.3.2+git201005/tests/udp.c:58:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char         rbuf[1024];
data/nng-1.3.2+git201005/tests/udp.c:124:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char         rbuf1[32];
data/nng-1.3.2+git201005/tests/udp.c:125:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char         rbuf2[32];
data/nng-1.3.2+git201005/tests/udp.c:269:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(sa.s_ipc.sa_path, "/tmp/t");
data/nng-1.3.2+git201005/tests/ws.c:90:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/ws.c:109:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/ws.c:128:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/ws.c:163:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         ws_url[128];
data/nng-1.3.2+git201005/tests/wss.c:104:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ipv6[16];
data/nng-1.3.2+git201005/tests/zt.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     path1[NNG_MAXADDRLEN] = "/tmp/zt_server";
data/nng-1.3.2+git201005/tests/zt.c:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     path2[NNG_MAXADDRLEN] = "/tmp/zt_client";
data/nng-1.3.2+git201005/tests/zt.c:141:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/zt.c:190:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char       addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/zt.c:209:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         addr[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/zt.c:242:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         addr1[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/zt.c:243:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char         addr2[NNG_MAXADDRLEN];
data/nng-1.3.2+git201005/tests/zt.c:284:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         fmt[128];
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:322:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((f = fopen(path, "rb")) == NULL) {
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:397: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(na->val, a, strlen(a) + 1);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:417: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(t->val, s, strlen(s) + 1);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:710:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char           scratch[512];
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:843:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data, arg, strlen(arg) + 1);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:1120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char   ustr[256];
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:1156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char   ustr[256];
data/nng-1.3.2+git201005/src/core/message.c:57:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			j += strlen(buf);
data/nng-1.3.2+git201005/src/core/options.c:364: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).
		return (nni_copyout(str, strlen(str) + 1, dst, szp));
data/nng-1.3.2+git201005/src/core/options.h:161:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    v != NULL ? strlen(v) + 1 : 0, NNI_TYPE_STRING)); \
data/nng-1.3.2+git201005/src/core/stats.c:487:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(stat->s_name) > 0) {
data/nng-1.3.2+git201005/src/core/stats.c:492:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*lenp -= (int) strlen(*scope);
data/nng-1.3.2+git201005/src/core/stats.c:493:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*scope += strlen(*scope);
data/nng-1.3.2+git201005/src/core/stats.c:513:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = (int) strlen(buf);
data/nng-1.3.2+git201005/src/core/strs.c:32:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(src) + 1;
data/nng-1.3.2+git201005/src/core/strs.c:44:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		nni_free(s, strlen(s) + 1);
data/nng-1.3.2+git201005/src/core/url.c:104:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(out);
data/nng-1.3.2+git201005/src/core/url.c:234: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).
		size_t l = strlen(s);
data/nng-1.3.2+git201005/src/core/url.c:235:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(s, scheme, strlen(s)) != 0) {
data/nng-1.3.2+git201005/src/core/url.c:508:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(port) == 0) ||
data/nng-1.3.2+git201005/src/platform/posix/posix_file.c:329:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len    = strlen(prefix) + strlen(suffix) + 2;
data/nng-1.3.2+git201005/src/platform/posix/posix_file.c:329: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).
	len    = strlen(prefix) + strlen(suffix) + 2;
data/nng-1.3.2+git201005/src/platform/posix/posix_file.c:330: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).
	newdir = nni_alloc(strlen(prefix) + strlen(suffix) + 2);
data/nng-1.3.2+git201005/src/platform/posix/posix_file.c:330: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).
	newdir = nni_alloc(strlen(prefix) + strlen(suffix) + 2);
data/nng-1.3.2+git201005/src/platform/posix/posix_ipcdial.c:268:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(url->u_path) == 0) ||
data/nng-1.3.2+git201005/src/platform/posix/posix_ipcdial.c:269:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(url->u_path) >= NNG_MAXADDRLEN)) {
data/nng-1.3.2+git201005/src/platform/posix/posix_ipclisten.c:417:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(url->u_path) == 0) ||
data/nng-1.3.2+git201005/src/platform/posix/posix_ipclisten.c:418:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(url->u_path) >= NNG_MAXADDRLEN)) {
data/nng-1.3.2+git201005/src/platform/posix/posix_pipe.c:67:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(void) read(rfd, &val, sizeof(val));
data/nng-1.3.2+git201005/src/platform/posix/posix_pipe.c:117:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(rfd, buf, sizeof(buf)) <= 0) {
data/nng-1.3.2+git201005/src/platform/posix/posix_pollq_epoll.c:264:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				(void) read(pq->evfd, &clear, sizeof(clear));
data/nng-1.3.2+git201005/src/platform/posix/posix_rand_urandom.c:54:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, &val, sizeof(val)) != sizeof(val)) {
data/nng-1.3.2+git201005/src/platform/posix/posix_resolv_gai.c:376:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf_len = strlen(addr) + 1;
data/nng-1.3.2+git201005/src/platform/windows/win_file.c:322:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s = name + strlen(name);
data/nng-1.3.2+git201005/src/platform/windows/win_ipcdial.c:231:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(url->u_path) == 0)) {
data/nng-1.3.2+git201005/src/platform/windows/win_ipclisten.c:331:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(url->u_path) == 0)) {
data/nng-1.3.2+git201005/src/platform/windows/win_resolv.c:336:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf_len = strlen(addr) + 1;
data/nng-1.3.2+git201005/src/platform/windows/win_thread.c:344: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).
                len = strlen(name) + 1;
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_poly_test.c:23: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).
#define APPEND_STR(m, s) TEST_NNG_PASS(nng_msg_append(m, s, strlen(s)))
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_poly_test.c:25: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).
	TEST_CHECK(nng_msg_len(m) == strlen(s)); \
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_poly_test.c:26: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_CHECK(memcmp(nng_msg_body(m), s, strlen(s)) == 0)
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_test.c:23: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).
#define APPEND_STR(m, s) TEST_CHECK(nng_msg_append(m, s, strlen(s)) == 0)
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_test.c:25: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).
	TEST_CHECK(nng_msg_len(m) == strlen(s)); \
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_test.c:26: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_CHECK(memcmp(nng_msg_body(m), s, strlen(s)) == 0)
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_test.c:40: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).
	TEST_NNG_PASS(nng_msg_append(msg, "ALPHA", strlen("ALPHA") + 1));
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_test.c:43: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).
	TEST_CHECK(nng_msg_len(msg) == strlen("ALPHA") + 1);
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_test.c:48: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).
	TEST_NNG_PASS(nng_msg_append(msg, "BETA", strlen("BETA") + 1));
data/nng-1.3.2+git201005/src/protocol/pair1/pair1_test.c:51: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).
	TEST_CHECK(nng_msg_len(msg) == strlen("BETA") + 1);
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:48: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).
		rv = nni_base64_encode(dec, strlen(dec), buf, 1024);
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:50: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).
		TEST_CHECK(rv == (int) strlen(cases[i].encoded));
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:70: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).
		rv = nni_base64_decode(enc, strlen(enc), (void *) buf, 1024);
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:72: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).
		TEST_CHECK(rv == (int) strlen(cases[i].decoded));
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:92: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).
		               dec, strlen(dec), buf, strlen(enc) - 1) == -1);
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:92: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).
		               dec, strlen(dec), buf, strlen(enc) - 1) == -1);
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:93: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).
		TEST_CHECK(nni_base64_encode(dec, strlen(dec), buf, 0) == -1);
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:96: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).
		               enc, strlen(enc), buf, strlen(dec) - 1) == -1);
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:96: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).
		               enc, strlen(enc), buf, strlen(dec) - 1) == -1);
data/nng-1.3.2+git201005/src/supplemental/base64/base64_test.c:97: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).
		TEST_CHECK(nni_base64_encode(enc, strlen(enc), buf, 0) == -1);
data/nng-1.3.2+git201005/src/supplemental/http/http_client.c:116:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(url->u_hostname) == 0) {
data/nng-1.3.2+git201005/src/supplemental/http/http_msg.c:154: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).
			nni_free(h->value, strlen(h->value) + 1);
data/nng-1.3.2+git201005/src/supplemental/http/http_msg.c:451: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).
	end = val + strlen(val);
data/nng-1.3.2+git201005/src/supplemental/http/http_msg.c:1053: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).
	    ((rv = nni_http_res_copy_data(res, html, strlen(html))) != 0)) {
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:107: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).
	if ((uri == NULL) || (strlen(uri) == 0) || (strcmp(uri, "/") == 0)) {
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:172:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(h->uri) == 0) {
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:408: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).
	if ((nni_strncasecmp(path, "http://", strlen("http://")) == 0) ||
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:409: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).
	    (nni_strncasecmp(path, "https://", strlen("https://")) == 0)) {
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:454:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return ((strlen(path) != 0) ? path : "/");
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:537:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(h->host);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:624:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	urisz = strlen(val) + 1;
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:629:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uri, val, urisz);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:648:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(h->uri);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1119:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(html);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1171:10:  [1] (buffer) strlen:
  Does not handle 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(body);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1195:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((((len = strlen(h->uri)) > 0) && (h->uri[0] != '/')) ||
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1230:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len2 = strlen(h2->uri);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1274:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len2 = strlen(h2->uri);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1359: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).
	size_t l1 = strlen(path);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1361:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t l2 = strlen(content_map[i].ext);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1518:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(base);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1529:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pnsz = (strlen(path) + strlen(uri) + 2) * strlen(NNG_PLATFORM_DIR_SEP);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1529: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).
	pnsz = (strlen(path) + strlen(uri) + 2) * strlen(NNG_PLATFORM_DIR_SEP);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1529: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).
	pnsz = (strlen(path) + strlen(uri) + 2) * strlen(NNG_PLATFORM_DIR_SEP);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1530:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pnsz += strlen("index.html") + 1; // +1 for term nul
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1539:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	dst = pn + strlen(pn);
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1566:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pn[strlen(pn) - 1] = '\0'; // index.html -> index.htm
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1688: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).
	if (strncmp(uri, base, strlen(base)) == 0) {
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1689: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).
		rv = nni_asprintf(&loc, "%s%s", hr->where, uri + strlen(base));
data/nng-1.3.2+git201005/src/supplemental/http/http_server.c:1714: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).
	    ((rv = nni_http_res_copy_data(r, html, strlen(html))) != 0)) {
data/nng-1.3.2+git201005/src/supplemental/sha1/sha1_test.c:47:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t       slen = strlen(testarray[i]);
data/nng-1.3.2+git201005/src/supplemental/tcp/tcp.c:269: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).
	if (((p = url->u_port) == NULL) || (strlen(p) == 0)) {
data/nng-1.3.2+git201005/src/supplemental/tcp/tcp.c:273:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(p) == 0) || (strlen(url->u_hostname) == 0)) {
data/nng-1.3.2+git201005/src/supplemental/tcp/tcp.c:273:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(p) == 0) || (strlen(url->u_hostname) == 0)) {
data/nng-1.3.2+git201005/src/supplemental/tls/mbedtls/tls.c:378:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(certs) + 1;
data/nng-1.3.2+git201005/src/supplemental/tls/mbedtls/tls.c:384:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(crl) + 1;
data/nng-1.3.2+git201005/src/supplemental/tls/mbedtls/tls.c:410:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(cert) + 1;
data/nng-1.3.2+git201005/src/supplemental/tls/mbedtls/tls.c:417:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(key) + 1;
data/nng-1.3.2+git201005/src/supplemental/tls/mbedtls/tls.c:419: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).
            pass != NULL ? strlen(pass) : 0);
data/nng-1.3.2+git201005/src/supplemental/util/options.c:79:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(opts[x].o_name) == l) {
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:36: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).
#define startswith(s, t) (strncmp(s, t, strlen(t)) == 0)
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:247:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	duplen = strlen(dupstr) + 1; // so we can free it later
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:297:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(word);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:328:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(key) != 24) {
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:1965:10:  [1] (buffer) strlen:
  Does not handle 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 += strlen(NNG_OPT_WS_RESPONSE_HEADER);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:2032:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(host) == 0) {
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:2431:10:  [1] (buffer) strlen:
  Does not handle 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 += strlen(NNG_OPT_WS_REQUEST_HEADER);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:2702:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	nm += strlen(NNG_OPT_WS_REQUEST_HEADER);
data/nng-1.3.2+git201005/src/supplemental/websocket/websocket.c:2715:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	nm += strlen(NNG_OPT_WS_RESPONSE_HEADER);
data/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c:172:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	So(strlen(buf) == len - 1);
data/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c:188:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	So(strlen(buf) == len - 1);
data/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c:208: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_NNG_PASS(nni_file_put(pth, cert, strlen(cert)));
data/nng-1.3.2+git201005/src/supplemental/websocket/wssfile_test.c:227:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	TEST_NNG_PASS(nni_file_put(pth, certkey, strlen(certkey)));
data/nng-1.3.2+git201005/src/transport/tcp/tcp.c:881:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(url->u_path) != 0) && (strcmp(url->u_path, "/") != 0)) {
data/nng-1.3.2+git201005/src/transport/tcp/tcp.c:885: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).
	    (url->u_query != NULL) || (strlen(url->u_hostname) == 0) ||
data/nng-1.3.2+git201005/src/transport/tcp/tcp.c:886:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(url->u_port) == 0)) {
data/nng-1.3.2+git201005/src/transport/tcp/tcp.c:924:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(url->u_path) != 0) && (strcmp(url->u_path, "/") != 0)) {
data/nng-1.3.2+git201005/src/transport/tls/tls.c:857:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(url->u_path) != 0) && (strcmp(url->u_path, "/") != 0)) {
data/nng-1.3.2+git201005/src/transport/tls/tls.c:861: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).
	    (url->u_query != NULL) || (strlen(url->u_hostname) == 0) ||
data/nng-1.3.2+git201005/src/transport/tls/tls.c:862:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(url->u_port) == 0)) {
data/nng-1.3.2+git201005/src/transport/tls/tls.c:913:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(url->u_path) != 0) && (strcmp(url->u_path, "/") != 0)) {
data/nng-1.3.2+git201005/src/transport/tls/tls.c:928:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(host) == 0) {
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:571: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).
	NNI_ASSERT((strlen(msg) + zt_offset_err_msg) < sizeof(data));
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:578:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(msg) + zt_offset_err_msg);
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1197:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(ztn->zn_path) == 0) {
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1251:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(ztn->zn_path) == 0) {
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1463:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) > 0) {
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:1555:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(ep->ze_home) != 0) {
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:2271:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (((strlen(url->u_path) == 1) && (url->u_path[0] != '/')) ||
data/nng-1.3.2+git201005/src/transport/zerotier/zerotier.c:2272:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (strlen(url->u_path) > 1) || (url->u_fragment != NULL) ||
data/nng-1.3.2+git201005/tests/acutest.h:737:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    printf((title[strlen(title)-1] == ':') ? "%s\n" : "%s:\n", title);
data/nng-1.3.2+git201005/tests/acutest.h:820:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pattern_len = strlen(pattern);
data/nng-1.3.2+git201005/tests/acutest.h:1192:34:  [1] (buffer) strlen:
  Does not handle 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 len = strlen(opt->longname);
data/nng-1.3.2+git201005/tests/acutest.h:1254:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                            strncpy(auxbuf, badoptname, len);
data/nng-1.3.2+git201005/tests/acutest.h:1470:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n_read = read(fd, buf, sizeof(buf)-1);
data/nng-1.3.2+git201005/tests/acutest.h:1485:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            n_read = read(fd, buf+32, sizeof(buf)-1-32);
data/nng-1.3.2+git201005/tests/aio.c:152:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	TEST_NNG_PASS(nng_msg_append(m, "hello", strlen("hello")));
data/nng-1.3.2+git201005/tests/aio.c:166: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).
	TEST_CHECK(nng_msg_len(m) == strlen("hello"));
data/nng-1.3.2+git201005/tests/aio.c:167: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).
	TEST_CHECK(memcmp(nng_msg_body(m), "hello", strlen("hello")) == 0);
data/nng-1.3.2+git201005/tests/bus.c:19: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).
#define APPENDSTR(m, s) nng_msg_append(m, s, strlen(s))
data/nng-1.3.2+git201005/tests/bus.c:21: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).
	So(nng_msg_len(m) == strlen(s)); \
data/nng-1.3.2+git201005/tests/bus.c:22: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).
	So(memcmp(nng_msg_body(m), s, strlen(s)) == 0)
data/nng-1.3.2+git201005/tests/compat_testutil.c:125:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	data_len = strlen(data);
data/nng-1.3.2+git201005/tests/compat_testutil.c:148:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	data_len = strlen(data);
data/nng-1.3.2+git201005/tests/convey.c:704: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).
	log->log_length += strlen(log->log_buf + log->log_length);
data/nng-1.3.2+git201005/tests/device.c:20: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).
#define APPENDSTR(m, s) nng_msg_append(m, s, strlen(s))
data/nng-1.3.2+git201005/tests/device.c:22: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).
	So(nng_msg_len(m) == strlen(s)); \
data/nng-1.3.2+git201005/tests/device.c:23: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).
	So(memcmp(nng_msg_body(m), s, strlen(s)) == 0)
data/nng-1.3.2+git201005/tests/httpserver.c:218:10:  [1] (buffer) strlen:
  Does not handle 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(doc1), "text/html") == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:280: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).
				So(atoi(ptr) == (int) strlen(doc1));
data/nng-1.3.2+git201005/tests/httpserver.c:282:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				iov.iov_len = strlen(doc1);
data/nng-1.3.2+git201005/tests/httpserver.c:288: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).
				So(nng_aio_count(aio) == strlen(doc1));
data/nng-1.3.2+git201005/tests/httpserver.c:289: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).
				So(memcmp(chunk, doc1, strlen(doc1)) == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:316: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).
		So(nni_file_put(file1, doc1, strlen(doc1)) == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:317: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).
		So(nni_file_put(file2, doc2, strlen(doc2)) == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:318: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).
		So(nni_file_put(file3, doc3, strlen(doc3)) == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:354:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc1));
data/nng-1.3.2+git201005/tests/httpserver.c:372:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc3));
data/nng-1.3.2+git201005/tests/httpserver.c:390:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc2));
data/nng-1.3.2+git201005/tests/httpserver.c:422:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc4));
data/nng-1.3.2+git201005/tests/httpserver.c:518: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).
		So(nni_file_put(file1, doc1, strlen(doc1)) == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:519: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).
		So(nni_file_put(file2, doc2, strlen(doc2)) == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:520: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).
		So(nni_file_put(file3, doc3, strlen(doc3)) == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:557:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc1));
data/nng-1.3.2+git201005/tests/httpserver.c:575:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc3));
data/nng-1.3.2+git201005/tests/httpserver.c:593:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc2));
data/nng-1.3.2+git201005/tests/httpserver.c:625:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc4));
data/nng-1.3.2+git201005/tests/httpserver.c:717: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).
		So(nni_file_put(file1, doc1, strlen(doc1)) == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:718: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).
		So(nni_file_put(file2, doc2, strlen(doc2)) == 0);
data/nng-1.3.2+git201005/tests/httpserver.c:768:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc1));
data/nng-1.3.2+git201005/tests/httpserver.c:786:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(doc2));
data/nng-1.3.2+git201005/tests/httpserver.c:828: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).
			nng_http_req_set_data(req, txdata, strlen(txdata));
data/nng-1.3.2+git201005/tests/httpserver.c:833:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(txdata));
data/nng-1.3.2+git201005/tests/httpserver.c:969: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).
			nng_http_req_set_data(req, txdata, strlen(txdata));
data/nng-1.3.2+git201005/tests/httpserver.c:1018: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).
			nng_http_req_set_data(req, txdata, strlen(txdata));
data/nng-1.3.2+git201005/tests/httpserver.c:1023:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(size == strlen(txdata));
data/nng-1.3.2+git201005/tests/ipcsupp.c:134:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						           strlen("ipc://")) ==
data/nng-1.3.2+git201005/tests/message.c:105: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).
			       msg, "short", strlen("short") + 1) == 0);
data/nng-1.3.2+git201005/tests/message.c:107:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(nng_msg_header_len(msg) == strlen("short") + 1);
data/nng-1.3.2+git201005/tests/message.c:109:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(nng_msg_header_len(msg) == strlen("short") + 1);
data/nng-1.3.2+git201005/tests/message.c:114: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).
			So(nng_msg_append(msg, "short", strlen("short") + 1) ==
data/nng-1.3.2+git201005/tests/message.c:117: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).
			So(nng_msg_len(msg) == strlen("short") + 1);
data/nng-1.3.2+git201005/tests/message.c:119: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).
			So(nng_msg_len(msg) == strlen("short") + 1);
data/nng-1.3.2+git201005/tests/message.c:145: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).
			So(nng_msg_append(msg, "CDEF", strlen("CDEF") + 1) ==
data/nng-1.3.2+git201005/tests/message.c:147:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(nng_msg_len(msg) == strlen("abCDEF") + 1);
data/nng-1.3.2+git201005/tests/message.c:154:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			So(nng_msg_append(msg, "abc", strlen("abc") + 1) == 0);
data/nng-1.3.2+git201005/tests/message.c:155: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).
			So(nng_msg_len(msg) == strlen("abc") + 1);
data/nng-1.3.2+git201005/tests/message.c:158:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen("abc") + 1 + sizeof(chunk));
data/nng-1.3.2+git201005/tests/message.c:171: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).
			       msg, "front", strlen("front") + 1) == 0);
data/nng-1.3.2+git201005/tests/message.c:172: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).
			So(nng_msg_append(msg, "back", strlen("back") + 1) ==
data/nng-1.3.2+git201005/tests/message.c:178: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).
			So(nng_msg_len(msg) == strlen("front"));
data/nng-1.3.2+git201005/tests/message.c:179: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).
			So(nng_msg_len(m2) == strlen("front"));
data/nng-1.3.2+git201005/tests/message.c:183: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).
			So(nng_msg_len(msg) == strlen("wayback") + 1);
data/nng-1.3.2+git201005/tests/message.c:184: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).
			So(nng_msg_len(m2) == strlen("back") + 1);
data/nng-1.3.2+git201005/tests/message.c:189: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).
			       m2, "2basics", strlen("2basics") + 1) == 0);
data/nng-1.3.2+git201005/tests/message.c:190: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).
			So(nng_msg_len(msg) == strlen("wayback") + 1);
data/nng-1.3.2+git201005/tests/message.c:192: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).
			So(nng_msg_len(m2) == strlen("back2basics") + 1);
data/nng-1.3.2+git201005/tests/multistress.c:163: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).
	    ((rv = nng_msg_append(msg, c->buf, strlen(c->buf) + 1)) != 0)) {
data/nng-1.3.2+git201005/tests/multistress.c:185: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).
	if ((nng_msg_len(msg) != (strlen(c->buf) + 1)) ||
data/nng-1.3.2+git201005/tests/pipe.c:22: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).
#define APPENDSTR(m, s) nng_msg_append(m, s, strlen(s))
data/nng-1.3.2+git201005/tests/pipe.c:24: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).
	So(nng_msg_len(m) == strlen(s)); \
data/nng-1.3.2+git201005/tests/pipe.c:25: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).
	So(memcmp(nng_msg_body(m), s, strlen(s)) == 0)
data/nng-1.3.2+git201005/tests/pipeline.c:21: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).
#define APPENDSTR(m, s) nng_msg_append(m, s, strlen(s))
data/nng-1.3.2+git201005/tests/pipeline.c:23: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).
	So(nng_msg_len(m) == strlen(s)); \
data/nng-1.3.2+git201005/tests/pipeline.c:24: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).
	So(memcmp(nng_msg_body(m), s, strlen(s)) == 0)
data/nng-1.3.2+git201005/tests/reqstress.c:157: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).
	    ((rv = nng_msg_append(msg, c->buf, strlen(c->buf) + 1)) != 0)) {
data/nng-1.3.2+git201005/tests/reqstress.c:179: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).
	if ((nng_msg_len(msg) != (strlen(c->buf) + 1)) ||
data/nng-1.3.2+git201005/tests/sock.c:128:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	TEST_CHECK(sz == strlen(name) + 1);
data/nng-1.3.2+git201005/tests/sock.c:147:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	TEST_CHECK(strlen(str) == 5);
data/nng-1.3.2+git201005/tests/testutil.h:98: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).
	TEST_NNG_PASS(nng_send(sock, string, strlen(string) + 1, 0))
data/nng-1.3.2+git201005/tests/testutil.h:107: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).
		TEST_CHECK_(sz_ == strlen(string) + 1, "length %d want %d", \
data/nng-1.3.2+git201005/tests/testutil.h:108:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    sz_, strlen(string) + 1);                               \
data/nng-1.3.2+git201005/tests/tls.c:202: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).
	if ((rv = nni_file_put(pth, cert, strlen(cert))) != 0) {
data/nng-1.3.2+git201005/tests/tls.c:237:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	rv = nni_file_put(pth, certkey, strlen(certkey));
data/nng-1.3.2+git201005/tests/trantest.h:73:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(s, t, strlen(t)) == 0) \
data/nng-1.3.2+git201005/tests/trantest.h:190: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).
		size_t l = strlen(tt->tran->tran_scheme);
data/nng-1.3.2+git201005/tests/trantest.h:275:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen("acknowledge");
data/nng-1.3.2+git201005/tests/trantest.h:281: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).
		So(nng_msg_len(recv) == strlen("acknowledge"));
data/nng-1.3.2+git201005/tests/trantest.h:317: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).
			So(nng_msg_append(send, msgbuf, strlen(msgbuf) + 1) ==
data/nng-1.3.2+git201005/tests/trantest.h:324: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).
			So(nng_msg_len(recv) == strlen(msgbuf) + 1);
data/nng-1.3.2+git201005/tests/trantest.h:330: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).
			So(nng_msg_append(send, msgbuf, strlen(msgbuf) + 1) ==
data/nng-1.3.2+git201005/tests/trantest.h:335: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).
			So(nng_msg_len(recv) == strlen(msgbuf) + 1);
data/nng-1.3.2+git201005/tests/udp.c:71:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			iov1.iov_len = strlen(msg) + 1;
data/nng-1.3.2+git201005/tests/udp.c:88: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).
			So(nng_aio_count(aio2) == strlen(msg) + 1);
data/nng-1.3.2+git201005/tests/udp.c:112:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			iov.iov_len = strlen(msg) + 1;
data/nng-1.3.2+git201005/tests/udp.c:146:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			iov1.iov_len = strlen(msg1) + 1;
data/nng-1.3.2+git201005/tests/udp.c:152:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			iov2.iov_len = strlen(msg2) + 1;
data/nng-1.3.2+git201005/tests/udp.c:201:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			iov.iov_len = strlen(msg) + 1;
data/nng-1.3.2+git201005/tests/udp.c:224:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			iov.iov_len = strlen(msg) + 1;
data/nng-1.3.2+git201005/tests/udp.c:250:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			iov.iov_len = strlen(msg) + 1;
data/nng-1.3.2+git201005/tests/ws.c:62:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	So(strlen(buf) == len - 1);
data/nng-1.3.2+git201005/tests/ws.c:78:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	So(strlen(buf) == len - 1);
data/nng-1.3.2+git201005/tests/zt.c:156:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       strlen(path1) + 1) == 0);
data/nng-1.3.2+git201005/tests/zt.c:262: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).
		       l, NNG_OPT_ZT_HOME, path1, strlen(path1) + 1) == 0);
data/nng-1.3.2+git201005/tests/zt.c:274: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).
		       d, NNG_OPT_ZT_HOME, path2, strlen(path2) + 1) == 0);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:393: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).
	    ((na->val = malloc(strlen(a) + 1)) == NULL)) {
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:397: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).
	memcpy(na->val, a, strlen(a) + 1);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:414: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).
	    ((t->val = malloc(strlen(s) + 1)) == NULL)) {
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:417:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(t->val, s, strlen(s) + 1);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:840: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).
			if ((data = malloc(strlen(arg) + 1)) == NULL) {
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:843: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).
			memcpy(data, arg, strlen(arg) + 1);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:844: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).
			datalen = strlen(arg);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:1065: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).
		    sock, NNG_OPT_SUB_SUBSCRIBE, t->val, strlen(t->val));
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:1111:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    zthome, strlen(zthome) + 1);
data/nng-1.3.2+git201005/tools/nngcat/nngcat.c:1147:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    zthome, strlen(zthome) + 1);

ANALYSIS SUMMARY:

Hits = 643
Lines analyzed = 88575 in approximately 1.87 seconds (47346 lines/second)
Physical Source Lines of Code (SLOC) = 66702
Hits@level = [0] 373 [1] 236 [2] 355 [3]  16 [4]  34 [5]   2
Hits@level+ = [0+] 1016 [1+] 643 [2+] 407 [3+]  52 [4+]  36 [5+]   2
Hits/KSLOC@level+ = [0+] 15.2319 [1+] 9.63989 [2+] 6.10177 [3+] 0.779587 [4+] 0.539714 [5+] 0.0299841
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.