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/qpid-proton-0.22.0/tools/check_abi/expand_types.cpp
Examining data/qpid-proton-0.22.0/tools/check_abi/cppabi.cpp
Examining data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-send.c
Examining data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-recv.c
Examining data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-send.c
Examining data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-recv.c
Examining data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-common.h
Examining data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-common.c
Examining data/qpid-proton-0.22.0/tests/tools/apps/c/include/pncompat/misc_defs.h
Examining data/qpid-proton-0.22.0/tests/tools/apps/c/include/pncompat/internal/getopt.h
Examining data/qpid-proton-0.22.0/tests/tools/apps/c/include/pncompat/internal/getopt.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/test_tools.h
Examining data/qpid-proton-0.22.0/proton-c/src/tests/test_handler.h
Examining data/qpid-proton-0.22.0/proton-c/src/tests/ssl.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/refcount.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/reactor.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/parse-url.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/object.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/message.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/libFuzzingEngine.h
Examining data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-url.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-sniff-header.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-proactor-receive.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-message-decode.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-connection-driver.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/StandaloneFuzzTargetMain.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/StandaloneFuzzTargetInit.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/event.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/engine.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/data.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c
Examining data/qpid-proton-0.22.0/proton-c/src/tests/condition.c
Examining data/qpid-proton-0.22.0/proton-c/src/ssl/ssl_stub.c
Examining data/qpid-proton-0.22.0/proton-c/src/ssl/ssl-internal.h
Examining data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c
Examining data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c
Examining data/qpid-proton-0.22.0/proton-c/src/sasl/sasl.c
Examining data/qpid-proton-0.22.0/proton-c/src/sasl/sasl-internal.h
Examining data/qpid-proton-0.22.0/proton-c/src/sasl/default_sasl.c
Examining data/qpid-proton-0.22.0/proton-c/src/sasl/cyrus_stub.c
Examining data/qpid-proton-0.22.0/proton-c/src/sasl/cyrus_sasl.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/timer.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/selector.h
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/selectable.h
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/selectable.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/reactor.h
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/reactor.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/write_pipeline.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/selector.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.h
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/io.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/io/posix/selector.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/io/posix/io.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/io.h
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/handler.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/connection.c
Examining data/qpid-proton-0.22.0/proton-c/src/reactor/acceptor.c
Examining data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c
Examining data/qpid-proton-0.22.0/proton-c/src/proactor/proactor-internal.h
Examining data/qpid-proton-0.22.0/proton-c/src/proactor/proactor-internal.c
Examining data/qpid-proton-0.22.0/proton-c/src/proactor/netaddr-internal.h
Examining data/qpid-proton-0.22.0/proton-c/src/proactor/libuv.c
Examining data/qpid-proton-0.22.0/proton-c/src/proactor/epoll.c
Examining data/qpid-proton-0.22.0/proton-c/src/platform/platform_fmt.h
Examining data/qpid-proton-0.22.0/proton-c/src/platform/platform.h
Examining data/qpid-proton-0.22.0/proton-c/src/platform/platform.c
Examining data/qpid-proton-0.22.0/proton-c/src/messenger/transform.h
Examining data/qpid-proton-0.22.0/proton-c/src/messenger/transform.c
Examining data/qpid-proton-0.22.0/proton-c/src/messenger/subscription.h
Examining data/qpid-proton-0.22.0/proton-c/src/messenger/subscription.c
Examining data/qpid-proton-0.22.0/proton-c/src/messenger/store.h
Examining data/qpid-proton-0.22.0/proton-c/src/messenger/store.c
Examining data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.h
Examining data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c
Examining data/qpid-proton-0.22.0/proton-c/src/handlers/iohandler.c
Examining data/qpid-proton-0.22.0/proton-c/src/handlers/handshaker.c
Examining data/qpid-proton-0.22.0/proton-c/src/handlers/flowcontroller.c
Examining data/qpid-proton-0.22.0/proton-c/src/extra/url.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/util.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/util.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/types.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/transport.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/transport.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/object/string.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/object/record.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/object/object.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/object/map.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/object/list.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/object/iterator.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/message.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/message-internal.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/max_align.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/log_private.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/log.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/framing.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/framing.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/event.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/error.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/engine.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/engine-internal.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/encoder.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/encoder.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/dispatcher.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/dispatcher.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/dispatch_actions.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/decoder.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/decoder.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/data.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/connection_driver.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/config.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/codec.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/buffer.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/buffer.c
Examining data/qpid-proton-0.22.0/proton-c/src/core/autodetect.h
Examining data/qpid-proton-0.22.0/proton-c/src/core/autodetect.c
Examining data/qpid-proton-0.22.0/proton-c/src/compiler/msvc/snprintf.c
Examining data/qpid-proton-0.22.0/proton-c/include/proton/url.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/types.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/type_compat.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/transport.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/terminus.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/ssl.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/session.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/selectable.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/sasl.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/sasl-plugin.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/reactor.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/proactor.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/object.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/netaddr.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/messenger.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/message.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/log.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/listener.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/link.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/import_export.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/handlers.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/event.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/error.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/engine.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/disposition.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/delivery.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/connection_driver.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/connection.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/condition.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/codec.h
Examining data/qpid-proton-0.22.0/proton-c/include/proton/cid.h
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/work_queue.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/value_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/value.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/uuid.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/url_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/url.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/types_internal.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/type_id.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/transport.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/transfer.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/tracker.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/timestamp.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/test_bits.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/terminus.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/target.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/ssl_domain.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/ssl.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/source.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/session_options.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/session.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/sender_options.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/sender.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/scalar_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/scalar_base.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/sasl.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/returned.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/reconnect_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/reconnect_options_impl.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/reconnect_options.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/receiver_options.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/receiver.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/proton_bits.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/proton_bits.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/proactor_work_queue_impl.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/proactor_container_impl.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/proactor_container_impl.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/object.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/node_options.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/msg.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/messaging_adapter.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/messaging_adapter.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/message_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/message.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/map_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/map.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/listener.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/link_namer.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/link_namer.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/link.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/handler.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/error_condition.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/error.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/endpoint.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/encoder.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/duration.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/delivery.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/decoder.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/decimal.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/data.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/contexts.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/contexts.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/container_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/container.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection_options.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection_driver_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection_driver.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/codec_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/byte_array.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/binary.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/interop_test.cpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/scalar_test.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/work_queue.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/value.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/uuid.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/url.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/types_fwd.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/types.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/type_id.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/transport.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/transfer.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/tracker.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/timestamp.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/thread_safe.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/terminus.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/target_options.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/target.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/symbol.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/ssl.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/source_options.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/source.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/session_options.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/session.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/sender_options.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/sender.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/scalar_base.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/scalar.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/sasl.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/returned.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/reconnect_options.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/receiver_options.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/receiver.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/namespaces.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/messaging_handler.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/message_id.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/message.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/map.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/listener.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/listen_handler.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/link.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/io/connection_driver.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/internal/type_traits.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/internal/pn_unique_ptr.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/internal/object.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/internal/export.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/internal/data.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/internal/config.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/internal/comparable.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/fwd.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/function.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/error_condition.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/error.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/endpoint.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/duration.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/delivery_mode.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/delivery.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/default_container.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/decimal.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/container.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/connection_options.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/connection.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/codec/vector.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/codec/unordered_map.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/codec/map.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/codec/list.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/codec/forward_list.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/codec/encoder.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/codec/deque.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/codec/decoder.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/codec/common.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/byte_array.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/binary.hpp
Examining data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/annotation_key.hpp
Examining data/qpid-proton-0.22.0/examples/cpp/ssl_client_cert.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/ssl.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/simple_send.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/simple_recv.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/simple_connect.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/service_bus.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/server_direct.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/server.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/selected_recv.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/scheduled_send_03.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/scheduled_send.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/reconnect_client.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/queue_browser.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/options.hpp
Examining data/qpid-proton-0.22.0/examples/cpp/multithreaded_client_flow_control.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/multithreaded_client.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/message_properties.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/helloworld.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/flow_control.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/fake_cpp11.hpp
Examining data/qpid-proton-0.22.0/examples/cpp/encode_decode.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/direct_send.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/direct_recv.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/connection_options.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/colour_send.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/client.cpp
Examining data/qpid-proton-0.22.0/examples/cpp/broker.cpp
Examining data/qpid-proton-0.22.0/examples/c/thread.h
Examining data/qpid-proton-0.22.0/examples/c/send.c
Examining data/qpid-proton-0.22.0/examples/c/send-ssl.c
Examining data/qpid-proton-0.22.0/examples/c/send-abort.c
Examining data/qpid-proton-0.22.0/examples/c/receive.c
Examining data/qpid-proton-0.22.0/examples/c/direct.c
Examining data/qpid-proton-0.22.0/examples/c/broker.c

FINAL RESULTS:

data/qpid-proton-0.22.0/proton-c/include/proton/object.h:286:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 2, 3)))
data/qpid-proton-0.22.0/proton-c/include/proton/object.h:292:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 2, 3)))
data/qpid-proton-0.22.0/proton-c/src/core/log.c:52:5:  [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/qpid-proton-0.22.0/proton-c/src/core/util.c:141:10:  [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).
  return strcpy(dest, src);
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:542:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(generated, uuid_fmt,
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1873:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "amqp://%s/%s", mng->name, address + 2);
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1881:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "amqp://%s", mng->name);
data/qpid-proton-0.22.0/proton-c/src/platform/platform.c:42:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/qpid-proton-0.22.0/proton-c/src/platform/platform.h:73:22:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define pni_snprintf snprintf
data/qpid-proton-0.22.0/proton-c/src/platform/platform.h:74:23:  [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.
#define pni_vsnprintf vsnprintf
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:241:5:  [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/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:541:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/io.c:60:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.c:76:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/write_pipeline.c:60:5:  [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/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:1343: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( hostname, ssl->peer_hostname );
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:369:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:380:5:  [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/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:393:5:  [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/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:896: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( hostname, ssl->peer_hostname );
data/qpid-proton-0.22.0/proton-c/src/tests/test_tools.h:60:5:  [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/qpid-proton-0.22.0/tests/tools/apps/c/msgr-common.c:41:12:  [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).
    if (r) strcpy(r,src);
data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-common.c:172:9:  [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( stdout, fmt, ap );
data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-recv.c:90:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
            if (sscanf( optarg, "%" SCNu64, &opts->msg_count ) != 1) {
data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-send.c:95:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
            if (sscanf( optarg, "%" SCNu64, &opts->msg_count ) != 1) {
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-recv.c:403:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
            if (sscanf( optarg, "%" SCNu64, &opts->msg_count ) != 1) {
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-send.c:333:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
            if (sscanf( optarg, "%" SCNu64, &opts->msg_count ) != 1) {
data/qpid-proton-0.22.0/examples/c/thread.h:61:31:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#define pthread_mutex_lock(m) EnterCriticalSection(m)
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/uuid.hpp:52:31:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    PN_CPP_EXTERN static uuid random();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/container.cpp:37:33:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    impl_(new impl(*this, uuid::random().str(), &h)) {}
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/container.cpp:41:33:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    impl_(new impl(*this, uuid::random().str())) {}
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/scalar_test.cpp:48:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    uuid r = uuid::random();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/session.cpp:69:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    return ln ? ln->link_name() : uuid::random().str();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/uuid.cpp:50:14:  [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.
        std::srand(((secs*181)*((pid-83)*359))%104729);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/uuid.cpp:71:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
uuid uuid::random() {
data/qpid-proton-0.22.0/proton-c/src/core/util.c:131:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *v = getenv(name);
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:521:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(nowish ^ (pid<<16));
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:250:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *env = getenv("PNI_WRITE_BUFFERS"); // Internal: for debugging
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:258:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv("PNI_LB_BUFSIZE"); // Internal: for debugging
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:1417:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *override = getenv("PN_SHUTDOWN_GRACE");
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:1556:59:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    csguard(CRITICAL_SECTION *cs) : cs_(cs), set_(true) { EnterCriticalSection(cs_); }
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.c:999:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *override = getenv("PN_SHUTDOWN_GRACE");
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/write_pipeline.c:69:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *env = getenv("PNI_WRITE_BUFFERS"); // Internal: for debugging
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/write_pipeline.c:77:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env = getenv("PNI_LB_BUFSIZE"); // Internal: for debugging
data/qpid-proton-0.22.0/proton-c/src/sasl/cyrus_sasl.c:215:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *config_dir = getenv("PN_SASL_CONFIG_PATH");
data/qpid-proton-0.22.0/proton-c/src/sasl/cyrus_sasl.c:235:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *config_dir = getenv("PN_SASL_CONFIG_PATH");
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:1533:53:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
static inline void pni_mutex_init(pni_mutex_t *m) { InitializeCriticalSection(m); }
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:1534:53:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
static inline void pni_mutex_lock(pni_mutex_t *m) { EnterCriticalSection(m); }
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:70:59:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    csguard(CRITICAL_SECTION *cs) : cs_(cs), set_(true) { EnterCriticalSection(cs_); }
data/qpid-proton-0.22.0/proton-c/src/tests/object.c:1004:3:  [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(seed);
data/qpid-proton-0.22.0/tests/tools/apps/c/include/pncompat/internal/getopt.c:97:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int argc, char** argv, char* optstr)
data/qpid-proton-0.22.0/tests/tools/apps/c/include/pncompat/internal/getopt.c:143:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		else if(optstr[0] == '+' || getenv("POSIXLY_CORRECT"))
data/qpid-proton-0.22.0/tests/tools/apps/c/include/pncompat/internal/getopt.h:51:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int argc, char** argv, char* optstr);
data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-recv.c:85:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv,
data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-send.c:90:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv,
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-recv.c:390:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv,
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-send.c:322:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv,
data/qpid-proton-0.22.0/examples/c/broker.c:90: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(q->name, name, strlen(name)+1);
data/qpid-proton-0.22.0/examples/c/broker.c:292: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 port[256];             /* Get the listening port */
data/qpid-proton-0.22.0/examples/c/broker.c:457: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[PN_MAX_ADDR];
data/qpid-proton-0.22.0/examples/c/direct.c:233: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 port[256];             /* Get the listening port */
data/qpid-proton-0.22.0/examples/c/direct.c:330: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[PN_MAX_ADDR];
data/qpid-proton-0.22.0/examples/c/direct.c:335:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  app.message_count = (argc > 4) ? atoi(argv[4]) : 10;
data/qpid-proton-0.22.0/examples/c/receive.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 addr[PN_MAX_ADDR];
data/qpid-proton-0.22.0/examples/c/receive.c:191:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  app.message_count = (argc > 4) ? atoi(argv[4]) : 10;
data/qpid-proton-0.22.0/examples/c/send-abort.c:80: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 data[MSG_SIZE + 11] = {0};
data/qpid-proton-0.22.0/examples/c/send-abort.c:211: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[PN_MAX_ADDR];
data/qpid-proton-0.22.0/examples/c/send-abort.c:217:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  app.message_count = (argc > 4) ? atoi(argv[4]) : 10;
data/qpid-proton-0.22.0/examples/c/send-ssl.c:132: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.
       char name[1024];
data/qpid-proton-0.22.0/examples/c/send-ssl.c:217: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[PN_MAX_ADDR];
data/qpid-proton-0.22.0/examples/c/send-ssl.c:225:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  app.message_count = (argc > 4) ? atoi(argv[4]) : 10;
data/qpid-proton-0.22.0/examples/c/send.c:189: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[PN_MAX_ADDR];
data/qpid-proton-0.22.0/examples/c/send.c:195:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  app.message_count = (argc > 4) ? atoi(argv[4]) : 10;
data/qpid-proton-0.22.0/examples/cpp/broker.cpp:221: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).
    sender_.open(proton::sender_options()
data/qpid-proton-0.22.0/examples/cpp/broker.cpp:267:19:  [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).
        receiver_.open(proton::receiver_options()
data/qpid-proton-0.22.0/examples/cpp/broker.cpp:330:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        c.open();            // Accept the connection
data/qpid-proton-0.22.0/examples/cpp/multithreaded_client.cpp:150:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int n_messages = atoi(argv[3]);
data/qpid-proton-0.22.0/examples/cpp/multithreaded_client_flow_control.cpp:259:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int n_messages = atoi(argv[3]);
data/qpid-proton-0.22.0/examples/cpp/multithreaded_client_flow_control.cpp:260:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int n_threads = atoi(argv[4]);
data/qpid-proton-0.22.0/examples/cpp/reconnect_client.cpp:131:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int message_count = atoi(argv[3]);
data/qpid-proton-0.22.0/examples/cpp/server_direct.cpp:84:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            sender.open(proton::sender_options().source(proton::source_options().address(addr)));
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/connection.hpp:84:24:  [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).
    PN_CPP_EXTERN void open();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/connection.hpp:87:24:  [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).
    PN_CPP_EXTERN void open(const connection_options&);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/receiver.hpp:53:24:  [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).
    PN_CPP_EXTERN void open();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/receiver.hpp:56:24:  [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).
    PN_CPP_EXTERN void open(const receiver_options &opts);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/sender.hpp:52:24:  [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).
    PN_CPP_EXTERN void open();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/sender.hpp:55:24:  [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).
    PN_CPP_EXTERN void open(const sender_options &opts);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/session.hpp:61:24:  [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).
    PN_CPP_EXTERN void open();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/session.hpp:64:24:  [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).
    PN_CPP_EXTERN void open(const session_options &opts);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection.cpp:51:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void connection::open() {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection.cpp:52:5:  [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).
    open(connection_options());
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection.cpp:55:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void connection::open(const connection_options &opts) {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection.cpp:115:16:  [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 (!!s) s.open(opts);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection_driver.cpp:80:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    connection().open();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/connection_driver_test.cpp:230:22:  [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).
    d.b.connection().open();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/handler.cpp:69:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        l.open(l.connection().receiver_options());
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/handler.cpp:77:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        l.open(l.connection().sender_options());
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/listener.cpp:43:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char port[16] = "";
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/listener.cpp:45:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int i = atoi(port);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/proactor_container_impl.cpp:194:23:  [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).
    make_wrapper(pnc).open(opts);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/proactor_container_impl.cpp:210:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char caddr[PN_MAX_ADDR];
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/proactor_container_impl.cpp:241:23:  [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).
    make_wrapper(pnc).open(*cc.connection_options_);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/receiver.cpp:42:16:  [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).
void receiver::open() {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/receiver.cpp:46:16:  [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).
void receiver::open(const receiver_options &opts) {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/reconnect_test.cpp:106:16:  [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).
        else c.open();
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/sender.cpp:43:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void sender::open() {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/sender.cpp:47:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void sender::open(const sender_options &opts) {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/session.cpp:39:15:  [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).
void session::open() {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/session.cpp:43:15:  [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).
void session::open(const session_options &opts) {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/session.cpp:82:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    snd.open(so);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/session.cpp:96:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rcv.open(ro);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/ssl.cpp:30:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/qpid-proton-0.22.0/proton-c/bindings/cpp/src/ssl.cpp:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/url.cpp:66: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 esc[3];
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/url.cpp:135:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (open) {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/url.cpp:136:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    char *close = std::strchr(open, ']');
data/qpid-proton-0.22.0/proton-c/include/proton/types.h:195: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 bytes[16];
data/qpid-proton-0.22.0/proton-c/include/proton/types.h:204: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 bytes[16];
data/qpid-proton-0.22.0/proton-c/src/core/engine.c:56:69:  [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).
static pn_event_type_t endpoint_event(pn_endpoint_type_t type, bool open) {
data/qpid-proton-0.22.0/proton-c/src/core/engine.c:59: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).
    return open ? PN_CONNECTION_LOCAL_OPEN : PN_CONNECTION_LOCAL_CLOSE;
data/qpid-proton-0.22.0/proton-c/src/core/engine.c:61: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).
    return open ? PN_SESSION_LOCAL_OPEN : PN_SESSION_LOCAL_CLOSE;
data/qpid-proton-0.22.0/proton-c/src/core/engine.c:64: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).
    return open ? PN_LINK_LOCAL_OPEN : PN_LINK_LOCAL_CLOSE;
data/qpid-proton-0.22.0/proton-c/src/core/engine.c:1625: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 tag[1024];
data/qpid-proton-0.22.0/proton-c/src/core/engine.c:2159: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 text[1024];
data/qpid-proton-0.22.0/proton-c/src/core/error.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 text[1024];
data/qpid-proton-0.22.0/proton-c/src/core/framing.c:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bytes[8];
data/qpid-proton-0.22.0/proton-c/src/core/object/string.c:168: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(string->bytes, bytes, n*sizeof(char));
data/qpid-proton-0.22.0/proton-c/src/core/object/string.c:184: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(dst, string->bytes, string->size + 1);
data/qpid-proton-0.22.0/proton-c/src/core/transport.c:362: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 quoted[1024];
data/qpid-proton-0.22.0/proton-c/src/core/transport.c:901:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/qpid-proton-0.22.0/proton-c/src/core/transport.c:1119: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/qpid-proton-0.22.0/proton-c/src/core/transport.c:1136:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char extended[2048];
data/qpid-proton-0.22.0/proton-c/src/core/transport.c:1349: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 strbuf[128];      // avoid malloc for most link names
data/qpid-proton-0.22.0/proton-c/src/core/transport.c:2538: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 quoted[1024];
data/qpid-proton-0.22.0/proton-c/src/core/util.c:53:16:  [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.
        idx += sprintf(dst + idx, "\\x%.2x", c);
data/qpid-proton-0.22.0/proton-c/src/core/util.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 buf[256];
data/qpid-proton-0.22.0/proton-c/src/extra/url.c:39: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 esc[3];
data/qpid-proton-0.22.0/proton-c/src/extra/url.c:104:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (open) {
data/qpid-proton-0.22.0/proton-c/src/extra/url.c:105:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    char *close = strchr(open, ']');
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:333: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[1024];
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:600: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/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:983:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char error[1024];
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1138:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1139:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%i", pn_condition_redirect_port(condition));
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1862: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 stackbuf[256];
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1911: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 tag[8];
data/qpid-proton-0.22.0/proton-c/src/platform/platform.c: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 err[1024];
data/qpid-proton-0.22.0/proton-c/src/proactor/epoll.c:72:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char strerrorbuf[1024];      /* used for pstrerror message buffer */
data/qpid-proton-0.22.0/proton-c/src/proactor/epoll.c:379: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_buf[PN_MAX_ADDR];
data/qpid-proton-0.22.0/proton-c/src/proactor/epoll.c:1406: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_buf[PN_MAX_ADDR];
data/qpid-proton-0.22.0/proton-c/src/proactor/libuv.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 addr_buf[PN_MAX_ADDR];
data/qpid-proton-0.22.0/proton-c/src/proactor/netaddr-internal.h: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 host[NI_MAXHOST];
data/qpid-proton-0.22.0/proton-c/src/proactor/netaddr-internal.h: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 port[NI_MAXSERV];
data/qpid-proton-0.22.0/proton-c/src/proactor/proactor-internal.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(buf, addr, hplen+1);
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:162: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 unused_buf[1];
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:174: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 address_buffer[IOCP_SOCKADDRBUFLEN];
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:181: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 address_buffer[IOCP_SOCKADDRBUFLEN];
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:252: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).
    int sz = atoi(env);
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:260: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).
    int sz = atoi(env);
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:391: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[INET6_ADDRSTRLEN];
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:548: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[512];
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:566: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 err[1024] = {0};
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:1065: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[512];
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:1419: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).
    int grace = atoi(override);
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:1572: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[512];
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:1664: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_buf[PN_MAX_ADDR];
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:2318:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        waking = open && pc->can_wake && !pn_connection_driver_finished(&pc->driver);
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:2323: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 (open)
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:2357: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).
    if (!open) {
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:2661:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&pc->remote.ss, ai->ai_addr, ai->ai_addrlen);
data/qpid-proton-0.22.0/proton-c/src/proactor/win_iocp.c:2770: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_buf[PN_MAX_ADDR];
data/qpid-proton-0.22.0/proton-c/src/reactor/acceptor.c:41: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[1024];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/posix/io.c:44: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 host[MAX_HOST];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/posix/io.c:45: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 serv[MAX_SERV];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/io.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 err[1024] = {0};
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/io.c:66: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 host[NI_MAXHOST];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/io.c:67: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 serv[NI_MAXSERV];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.c:83: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[512];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.c:168: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 address_buffer[IOCP_SOCKADDRBUFLEN];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.c:357: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 address_buffer[IOCP_SOCKADDRBUFLEN];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.c:587: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 unused_buf[1];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.c:626: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[512];
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/iocp.c:1001: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).
    int grace = atoi(override);
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/write_pipeline.c:71: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).
    int sz = atoi(env);
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/write_pipeline.c:79: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).
    int sz = atoi(env);
data/qpid-proton-0.22.0/proton-c/src/reactor/io/windows/write_pipeline.c:210: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[INET6_ADDRSTRLEN];
data/qpid-proton-0.22.0/proton-c/src/reactor/reactor.c:455: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/qpid-proton-0.22.0/proton-c/src/sasl/sasl.c:448:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *mechs[16];
data/qpid-proton-0.22.0/proton-c/src/sasl/sasl.c:537: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 quoted[1024];
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:169:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[128];        // see "man ERR_error_string_n()"
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:210: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[256] = "Unknown error";
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:231: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 plabel[64];   /* max label length < 63 - RFC1034 */
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:232: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 slabel[64];
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:241: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( plabel, pattern, len );
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:250: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( slabel, hostname, len );
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:1427: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 bytes[64]; // sha512 uses 64 octets, we will use that as the maximum.
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:388: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[512];
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:423: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[512] = "Unknown error.";
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:1037:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ssl->in_data = (char *) recv_buffs[i].pvBuffer;
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:1041:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ssl->inbuf_extra = (char *)recv_buffs[i].pvBuffer;
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:1925:17:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      int nwc = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, passwd, pwlen, &pwUCS2[0], pwlen);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:1975: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 plabel[64];   /* max label length < 63 - RFC1034 */
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:1976: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 slabel[64];
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:1985: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( plabel, pattern, len );
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:1994: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( slabel, hostname, len );
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2190: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 name[512];
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2194:11:  [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, "[too long]");
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2243:17:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      int nwc = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, server_name, len, &nameUCS2[0], len);
data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c:174: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 body[1024] = { 0 };
data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c:221: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 data[100] = {0};          /* Dummy data to send. */
data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c:222: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 rbuf[sizeof(data)] = {0}; /* Read buffer for incoming data. */
data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c:292: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 data[100] = {0};          /* Dummy data to send. */
data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c:309: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 rbuf[sizeof(data)] = {0}; /* Read buffer for incoming data. */
data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c:331: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 data[100] = {0};          /* Dummy data to send. */
data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c:332: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 rbuf[sizeof(data)] = {0}; /* Read buffer for incoming data. */
data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/StandaloneFuzzTargetMain.c:30:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen(argv[i], "r");
data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-connection-driver.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.
typedef char str[MAX_SIZE];
data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-connection-driver.c:179: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 buffer[MAX_SIZE];
data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-connection-driver.c:209: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.start, *data, s);
data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-proactor-receive.c:56:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char str[MAX_SIZE];
data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-proactor-receive.c:84: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 buffer[MAX_SIZE];
data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-url.c:33: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(str, Data, Size);
data/qpid-proton-0.22.0/proton-c/src/tests/message.c:34: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[6];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:139:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char host[MAX_STR];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:140: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 port[MAX_STR];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.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 connect[MAX_STR];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:142: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 host_port[MAX_STR];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:150:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char port[MAX_STR];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:161: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[1024];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:615:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];                                                    \
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:715: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 protocol[256];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:807: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[PN_MAX_ADDR];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:827: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/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:880: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 cr[1024], cl[1024], sr[1024], sl[1024];
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:898: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 host[MAX_STR] = "";
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:899: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 serv[MAX_STR] = "";
data/qpid-proton-0.22.0/proton-c/src/tests/test_handler.h:149: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(rb.start, wb.start, size);
data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-common.c:151:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *f = fopen( input, "r" );
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-recv.c:170:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char name[100]; // prefer a multiplatform uuid generator
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-recv.c:171:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(name, "reply_sender_%d", cc->connection_id);
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-recv.c:228: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 tag[8];
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-send.c:194: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 tag[8];
data/qpid-proton-0.22.0/examples/c/broker.c:89: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).
  q->name = (char*)malloc(strlen(name)+1);
data/qpid-proton-0.22.0/examples/c/broker.c:90: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).
  memcpy(q->name, name, strlen(name)+1);
data/qpid-proton-0.22.0/proton-c/bindings/cpp/include/proton/byte_array.hpp:82:19:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      return std::equal(x.begin(), x.end(), y.begin());
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/interop_test.cpp:45:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
string read(string filename) {
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/interop_test.cpp:56:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    d.decode(read("primitives"));
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/interop_test.cpp:64:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    d.decode(read("primitives"));
data/qpid-proton-0.22.0/proton-c/bindings/cpp/src/interop_test.cpp:98:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQUAL(read("primitives"), data);
data/qpid-proton-0.22.0/proton-c/src/core/codec.c:558:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size = strlen(start);
data/qpid-proton-0.22.0/proton-c/src/core/codec.c:1344: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).
        if (pn_bytes_equal(bytes, pn_bytes(strlen(name), name))) {
data/qpid-proton-0.22.0/proton-c/src/core/dispatcher.c:130:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t n = pn_read_frame(&frame, bytes + read, available, transport->local_max_frame);
data/qpid-proton-0.22.0/proton-c/src/core/dispatcher.c:147:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/qpid-proton-0.22.0/proton-c/src/core/object/string.c:101:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return pn_stringn(bytes, bytes ? strlen(bytes) : 0);
data/qpid-proton-0.22.0/proton-c/src/core/object/string.c:139:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return pn_string_setn(string, bytes, bytes ? strlen(bytes) : 0);
data/qpid-proton-0.22.0/proton-c/src/core/transport.c:1352:22:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  if (name.size > 0) strncpy(strname, name.start, name.size);
data/qpid-proton-0.22.0/proton-c/src/core/util.c:139: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).
  char *dest = (char *) malloc(strlen(src)+1);
data/qpid-proton-0.22.0/proton-c/src/core/util.c:154:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dest, src, pn_min(n, size));
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1510: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).
          if (addr.scheme && strlen(addr.scheme) > 0 &&
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1511:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              !strstr(addr.scheme, "$") && addr.host && strlen(addr.host) > 0 &&
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1512:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              !strstr(addr.host, "$") && addr.port && strlen(addr.port) > 0 &&
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1866: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).
  int len = address ? strlen(address) : 0;
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1868:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned needed = len + strlen(mng->name) + 9;
data/qpid-proton-0.22.0/proton-c/src/messenger/messenger.c:1876: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).
    unsigned needed = strlen(mng->name) + 8;
data/qpid-proton-0.22.0/proton-c/src/messenger/transform.c:153: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).
    matcher->group[0].size = strlen(text);
data/qpid-proton-0.22.0/proton-c/src/platform/platform.c:96:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, strerror(errnum), buflen);
data/qpid-proton-0.22.0/proton-c/src/proactor/epoll.c:217:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ssize_t n = read(fd, &result, sizeof(result));
data/qpid-proton-0.22.0/proton-c/src/proactor/epoll.c:1125:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ssize_t n = read(pc->psocket.sockfd, rbuf.start, rbuf.size);
data/qpid-proton-0.22.0/proton-c/src/proactor/proactor-internal.c:45:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    if (host) strncat(buf, host, len);
data/qpid-proton-0.22.0/proton-c/src/proactor/proactor-internal.c:46:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
    strncat(buf, ":", len);
data/qpid-proton-0.22.0/proton-c/src/proactor/proactor-internal.c:47:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    if (port) strncat(buf, port, len);
data/qpid-proton-0.22.0/proton-c/src/proactor/proactor-internal.c:49: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).
  return (host ? strlen(host) : 0) + (port ? strlen(port) : 0) + 1;
data/qpid-proton-0.22.0/proton-c/src/proactor/proactor-internal.c:49: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).
  return (host ? strlen(host) : 0) + (port ? strlen(port) : 0) + 1;
data/qpid-proton-0.22.0/proton-c/src/proactor/proactor-internal.c:54:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t hplen = strlen(addr);
data/qpid-proton-0.22.0/proton-c/src/reactor/io/posix/io.c:324:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(socket, buf, size);
data/qpid-proton-0.22.0/proton-c/src/sasl/cyrus_sasl.c:129:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      i->len = strlen(username);
data/qpid-proton-0.22.0/proton-c/src/sasl/cyrus_sasl.c:135:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      i->len = strlen(password);
data/qpid-proton-0.22.0/proton-c/src/sasl/cyrus_sasl.c:502:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!pnx_sasl_is_included_mech(transport, pn_bytes(strlen(mechanism), mechanism))) {
data/qpid-proton-0.22.0/proton-c/src/sasl/default_sasl.c:109: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).
      size_t size = strlen(username);
data/qpid-proton-0.22.0/proton-c/src/sasl/default_sasl.c:134: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).
    size_t usize = strlen(username);
data/qpid-proton-0.22.0/proton-c/src/sasl/default_sasl.c:135: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).
    size_t psize = strlen(password);
data/qpid-proton-0.22.0/proton-c/src/sasl/default_sasl.c:162:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t size = strlen(username);
data/qpid-proton-0.22.0/proton-c/src/sasl/sasl.c:105: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).
    free(memset(password, 0, strlen(password)));
data/qpid-proton-0.22.0/proton-c/src/sasl/sasl.c:378:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const char * end_list = included_mech_list+strlen(included_mech_list);
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:225: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).
  int slen = (int) strlen(hostname);
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:262: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).
      int prefix_len = strlen(prefix);
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:264: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).
      int suffix_len = strlen(suffix);
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:267:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        slabel + (strlen(slabel) - suffix_len),
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:936:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, (char *)userdata, size);   // @todo: un-obfuscate me!!!
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:938: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).
  return(strlen(buf));
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:999:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read > 0) {
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:1000:70:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssl_log( transport, "Read %d bytes from SSL socket for app", read );
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:1001:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssl_log_clear_data(transport, &ssl->inbuf[ssl->in_count], read );
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:1002:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssl->in_count += read;
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:1006:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          int reason = SSL_get_error( ssl->ssl, read );
data/qpid-proton-0.22.0/proton-c/src/ssl/openssl.c:1340: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).
  unsigned len = strlen(ssl->peer_hostname);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:176: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).
  int name_len = cert_name ? strlen(cert_name) : 0;
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:893: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).
  unsigned len = strlen(ssl->peer_hostname);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:920: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).
    if (strlen > 0) {
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:921: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).
      ssl->subject = (char*) malloc(strlen);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:924:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  flags, ssl->subject, strlen);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:925: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 (len != strlen) {
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:1923: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).
      pwlen = strlen(passwd);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:1969: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).
  int slen = (int) strlen(hostname);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2006: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).
      int prefix_len = strlen(prefix);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2008: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).
      int suffix_len = strlen(suffix);
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2011:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                     slabel + (strlen(slabel) - suffix_len),
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2057:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          matched = match_dns_pattern(server_name, (const char *) alt_name, strlen(alt_name));
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2072:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        matched = match_dns_pattern(server_name, (const char *) name, strlen(name));
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2101:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (server_name && strlen(server_name) > 255) {
data/qpid-proton-0.22.0/proton-c/src/ssl/schannel.c:2241: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).
      int len = strlen(server_name);
data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c:293:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(data, tag, sizeof(data));
data/qpid-proton-0.22.0/proton-c/src/tests/connection_driver.c:298:67:  [1] (buffer) strlen:
  Does not handle 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_delivery_t *sd = pn_delivery(src->handler.link, pn_dtag(tag, strlen(tag)));
data/qpid-proton-0.22.0/proton-c/src/tests/fuzz/fuzz-proactor-receive.c:200:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy(app.address, "jms.queue.example", sizeof(app.address));
data/qpid-proton-0.22.0/proton-c/src/tests/object.c:615: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).
  size_t size = value ? strlen(value) : 0;
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:907: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).
  TEST_CHECKF(t, strlen(cl) == len, "%d != %d", strlen(cl), len);
data/qpid-proton-0.22.0/proton-c/src/tests/proactor.c:907:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  TEST_CHECKF(t, strlen(cl) == len, "%d != %d", strlen(cl), len);
data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-common.c:40: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).
    r = (char *) malloc(sizeof(char) * (strlen(src) + 1));
data/qpid-proton-0.22.0/tests/tools/apps/c/msgr-common.c:155:18:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        int rc = fscanf( f, "%255s", *password );
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-recv.c:274: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 (port == 0 || strlen(port) == 0)
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-recv.c:276: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 (host == 0 || strlen(host) == 0)
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-send.c:120: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 (port && strlen(port))
data/qpid-proton-0.22.0/tests/tools/apps/c/reactor-send.c:180: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).
      if (path && strlen(path)) {

ANALYSIS SUMMARY:

Hits = 323
Lines analyzed = 77725 in approximately 2.22 seconds (34951 lines/second)
Physical Source Lines of Code (SLOC) = 49180
Hits@level = [0] 235 [1]  81 [2] 185 [3]  30 [4]  27 [5]   0
Hits@level+ = [0+] 558 [1+] 323 [2+] 242 [3+]  57 [4+]  27 [5+]   0
Hits/KSLOC@level+ = [0+] 11.3461 [1+] 6.56771 [2+] 4.9207 [3+] 1.15901 [4+] 0.549004 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.