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/libmemcached-1.0.18/libhashkit/fnv_64.cc
Examining data/libmemcached-1.0.18/libhashkit/fnv_32.cc
Examining data/libmemcached-1.0.18/libhashkit/rijndael.cc
Examining data/libmemcached-1.0.18/libhashkit/behavior.cc
Examining data/libmemcached-1.0.18/libhashkit/algorithm.h
Examining data/libmemcached-1.0.18/libhashkit/hashkit.h
Examining data/libmemcached-1.0.18/libhashkit/string.h
Examining data/libmemcached-1.0.18/libhashkit/murmur3_api.cc
Examining data/libmemcached-1.0.18/libhashkit/string.cc
Examining data/libmemcached-1.0.18/libhashkit/ketama.cc
Examining data/libmemcached-1.0.18/libhashkit/murmur.cc
Examining data/libmemcached-1.0.18/libhashkit/encrypt.cc
Examining data/libmemcached-1.0.18/libhashkit/md5.cc
Examining data/libmemcached-1.0.18/libhashkit/crc32.cc
Examining data/libmemcached-1.0.18/libhashkit/nohsieh.cc
Examining data/libmemcached-1.0.18/libhashkit/hashkit.cc
Examining data/libmemcached-1.0.18/libhashkit/hsieh.cc
Examining data/libmemcached-1.0.18/libhashkit/common.h
Examining data/libmemcached-1.0.18/libhashkit/jenkins.cc
Examining data/libmemcached-1.0.18/libhashkit/function.cc
Examining data/libmemcached-1.0.18/libhashkit/aes.cc
Examining data/libmemcached-1.0.18/libhashkit/has.cc
Examining data/libmemcached-1.0.18/libhashkit/strerror.cc
Examining data/libmemcached-1.0.18/libhashkit/digest.cc
Examining data/libmemcached-1.0.18/libhashkit/str_algorithm.cc
Examining data/libmemcached-1.0.18/libhashkit/one_at_a_time.cc
Examining data/libmemcached-1.0.18/libhashkit/murmur3.cc
Examining data/libmemcached-1.0.18/libhashkit/murmur3.h
Examining data/libmemcached-1.0.18/libhashkit/aes.h
Examining data/libmemcached-1.0.18/libhashkit/is.h
Examining data/libmemcached-1.0.18/libhashkit/algorithm.cc
Examining data/libmemcached-1.0.18/libhashkit/rijndael.hpp
Examining data/libmemcached-1.0.18/example/byteorder.h
Examining data/libmemcached-1.0.18/example/memcached_light.h
Examining data/libmemcached-1.0.18/example/interface_v1.cc
Examining data/libmemcached-1.0.18/example/byteorder.cc
Examining data/libmemcached-1.0.18/example/storage.h
Examining data/libmemcached-1.0.18/example/storage.cc
Examining data/libmemcached-1.0.18/example/interface_v0.cc
Examining data/libmemcached-1.0.18/example/memcached_light.cc
Examining data/libmemcached-1.0.18/clients/memrm.cc
Examining data/libmemcached-1.0.18/clients/ms_task.h
Examining data/libmemcached-1.0.18/clients/memexist.cc
Examining data/libmemcached-1.0.18/clients/memstat.cc
Examining data/libmemcached-1.0.18/clients/memcat.cc
Examining data/libmemcached-1.0.18/clients/ms_setting.h
Examining data/libmemcached-1.0.18/clients/ms_stats.c
Examining data/libmemcached-1.0.18/clients/utilities.cc
Examining data/libmemcached-1.0.18/clients/execute.cc
Examining data/libmemcached-1.0.18/clients/ms_thread.c
Examining data/libmemcached-1.0.18/clients/memcp.cc
Examining data/libmemcached-1.0.18/clients/memtouch.cc
Examining data/libmemcached-1.0.18/clients/ms_conn.h
Examining data/libmemcached-1.0.18/clients/generator.h
Examining data/libmemcached-1.0.18/clients/memcapable.cc
Examining data/libmemcached-1.0.18/clients/ms_setting.c
Examining data/libmemcached-1.0.18/clients/ms_sigsegv.h
Examining data/libmemcached-1.0.18/clients/execute.h
Examining data/libmemcached-1.0.18/clients/memdump.cc
Examining data/libmemcached-1.0.18/clients/memparse.cc
Examining data/libmemcached-1.0.18/clients/utilities.h
Examining data/libmemcached-1.0.18/clients/memslap.cc
Examining data/libmemcached-1.0.18/clients/memping.cc
Examining data/libmemcached-1.0.18/clients/ms_atomic.h
Examining data/libmemcached-1.0.18/clients/ms_memslap.h
Examining data/libmemcached-1.0.18/clients/ms_conn.c
Examining data/libmemcached-1.0.18/clients/client_options.h
Examining data/libmemcached-1.0.18/clients/ms_task.c
Examining data/libmemcached-1.0.18/clients/ms_stats.h
Examining data/libmemcached-1.0.18/clients/ms_sigsegv.c
Examining data/libmemcached-1.0.18/clients/generator.cc
Examining data/libmemcached-1.0.18/clients/memaslap.c
Examining data/libmemcached-1.0.18/clients/ms_thread.h
Examining data/libmemcached-1.0.18/clients/memerror.cc
Examining data/libmemcached-1.0.18/clients/memflush.cc
Examining data/libmemcached-1.0.18/libmemcachedutil/ping.cc
Examining data/libmemcached-1.0.18/libmemcachedutil/pid.cc
Examining data/libmemcached-1.0.18/libmemcachedutil/common.h
Examining data/libmemcached-1.0.18/libmemcachedutil/flush.cc
Examining data/libmemcached-1.0.18/libmemcachedutil/version.cc
Examining data/libmemcached-1.0.18/libmemcachedutil/pool.cc
Examining data/libmemcached-1.0.18/util/log.hpp
Examining data/libmemcached-1.0.18/util/instance.hpp
Examining data/libmemcached-1.0.18/util/string.hpp
Examining data/libmemcached-1.0.18/util/pidfile.hpp
Examining data/libmemcached-1.0.18/util/daemon.cc
Examining data/libmemcached-1.0.18/util/operation.hpp
Examining data/libmemcached-1.0.18/util/pidfile.cc
Examining data/libmemcached-1.0.18/util/logfile.hpp
Examining data/libmemcached-1.0.18/util/signal.hpp
Examining data/libmemcached-1.0.18/util/daemon.hpp
Examining data/libmemcached-1.0.18/libmemcachedutil-1.0/util.h
Examining data/libmemcached-1.0.18/libmemcachedutil-1.0/ostream.hpp
Examining data/libmemcached-1.0.18/libmemcachedutil-1.0/ping.h
Examining data/libmemcached-1.0.18/libmemcachedutil-1.0/pool.h
Examining data/libmemcached-1.0.18/libmemcachedutil-1.0/flush.h
Examining data/libmemcached-1.0.18/libmemcachedutil-1.0/version.h
Examining data/libmemcached-1.0.18/libmemcachedutil-1.0/pid.h
Examining data/libmemcached-1.0.18/libmemcached/flag.hpp
Examining data/libmemcached-1.0.18/libmemcached/result.cc
Examining data/libmemcached-1.0.18/libmemcached/get.cc
Examining data/libmemcached-1.0.18/libmemcached/array.c
Examining data/libmemcached-1.0.18/libmemcached/allocators.hpp
Examining data/libmemcached-1.0.18/libmemcached/behavior.cc
Examining data/libmemcached-1.0.18/libmemcached/udp.hpp
Examining data/libmemcached-1.0.18/libmemcached/hash.cc
Examining data/libmemcached-1.0.18/libmemcached/do.hpp
Examining data/libmemcached-1.0.18/libmemcached/byteorder.h
Examining data/libmemcached-1.0.18/libmemcached/version.hpp
Examining data/libmemcached-1.0.18/libmemcached/quit.cc
Examining data/libmemcached-1.0.18/libmemcached/instance.hpp
Examining data/libmemcached-1.0.18/libmemcached/server.cc
Examining data/libmemcached-1.0.18/libmemcached/result.h
Examining data/libmemcached-1.0.18/libmemcached/response.cc
Examining data/libmemcached-1.0.18/libmemcached/flush_buffers.cc
Examining data/libmemcached-1.0.18/libmemcached/virtual_bucket.h
Examining data/libmemcached-1.0.18/libmemcached/string.hpp
Examining data/libmemcached-1.0.18/libmemcached/error.hpp
Examining data/libmemcached-1.0.18/libmemcached/util.h
Examining data/libmemcached-1.0.18/libmemcached/behavior.hpp
Examining data/libmemcached-1.0.18/libmemcached/encoding_key.cc
Examining data/libmemcached-1.0.18/libmemcached/delete.cc
Examining data/libmemcached-1.0.18/libmemcached/poll.cc
Examining data/libmemcached-1.0.18/libmemcached/virtual_bucket.c
Examining data/libmemcached-1.0.18/libmemcached/key.cc
Examining data/libmemcached-1.0.18/libmemcached/allocators.cc
Examining data/libmemcached-1.0.18/libmemcached/string.cc
Examining data/libmemcached-1.0.18/libmemcached/quit.hpp
Examining data/libmemcached-1.0.18/libmemcached/server_list.cc
Examining data/libmemcached-1.0.18/libmemcached/server_list.hpp
Examining data/libmemcached-1.0.18/libmemcached/do.cc
Examining data/libmemcached-1.0.18/libmemcached/poll.h
Examining data/libmemcached-1.0.18/libmemcached/server.hpp
Examining data/libmemcached-1.0.18/libmemcached/initialize_query.h
Examining data/libmemcached-1.0.18/libmemcached/initialize_query.cc
Examining data/libmemcached-1.0.18/libmemcached/flag.cc
Examining data/libmemcached-1.0.18/libmemcached/instance.cc
Examining data/libmemcached-1.0.18/libmemcached/encoding_key.h
Examining data/libmemcached-1.0.18/libmemcached/purge.cc
Examining data/libmemcached-1.0.18/libmemcached/continuum.hpp
Examining data/libmemcached-1.0.18/libmemcached/backtrace.hpp
Examining data/libmemcached-1.0.18/libmemcached/sasl.hpp
Examining data/libmemcached-1.0.18/libmemcached/csl/parser.h
Examining data/libmemcached-1.0.18/libmemcached/csl/context.h
Examining data/libmemcached-1.0.18/libmemcached/csl/scanner.cc
Examining data/libmemcached-1.0.18/libmemcached/csl/symbol.h
Examining data/libmemcached-1.0.18/libmemcached/csl/common.h
Examining data/libmemcached-1.0.18/libmemcached/csl/context.cc
Examining data/libmemcached-1.0.18/libmemcached/csl/parser.cc
Examining data/libmemcached-1.0.18/libmemcached/csl/server.h
Examining data/libmemcached-1.0.18/libmemcached/csl/scanner.h
Examining data/libmemcached-1.0.18/libmemcached/analyze.cc
Examining data/libmemcached-1.0.18/libmemcached/callback.cc
Examining data/libmemcached-1.0.18/libmemcached/dump.cc
Examining data/libmemcached-1.0.18/libmemcached/common.h
Examining data/libmemcached-1.0.18/libmemcached/memcached.hpp
Examining data/libmemcached-1.0.18/libmemcached/flush.cc
Examining data/libmemcached-1.0.18/libmemcached/socket.hpp
Examining data/libmemcached-1.0.18/libmemcached/stats.cc
Examining data/libmemcached-1.0.18/libmemcached/byteorder.cc
Examining data/libmemcached-1.0.18/libmemcached/key.hpp
Examining data/libmemcached-1.0.18/libmemcached/options.hpp
Examining data/libmemcached-1.0.18/libmemcached/options.cc
Examining data/libmemcached-1.0.18/libmemcached/version.cc
Examining data/libmemcached-1.0.18/libmemcached/backtrace.cc
Examining data/libmemcached-1.0.18/libmemcached/assert.hpp
Examining data/libmemcached-1.0.18/libmemcached/namespace.h
Examining data/libmemcached-1.0.18/libmemcached/storage.cc
Examining data/libmemcached-1.0.18/libmemcached/auto.cc
Examining data/libmemcached-1.0.18/libmemcached/touch.cc
Examining data/libmemcached-1.0.18/libmemcached/verbosity.cc
Examining data/libmemcached-1.0.18/libmemcached/fetch.cc
Examining data/libmemcached-1.0.18/libmemcached/memcached/protocol_binary.h
Examining data/libmemcached-1.0.18/libmemcached/memcached/vbucket.h
Examining data/libmemcached-1.0.18/libmemcached/memory.h
Examining data/libmemcached-1.0.18/libmemcached/memcached.cc
Examining data/libmemcached-1.0.18/libmemcached/strerror.cc
Examining data/libmemcached-1.0.18/libmemcached/hash.hpp
Examining data/libmemcached-1.0.18/libmemcached/connect.hpp
Examining data/libmemcached-1.0.18/libmemcached/io.hpp
Examining data/libmemcached-1.0.18/libmemcached/sasl.cc
Examining data/libmemcached-1.0.18/libmemcached/is.h
Examining data/libmemcached-1.0.18/libmemcached/server_instance.h
Examining data/libmemcached-1.0.18/libmemcached/internal.h
Examining data/libmemcached-1.0.18/libmemcached/exist.cc
Examining data/libmemcached-1.0.18/libmemcached/udp.cc
Examining data/libmemcached-1.0.18/libmemcached/response.h
Examining data/libmemcached-1.0.18/libmemcached/error.cc
Examining data/libmemcached-1.0.18/libmemcached/libmemcached_probes.h
Examining data/libmemcached-1.0.18/libmemcached/array.h
Examining data/libmemcached-1.0.18/libmemcached/watchpoint.h
Examining data/libmemcached-1.0.18/libmemcached/io.h
Examining data/libmemcached-1.0.18/libmemcached/windows.hpp
Examining data/libmemcached-1.0.18/libmemcached/namespace.cc
Examining data/libmemcached-1.0.18/libmemcached/hosts.cc
Examining data/libmemcached-1.0.18/libmemcached/memcached.h
Examining data/libmemcached-1.0.18/libmemcached/parse.cc
Examining data/libmemcached-1.0.18/libmemcached/connect.cc
Examining data/libmemcached-1.0.18/libmemcached/io.cc
Examining data/libmemcached-1.0.18/libhashkit-1.0/digest.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/has.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/str_algorithm.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/visibility.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/algorithm.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/hashkit.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/string.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/hashkit.hpp
Examining data/libmemcached-1.0.18/libhashkit-1.0/behavior.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/function.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/configure.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/types.h
Examining data/libmemcached-1.0.18/libhashkit-1.0/strerror.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/return.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/alloc.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/touch.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/visibility.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/auto.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/result.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/triggers.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/basic_string.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/behavior.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/t/cc_test.cc
Examining data/libmemcached-1.0.18/libmemcached-1.0/t/c_sasl_test.c
Examining data/libmemcached-1.0.18/libmemcached-1.0/t/c_test.c
Examining data/libmemcached-1.0.18/libmemcached-1.0/defaults.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/encoding_key.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/hash.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/server_list.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/callbacks.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/flush_buffers.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/options.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/callback.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/dump.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/flush.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/memcached.hpp
Examining data/libmemcached-1.0.18/libmemcached-1.0/analyze.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/storage.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/verbosity.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/exception.hpp
Examining data/libmemcached-1.0.18/libmemcached-1.0/struct/result.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/struct/string.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/struct/callback.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/struct/sasl.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/struct/allocator.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/struct/analysis.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/struct/server.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/struct/memcached.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/struct/stat.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/configure.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/fetch.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/deprecated_types.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/types/return.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/types/server_distribution.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/types/behavior.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/types/hash.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/types/callback.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/types/connection.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/sasl.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/types.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/strerror.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/get.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/version.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/parse.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/allocators.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/server.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/delete.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/limits.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/quit.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/error.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/exist.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/stats.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/platform.h
Examining data/libmemcached-1.0.18/libmemcached-1.0/memcached.h
Examining data/libmemcached-1.0.18/tests/error_conditions.h
Examining data/libmemcached-1.0.18/tests/hash_results.h
Examining data/libmemcached-1.0.18/tests/touch.h
Examining data/libmemcached-1.0.18/tests/memrm.cc
Examining data/libmemcached-1.0.18/tests/mem_udp.cc
Examining data/libmemcached-1.0.18/tests/virtual_buckets.h
Examining data/libmemcached-1.0.18/tests/memexist.cc
Examining data/libmemcached-1.0.18/tests/hash_plus.cc
Examining data/libmemcached-1.0.18/tests/string.h
Examining data/libmemcached-1.0.18/tests/ketama_test_cases_spy.h
Examining data/libmemcached-1.0.18/tests/deprecated.h
Examining data/libmemcached-1.0.18/tests/runner.h
Examining data/libmemcached-1.0.18/tests/memstat.cc
Examining data/libmemcached-1.0.18/tests/memcat.cc
Examining data/libmemcached-1.0.18/tests/pool.h
Examining data/libmemcached-1.0.18/tests/callbacks.h
Examining data/libmemcached-1.0.18/tests/memcp.cc
Examining data/libmemcached-1.0.18/tests/memtouch.cc
Examining data/libmemcached-1.0.18/tests/basic.h
Examining data/libmemcached-1.0.18/tests/debug.h
Examining data/libmemcached-1.0.18/tests/keys.hpp
Examining data/libmemcached-1.0.18/tests/memcapable.cc
Examining data/libmemcached-1.0.18/tests/namespace.h
Examining data/libmemcached-1.0.18/tests/memdump.cc
Examining data/libmemcached-1.0.18/tests/failure.cc
Examining data/libmemcached-1.0.18/tests/libmemcached_world.h
Examining data/libmemcached-1.0.18/tests/cycle.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/generate.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/memcached_get.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/callback_counter.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/all_tests_socket.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/plus.cpp
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/callback_counter.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/encoding_key.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/deprecated.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/string.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/ketama.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/all_tests.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/generate.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/stat.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/encoding_key.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/virtual_buckets.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/memcached_get.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/dump.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/dump.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/haldenbrand.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/atomsmasher.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/setup_and_teardowns.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/touch.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/internals.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/fetch_all_results.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/server_add.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/print.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/sasl.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/fetch_all_results.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/exist.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/basic.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/haldenbrand.h
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/pool.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/namespace.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/all_tests.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/callbacks.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/setup_and_teardowns.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/error_conditions.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/debug.cc
Examining data/libmemcached-1.0.18/tests/libmemcached-1.0/stat.h
Examining data/libmemcached-1.0.18/tests/memslap.cc
Examining data/libmemcached-1.0.18/tests/memping.cc
Examining data/libmemcached-1.0.18/tests/hashkit_functions.cc
Examining data/libmemcached-1.0.18/tests/print.h
Examining data/libmemcached-1.0.18/tests/libmemcached_world_socket.h
Examining data/libmemcached-1.0.18/tests/parser.cc
Examining data/libmemcached-1.0.18/tests/libmemcached_test_container.h
Examining data/libmemcached-1.0.18/tests/ketama_test_cases.h
Examining data/libmemcached-1.0.18/tests/ketama.h
Examining data/libmemcached-1.0.18/tests/server_add.h
Examining data/libmemcached-1.0.18/tests/memflush.cc
Examining data/libmemcached-1.0.18/tests/exist.h
Examining data/libmemcached-1.0.18/tests/memc.hpp
Examining data/libmemcached-1.0.18/tests/cpp_example.cc
Examining data/libmemcached-1.0.18/tests/replication.h
Examining data/libmemcached-1.0.18/tests/memerror.cc
Examining data/libmemcached-1.0.18/libmemcachedprotocol-0.0/handler.h
Examining data/libmemcached-1.0.18/libmemcachedprotocol-0.0/callback.h
Examining data/libmemcached-1.0.18/libmemcachedprotocol-0.0/binary.h
Examining data/libmemcached-1.0.18/libmemcachedprotocol-0.0/vbucket.h
Examining data/libmemcached-1.0.18/libmemcachedprotocol/ascii_handler.h
Examining data/libmemcached-1.0.18/libmemcachedprotocol/cache.h
Examining data/libmemcached-1.0.18/libmemcachedprotocol/common.h
Examining data/libmemcached-1.0.18/libmemcachedprotocol/binary_handler.c
Examining data/libmemcached-1.0.18/libmemcachedprotocol/handler.c
Examining data/libmemcached-1.0.18/libmemcachedprotocol/binary_handler.h
Examining data/libmemcached-1.0.18/libmemcachedprotocol/cache.c
Examining data/libmemcached-1.0.18/libmemcachedprotocol/ascii_handler.c
Examining data/libmemcached-1.0.18/libmemcachedprotocol/pedantic.c
Examining data/libmemcached-1.0.18/libtest/result.cc
Examining data/libmemcached-1.0.18/libtest/result/base.hpp
Examining data/libmemcached-1.0.18/libtest/result/skip.hpp
Examining data/libmemcached-1.0.18/libtest/result/success.hpp
Examining data/libmemcached-1.0.18/libtest/result/fail.hpp
Examining data/libmemcached-1.0.18/libtest/socket.cc
Examining data/libmemcached-1.0.18/libtest/libtool.cc
Examining data/libmemcached-1.0.18/libtest/yatl.h
Examining data/libmemcached-1.0.18/libtest/visibility.h
Examining data/libmemcached-1.0.18/libtest/exception.cc
Examining data/libmemcached-1.0.18/libtest/gearmand.cc
Examining data/libmemcached-1.0.18/libtest/stream.h
Examining data/libmemcached-1.0.18/libtest/has.hpp
Examining data/libmemcached-1.0.18/libtest/blobslap_worker.h
Examining data/libmemcached-1.0.18/libtest/dream.cc
Examining data/libmemcached-1.0.18/libtest/wait.h
Examining data/libmemcached-1.0.18/libtest/comparison.cc
Examining data/libmemcached-1.0.18/libtest/server.cc
Examining data/libmemcached-1.0.18/libtest/gearmand.h
Examining data/libmemcached-1.0.18/libtest/string.hpp
Examining data/libmemcached-1.0.18/libtest/collection.h
Examining data/libmemcached-1.0.18/libtest/runner.h
Examining data/libmemcached-1.0.18/libtest/killpid.cc
Examining data/libmemcached-1.0.18/libtest/result.hpp
Examining data/libmemcached-1.0.18/libtest/formatter.cc
Examining data/libmemcached-1.0.18/libtest/core.cc
Examining data/libmemcached-1.0.18/libtest/drizzled.cc
Examining data/libmemcached-1.0.18/libtest/core.h
Examining data/libmemcached-1.0.18/libtest/valgrind.h
Examining data/libmemcached-1.0.18/libtest/formatter.hpp
Examining data/libmemcached-1.0.18/libtest/tmpfile.cc
Examining data/libmemcached-1.0.18/libtest/callbacks.h
Examining data/libmemcached-1.0.18/libtest/libtool.hpp
Examining data/libmemcached-1.0.18/libtest/dream.h
Examining data/libmemcached-1.0.18/libtest/cpu.hpp
Examining data/libmemcached-1.0.18/libtest/test.hpp
Examining data/libmemcached-1.0.18/libtest/abort.cc
Examining data/libmemcached-1.0.18/libtest/binaries.h
Examining data/libmemcached-1.0.18/libtest/alarm.h
Examining data/libmemcached-1.0.18/libtest/signal.cc
Examining data/libmemcached-1.0.18/libtest/common.h
Examining data/libmemcached-1.0.18/libtest/memcached.hpp
Examining data/libmemcached-1.0.18/libtest/client.hpp
Examining data/libmemcached-1.0.18/libtest/socket.hpp
Examining data/libmemcached-1.0.18/libtest/http.cc
Examining data/libmemcached-1.0.18/libtest/signal.h
Examining data/libmemcached-1.0.18/libtest/framework.h
Examining data/libmemcached-1.0.18/libtest/timer.hpp
Examining data/libmemcached-1.0.18/libtest/killpid.h
Examining data/libmemcached-1.0.18/libtest/has.cc
Examining data/libmemcached-1.0.18/libtest/core_count.cc
Examining data/libmemcached-1.0.18/libtest/main.cc
Examining data/libmemcached-1.0.18/libtest/exception.hpp
Examining data/libmemcached-1.0.18/libtest/server_container.h
Examining data/libmemcached-1.0.18/libtest/comparison.hpp
Examining data/libmemcached-1.0.18/libtest/alarm.cc
Examining data/libmemcached-1.0.18/libtest/drizzled.h
Examining data/libmemcached-1.0.18/libtest/is_local.hpp
Examining data/libmemcached-1.0.18/libtest/is_pid.hpp
Examining data/libmemcached-1.0.18/libtest/exception/disconnected.hpp
Examining data/libmemcached-1.0.18/libtest/exception/fatal.cc
Examining data/libmemcached-1.0.18/libtest/exception/fatal.hpp
Examining data/libmemcached-1.0.18/libtest/cmdline.h
Examining data/libmemcached-1.0.18/libtest/dns.hpp
Examining data/libmemcached-1.0.18/libtest/thread.hpp
Examining data/libmemcached-1.0.18/libtest/memcached.cc
Examining data/libmemcached-1.0.18/libtest/server_container.cc
Examining data/libmemcached-1.0.18/libtest/strerror.cc
Examining data/libmemcached-1.0.18/libtest/binaries.cc
Examining data/libmemcached-1.0.18/libtest/strerror.h
Examining data/libmemcached-1.0.18/libtest/get.h
Examining data/libmemcached-1.0.18/libtest/dns.cc
Examining data/libmemcached-1.0.18/libtest/cmdline.cc
Examining data/libmemcached-1.0.18/libtest/tmpfile.hpp
Examining data/libmemcached-1.0.18/libtest/lite.h
Examining data/libmemcached-1.0.18/libtest/version.h
Examining data/libmemcached-1.0.18/libtest/framework.cc
Examining data/libmemcached-1.0.18/libtest/skiptest.cc
Examining data/libmemcached-1.0.18/libtest/vchar.cc
Examining data/libmemcached-1.0.18/libtest/backtrace_test.cc
Examining data/libmemcached-1.0.18/libtest/port.cc
Examining data/libmemcached-1.0.18/libtest/server.h
Examining data/libmemcached-1.0.18/libtest/http.hpp
Examining data/libmemcached-1.0.18/libtest/error.h
Examining data/libmemcached-1.0.18/libtest/collection.cc
Examining data/libmemcached-1.0.18/libtest/runner.cc
Examining data/libmemcached-1.0.18/libtest/test.h
Examining data/libmemcached-1.0.18/libtest/client.cc
Examining data/libmemcached-1.0.18/libtest/wait.cc
Examining data/libmemcached-1.0.18/libtest/blobslap_worker.cc
Examining data/libmemcached-1.0.18/libtest/memcached.h
Examining data/libmemcached-1.0.18/libtest/cpu.cc
Examining data/libmemcached-1.0.18/libtest/poll_error.hpp
Examining data/libmemcached-1.0.18/libtest/port.h
Examining data/libmemcached-1.0.18/libtest/is_local.cc
Examining data/libmemcached-1.0.18/libtest/vchar.hpp
Examining data/libmemcached-1.0.18/libtest/timer.cc
Examining data/libmemcached-1.0.18/libtest/unittest.cc
Examining data/libmemcached-1.0.18/win32/wrappers.h

FINAL RESULTS:

data/libmemcached-1.0.18/clients/ms_setting.c:171: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(ms_setting.servers[ms_setting.srv_cnt].srv_host_name, server_pool[loop].hostname);
data/libmemcached-1.0.18/clients/ms_setting.c:315:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access (userpath, F_OK | R_OK) == 0)
data/libmemcached-1.0.18/clients/ms_stats.c:195:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf("   %6" PRIu64 , stat->dist[i]);
data/libmemcached-1.0.18/libmemcached/assert.hpp:83:17:  [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.
    size_t ask= snprintf(0, 0, (__mesg), __VA_ARGS__); \
data/libmemcached-1.0.18/libmemcached/assert.hpp:86:33:  [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.
    size_t _error_message_size= snprintf(_error_message, ask, (__mesg), __VA_ARGS__); \
data/libmemcached-1.0.18/libmemcached/auto.cc:79:20:  [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.
  int send_length= snprintf(buffer, sizeof(buffer), " %" PRIu64, offset);
data/libmemcached-1.0.18/libmemcached/csl/parser.cc:815:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/libmemcached-1.0.18/libmemcached/error.cc:275:15:  [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.
  int length= vsnprintf(buffer, sizeof(buffer), format, args);
data/libmemcached-1.0.18/libtest/exception/fatal.cc:100:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  (void)vsnprintf(last_error, sizeof(last_error), format, args);
data/libmemcached-1.0.18/libtest/has.cc:107:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(arg_buffer.str().c_str(), X_OK) == 0)
data/libmemcached-1.0.18/libtest/has.cc:122:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(DRIZZLED_BINARY, X_OK) == 0)
data/libmemcached-1.0.18/libtest/has.cc:137:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(MYSQLD_BINARY, X_OK) == 0)
data/libmemcached-1.0.18/libtest/has.cc:166:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(arg_buffer.str().c_str(), X_OK) == 0)
data/libmemcached-1.0.18/libtest/libtool.cc:61:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(libtool_buffer.c_str(), R_OK | W_OK | X_OK))
data/libmemcached-1.0.18/libtest/lite.h:131:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:134:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:159:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:162:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:199:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:202:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:227:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:230:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:243:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:246:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:271:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:274:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:309:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:312:10:  [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.
    ask= snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:353:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:356:10:  [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.
    ask= snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:387:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:390:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:403:17:  [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.
    size_t ask= snprintf(0, 0, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/lite.h:406:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(buffer, ask, __VA_ARGS__); \
data/libmemcached-1.0.18/libtest/server.cc:319:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((pid_file().empty() == false) and (access(pid_file().c_str(), R_OK) == 0))
data/libmemcached-1.0.18/libtest/unittest.cc:330:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ASSERT_EQ(0, access("var", R_OK | W_OK | X_OK));
data/libmemcached-1.0.18/libtest/unittest.cc:336:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ASSERT_EQ(0, access("var/tmp", R_OK | W_OK | X_OK));
data/libmemcached-1.0.18/libtest/unittest.cc:342:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ASSERT_EQ(0, access("var/run", R_OK | W_OK | X_OK));
data/libmemcached-1.0.18/libtest/unittest.cc:348:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ASSERT_EQ(0, access("var/log", R_OK | W_OK | X_OK));
data/libmemcached-1.0.18/libtest/unittest.cc:354:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ASSERT_EQ(0, access("var/drizzle", R_OK | W_OK | X_OK));
data/libmemcached-1.0.18/libtest/unittest.cc:562:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/true", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:573:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/gdb", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:574:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/true", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:587:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/gdb", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:588:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/true", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:602:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/true", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:702:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    test_skip(0, access("/bin/echo", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:722:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    test_skip(0, access("/bin/echo", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:784:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/etc/services", R_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:795:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/etc/services", R_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:806:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/etc/services", R_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:807:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/gdb", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:808:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("libtest/wait", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:827:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/etc/services", R_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:828:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/gdb", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:829:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("libtest/wait", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:843:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/gdb", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:844:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("libtest/abort", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:858:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access(gdb_filename.c_str(), R_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:932:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access("/usr/bin/touch", X_OK ));
data/libmemcached-1.0.18/libtest/unittest.cc:934:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ASSERT_EQ(-1, access(tmp.c_str(), R_OK));
data/libmemcached-1.0.18/libtest/unittest.cc:935:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ASSERT_EQ(-1, access(tmp.c_str(), F_OK));
data/libmemcached-1.0.18/libtest/unittest.cc:942:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ASSERT_EQ(0, access(tmp.c_str(), R_OK));
data/libmemcached-1.0.18/libtest/unittest.cc:980:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      test_zero(access(GEARMAND_BINARY, X_OK ));
data/libmemcached-1.0.18/libtest/wait.h:66:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(filename.c_str(), R_OK) == 0)
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:340:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access(SUPPORT_EXAMPLE_CNF, R_OK));
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:351:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access(SUPPORT_EXAMPLE_CNF, R_OK));
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:402:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  test_skip(0, access(SUPPORT_EXAMPLE_CNF, R_OK));
data/libmemcached-1.0.18/util/log.hpp:153:24:  [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.
      int mesg_length= vsnprintf(mesg, sizeof(mesg), format, args);
data/libmemcached-1.0.18/util/pidfile.cc:86:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(_filename.c_str(), F_OK) == -1)
data/libmemcached-1.0.18/util/pidfile.cc:109:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(_filename.c_str(), F_OK) == 0)
data/libmemcached-1.0.18/clients/execute.cc:61:58:  [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.
    unsigned int fetch_key= (unsigned int)((unsigned int)random() % number_of);
data/libmemcached-1.0.18/clients/generator.cc:35:18:  [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 (size_t)random() % ALPHANUMERICS_SIZE;
data/libmemcached-1.0.18/clients/memaslap.c:421:22:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((option_rv= getopt_long(argc, argv, "VhURbaBs:x:T:c:X:v:d:"
data/libmemcached-1.0.18/clients/memaslap.c:648:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memaslap.c:893:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom((unsigned int)time(NULL));
data/libmemcached-1.0.18/clients/memcapable.cc:2090:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((cmd= getopt(argc, argv, "qt:vch:p:PT:?ab")) != EOF)
data/libmemcached-1.0.18/clients/memcat.cc:56:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memcat.cc:217:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/memcp.cc:135:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memcp.cc:339:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/memdump.cc:69:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memdump.cc:171:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/memerror.cc:90:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/memexist.cc:46:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memexist.cc:170:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/memflush.cc:46:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memflush.cc:125:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/memping.cc:48:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memping.cc:122:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/memrm.cc:48:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memrm.cc:176:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/memslap.cc:206:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom((unsigned int)time(NULL));
data/libmemcached-1.0.18/clients/memslap.cc:213:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memslap.cc:409:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/memstat.cc:111:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memstat.cc:386:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:a", long_options, &option_index);
data/libmemcached-1.0.18/clients/memtouch.cc:53:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((temp= getenv("MEMCACHED_SERVERS")))
data/libmemcached-1.0.18/clients/memtouch.cc:175:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index);
data/libmemcached-1.0.18/clients/ms_conn.c:2766: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.
        sock_index= (uint32_t)random() % c->total_sfds;
data/libmemcached-1.0.18/clients/ms_conn.c:2771: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.
        sock_index= (uint32_t)random() % ms_setting.rep_write_srv;
data/libmemcached-1.0.18/clients/ms_conn.c:2777:29:  [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.
      sock_index= (uint32_t)random() % c->total_sfds;
data/libmemcached-1.0.18/clients/ms_setting.c:589:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    rnd= random();
data/libmemcached-1.0.18/clients/ms_setting.c:701:19:  [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.
        rnd= (int)random();
data/libmemcached-1.0.18/clients/ms_setting.c:770:21:  [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.
          rnd= (int)random();
data/libmemcached-1.0.18/clients/ms_setting.c:835:30:  [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.
    *(ptr++)= ALPHANUMBERICS[random() % CHAR_COUNT];
data/libmemcached-1.0.18/clients/ms_task.c:112:24:  [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.
    item= &c->item_win[random() % (int64_t)c->set_cursor];
data/libmemcached-1.0.18/clients/ms_task.c:117:24:  [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.
    item= &c->item_win[random() % c->win_size];
data/libmemcached-1.0.18/example/memcached_light.cc:469:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      switch (getopt_long(argc, argv, "", long_options, &option_index))
data/libmemcached-1.0.18/libmemcached/behavior.cc:283:7:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      srandom((uint32_t) time(NULL));
data/libmemcached-1.0.18/libmemcached/get.cc:598:22:  [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.
    start= (uint32_t)random() % (uint32_t)(ptr->number_of_replicas + 1);
data/libmemcached-1.0.18/libmemcached/hash.cc:86:23:  [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 (uint32_t) random() % memcached_server_count(ptr);
data/libmemcached-1.0.18/libmemcached/hosts.cc:91:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom((uint32_t) time(NULL));
data/libmemcached-1.0.18/libmemcached/memcached.cc:224:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (bool(getenv("LIBMEMCACHED")))
data/libmemcached-1.0.18/libmemcached/memcached.cc:226: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.
      string= getenv("LIBMEMCACHED");
data/libmemcached-1.0.18/libtest/alarm.cc:64:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("YATL_ALARM"))
data/libmemcached-1.0.18/libtest/alarm.cc:67: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.
    tv_sec= strtol(getenv("YATL_ALARM"), (char **) NULL, 10);
data/libmemcached-1.0.18/libtest/cmdline.cc:162:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (_use_libtool and getenv("PWD"))
data/libmemcached-1.0.18/libtest/cmdline.cc:164:30:  [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.
      _exectuble_with_path+= getenv("PWD");
data/libmemcached-1.0.18/libtest/comparison.cc:44:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool(getenv("JENKINS_HOME")))
data/libmemcached-1.0.18/libtest/comparison.cc:54:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool(getenv("LOG_COMPILER")) and strstr(getenv("LOG_COMPILER"), "gdb"))
data/libmemcached-1.0.18/libtest/comparison.cc:54:47:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool(getenv("LOG_COMPILER")) and strstr(getenv("LOG_COMPILER"), "gdb"))
data/libmemcached-1.0.18/libtest/comparison.cc:59:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool(getenv("LIBTEST_IN_GDB")))
data/libmemcached-1.0.18/libtest/comparison.cc:69:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool(getenv("LOG_COMPILER")) and strstr(getenv("LOG_COMPILER"), "helgrind"))
data/libmemcached-1.0.18/libtest/comparison.cc:69:47:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool(getenv("LOG_COMPILER")) and strstr(getenv("LOG_COMPILER"), "helgrind"))
data/libmemcached-1.0.18/libtest/core.cc:51:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("YATL_COREDUMP"))
data/libmemcached-1.0.18/libtest/core_count.cc:89:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "", long_options, &option_index);
data/libmemcached-1.0.18/libtest/drizzled.cc:77:41:  [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.
    drizzle_st *drizzle= drizzle_create(getenv("MYSQL_SERVER"),
data/libmemcached-1.0.18/libtest/drizzled.cc:78:41:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                                        getenv("MYSQL_PORT") ? atoi("MYSQL_PORT") : DRIZZLE_DEFAULT_TCP_PORT,
data/libmemcached-1.0.18/libtest/drizzled.cc:79:41:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                                        getenv("MYSQL_USER"),
data/libmemcached-1.0.18/libtest/drizzled.cc:80:41:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                                        getenv("MYSQL_PASSWORD"),
data/libmemcached-1.0.18/libtest/drizzled.cc:81:41:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                                        getenv("MYSQL_SCHEMA"), 0);
data/libmemcached-1.0.18/libtest/has.cc:78:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool((getenv_ptr= getenv("POSTGES_IS_RUNNING_AND_SETUP"))))
data/libmemcached-1.0.18/libtest/has.cc:99:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (bool((getenv_ptr= getenv("PWD"))) and 
data/libmemcached-1.0.18/libtest/has.cc:159:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (bool((getenv_ptr= getenv("PWD"))) and strcmp(MEMCACHED_BINARY, "memcached/memcached") == 0)
data/libmemcached-1.0.18/libtest/is_local.cc:45:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  return (getenv("LIBTEST_LOCAL"));
data/libmemcached-1.0.18/libtest/libtool.cc:50: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.
    if (getenv("PWD"))
data/libmemcached-1.0.18/libtest/libtool.cc:52: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.
      libtool_buffer+= getenv("PWD");
data/libmemcached-1.0.18/libtest/main.cc:148:22:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int option_rv= getopt_long(argc, argv, "", long_options, &option_index);
data/libmemcached-1.0.18/libtest/main.cc:196:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom((unsigned int)time(NULL));
data/libmemcached-1.0.18/libtest/main.cc:199:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool(getenv("YATL_REPEAT")))
data/libmemcached-1.0.18/libtest/main.cc:202:25:  [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.
    opt_repeat= strtoul(getenv("YATL_REPEAT"), (char **) NULL, 10);
data/libmemcached-1.0.18/libtest/main.cc:205:64:  [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.
      Error << "ENV YATL_REPEAT passed an invalid value: `" << getenv("YATL_REPEAT") << "`";
data/libmemcached-1.0.18/libtest/main.cc:210: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.
  if ((bool(getenv("YATL_QUIET")) and (strcmp(getenv("YATL_QUIET"), "0") == 0)) or opt_quiet)
data/libmemcached-1.0.18/libtest/main.cc:210:47:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((bool(getenv("YATL_QUIET")) and (strcmp(getenv("YATL_QUIET"), "0") == 0)) or opt_quiet)
data/libmemcached-1.0.18/libtest/main.cc:214:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  else if (getenv("JENKINS_URL"))
data/libmemcached-1.0.18/libtest/main.cc:216:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (bool(getenv("YATL_QUIET")) and (strcmp(getenv("YATL_QUIET"), "1") == 0))
data/libmemcached-1.0.18/libtest/main.cc:216:48:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (bool(getenv("YATL_QUIET")) and (strcmp(getenv("YATL_QUIET"), "1") == 0))
data/libmemcached-1.0.18/libtest/main.cc:224: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.
  if ((bool(getenv("YATL_RUN_MASSIVE_TESTS"))) or opt_massive)
data/libmemcached-1.0.18/libtest/main.cc:241:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("LIBTEST_TMP"))
data/libmemcached-1.0.18/libtest/main.cc:243:61:  [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.
    snprintf(&tmp_directory[0], tmp_directory.size(), "%s", getenv("LIBTEST_TMP"));
data/libmemcached-1.0.18/libtest/main.cc:266:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("YATL_COLLECTION_TO_RUN"))
data/libmemcached-1.0.18/libtest/main.cc:268:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (strlen(getenv("YATL_COLLECTION_TO_RUN")))
data/libmemcached-1.0.18/libtest/main.cc:270:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      collection_to_run= getenv("YATL_COLLECTION_TO_RUN");
data/libmemcached-1.0.18/libtest/server.cc:208:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("YATL_GDB_SERVER"))
data/libmemcached-1.0.18/libtest/server.cc:219:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("YATL_PTRCHECK_SERVER"))
data/libmemcached-1.0.18/libtest/server.cc:223:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  else if (getenv("YATL_VALGRIND_SERVER"))
data/libmemcached-1.0.18/libtest/server.cc:469:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("LIBTEST_SYSLOG") and has_syslog())
data/libmemcached-1.0.18/libtest/signal.cc:92:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool(getenv("LIBTEST_IN_GDB")) == false)
data/libmemcached-1.0.18/libtest/signal.cc:200:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (bool(getenv("LIBTEST_IN_GDB")) == false)
data/libmemcached-1.0.18/libtest/unittest.cc:73: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.
  test_true(getenv("LIBTOOL_COMMAND"));
data/libmemcached-1.0.18/libtest/unittest.cc:79: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.
  test_true(getenv("VALGRIND_COMMAND"));
data/libmemcached-1.0.18/libtest/unittest.cc:85: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.
  test_true(getenv("HELGRIND_COMMAND"));
data/libmemcached-1.0.18/libtest/unittest.cc:91: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.
  test_true(getenv("GDB_COMMAND"));
data/libmemcached-1.0.18/libtest/unittest.cc:283:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("LIBTEST_LOCAL"))
data/libmemcached-1.0.18/libtest/unittest.cc:302: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.
  if ((ptr= getenv("LIBTEST_LOCAL")) == NULL)
data/libmemcached-1.0.18/libtest/unittest.cc:543:25:  [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.
  test_skip(false, bool(getenv("LOG_COMPILER")));
data/libmemcached-1.0.18/libtest/unittest.cc:903: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.
  int64_t minutes= random() % 50;
data/libmemcached-1.0.18/libtest/valgrind.h:41:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("LOG_COMPILER")  && strstr(getenv("LOG_COMPILER"), "valgrind"))
data/libmemcached-1.0.18/libtest/valgrind.h:41:41:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("LOG_COMPILER")  && strstr(getenv("LOG_COMPILER"), "valgrind"))
data/libmemcached-1.0.18/libtest/valgrind.h:43:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (strstr(getenv("LOG_COMPILER"), "--tool") == NULL)
data/libmemcached-1.0.18/libtest/valgrind.h:48:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (strstr(getenv("LOG_COMPILER"), "--tool=memcheck"))
data/libmemcached-1.0.18/libtest/vchar.cc:48:18:  [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 (size_t)random() % ALPHANUMERICS_SIZE;
data/libmemcached-1.0.18/libtest/wait.cc:123:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int option_rv= getopt_long(argc, argv, "", long_options, &option_index);
data/libmemcached-1.0.18/tests/libmemcached-1.0/all_tests.cc:76:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("LIBMEMCACHED_SERVER_NUMBER"))
data/libmemcached-1.0.18/tests/libmemcached-1.0/all_tests.cc:78:42:  [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.
    unsigned long int set_count= strtoul(getenv("LIBMEMCACHED_SERVER_NUMBER"), (char **) NULL, 10);
data/libmemcached-1.0.18/tests/libmemcached-1.0/atomsmasher.cc:78:35:  [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.
    uint32_t test_bit= (uint32_t)(random() % GLOBAL_COUNT);
data/libmemcached-1.0.18/tests/libmemcached-1.0/atomsmasher.cc:79:30:  [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.
    uint8_t which= (uint8_t)(random() % 2);
data/libmemcached-1.0.18/tests/libmemcached-1.0/atomsmasher.cc:114:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("MEMCACHED_ATOM_BURIN_IN"))
data/libmemcached-1.0.18/tests/libmemcached-1.0/haldenbrand.cc:51:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom(10);
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:223: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.
    test_ports[x]= (in_port_t)random() % 64000;
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:327:32:  [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.
    test_ports[x]= (in_port_t)(random() % 64000);
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:631:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if (random() %2)
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:649:22:  [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.
      int which_key= random() % int(keys.size());
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4451:11:  [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.
      if (random() % 2)
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4974:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (! (remote_server= getenv("LIBMEMCACHED_REMOTE_SERVER")))
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:490:25:  [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.
    uint32_t number_of= random() % uint32_t(option_list.size());
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:493:36:  [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.
      size_t option_list_position= random() % option_list.size();
data/libmemcached-1.0.18/tests/libmemcached-1.0/server_add.cc:101:108:  [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.
    test_compare(MEMCACHED_SUCCESS, memcached_server_add_with_weight(memc, hostname.c_str(), base_port +x, random() % 10));
data/libmemcached-1.0.18/tests/libmemcached_world.h:53: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.
    if (getenv("LOG_COMPILER"))
data/libmemcached-1.0.18/tests/mem_udp.cc:148:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("LOG_COMPILER"))
data/libmemcached-1.0.18/tests/mem_udp.cc:160:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("LOG_COMPILER"))
data/libmemcached-1.0.18/tests/mem_udp.cc:272:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("LOG_COMPILER"))
data/libmemcached-1.0.18/tests/mem_udp.cc:519:39:  [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.
    test_st current_op= mixed_io_ops[(random() % 8)];
data/libmemcached-1.0.18/win32/wrappers.h:71:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random() rand()
data/libmemcached-1.0.18/win32/wrappers.h:72:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom(a) while (false) {}
data/libmemcached-1.0.18/clients/memaslap.c:141:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    if ((help_message= (char *)ms_lookup_help(long_options[x].val)) != NULL)
data/libmemcached-1.0.18/clients/memaslap.c:345:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  ret= atoi(optarg);
data/libmemcached-1.0.18/clients/memaslap.c:715: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/libmemcached-1.0.18/clients/memcapable.cc:81:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char bytes[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:89: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[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:417:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(cmd->bytes + key_offset, key, keylen);
data/libmemcached-1.0.18/clients/memcapable.cc:419: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(cmd->bytes + key_offset + keylen, dta, dtalen);
data/libmemcached-1.0.18/clients/memcapable.cc:449: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(cmd->bytes + key_offset, key, keylen);
data/libmemcached-1.0.18/clients/memcapable.cc:452: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(cmd->bytes + key_offset + keylen, dta, dtalen);
data/libmemcached-1.0.18/clients/memcapable.cc:507:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(cmd->bytes + key_offset, key, keylen);
data/libmemcached-1.0.18/clients/memcapable.cc:1240:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[80];
data/libmemcached-1.0.18/clients/memcapable.cc:1251:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[80];
data/libmemcached-1.0.18/clients/memcapable.cc:1273:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[80];
data/libmemcached-1.0.18/clients/memcapable.cc:1291:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[256];
data/libmemcached-1.0.18/clients/memcapable.cc:1327:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1352:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1383:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1426:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1467:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1493:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1542:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1564:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[300];
data/libmemcached-1.0.18/clients/memcapable.cc:1576:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1615:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1668:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:1757:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[5];
data/libmemcached-1.0.18/clients/memcapable.cc:1786: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 cmd[300];
data/libmemcached-1.0.18/clients/memcapable.cc:1798: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 buffer[80];
data/libmemcached-1.0.18/clients/memcapable.cc:1800:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int val= atoi(buffer);
data/libmemcached-1.0.18/clients/memcapable.cc:1822: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 cmd[300];
data/libmemcached-1.0.18/clients/memcapable.cc:1836: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 buffer[80];
data/libmemcached-1.0.18/clients/memcapable.cc:1838:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int val= atoi(buffer);
data/libmemcached-1.0.18/clients/memcapable.cc:1853:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[80];
data/libmemcached-1.0.18/clients/memcapable.cc:1932: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 cmd[400];
data/libmemcached-1.0.18/clients/memcapable.cc:1993:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/clients/memcapable.cc:2104:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      timeout= atoi(optarg);
data/libmemcached-1.0.18/clients/memcapable.cc:2185: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 buffer[80] = {0};
data/libmemcached-1.0.18/clients/memcat.cc:123:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          FILE *fp= fopen(opt_file, "w");
data/libmemcached-1.0.18/clients/memcp.cc:184: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).
    int fd= open(argv[optind], O_RDONLY);
data/libmemcached-1.0.18/clients/memparse.cc:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFSIZ];
data/libmemcached-1.0.18/clients/ms_conn.c:790: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_buf[NI_MAXSERV];
data/libmemcached-1.0.18/clients/ms_conn.c:856:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&c->srv_recv_addr, next->ai_addr, c->srv_recv_addr_size);
data/libmemcached-1.0.18/clients/ms_conn.c:1306:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&c->precmd, &c->currcmd, sizeof(ms_cmdstat_t));    /* replicate command state */
data/libmemcached-1.0.18/clients/ms_conn.c:1514:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf + wbytes, c->udppkt[i].data + c->udppkt[i].copybytes,
data/libmemcached-1.0.18/clients/ms_conn.c:1778: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 set_time[64];
data/libmemcached-1.0.18/clients/ms_conn.c:1779: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 cur_time[64];
data/libmemcached-1.0.18/clients/ms_conn.c:2563:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&c->precmd, &c->currcmd, sizeof(ms_cmdstat_t));        /* replicate command state */
data/libmemcached-1.0.18/clients/ms_setting.c:307: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 userpath[PATH_MAX];
data/libmemcached-1.0.18/clients/ms_setting.c:318:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd= fopen(userpath, "w+");
data/libmemcached-1.0.18/clients/ms_setting.c:360:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((f= fopen(cfg_file, "r")) == NULL)
data/libmemcached-1.0.18/clients/ms_setting.h:52: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 srv_host_name[MCD_HOST_LENGTH];              /* host name of server */
data/libmemcached-1.0.18/clients/ms_task.c:752: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 set_time[64];
data/libmemcached-1.0.18/clients/ms_task.c:753: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 cur_time[64];
data/libmemcached-1.0.18/clients/ms_task.c:857: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 set_time[64];
data/libmemcached-1.0.18/clients/ms_task.c:858: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 cur_time[64];
data/libmemcached-1.0.18/clients/utilities.cc:47:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fd = open("/dev/null", O_RDWR, 0)) < 0)
data/libmemcached-1.0.18/example/interface_v0.cc:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/libmemcached-1.0.18/example/interface_v0.cc:93:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ptr, item->key, item->nkey);
data/libmemcached-1.0.18/example/interface_v0.cc:98:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ptr, item->data, item->size);
data/libmemcached-1.0.18/example/interface_v0.cc:229:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(item->data, &value, sizeof(value));
data/libmemcached-1.0.18/example/interface_v0.cc:259:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/libmemcached-1.0.18/example/interface_v0.cc:273: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(response.buffer + sizeof(protocol_binary_response_header), versionstring, strlen(versionstring));
data/libmemcached-1.0.18/example/interface_v0.cc:311:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(nitem->data, item->data, item->size);
data/libmemcached-1.0.18/example/interface_v0.cc:312:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(((char*)(nitem->data)) + item->size, val, vallen);
data/libmemcached-1.0.18/example/interface_v0.cc:316:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(nitem->data, val, vallen);
data/libmemcached-1.0.18/example/interface_v0.cc:317:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(((char*)(nitem->data)) + vallen, item->data, item->size);
data/libmemcached-1.0.18/example/interface_v1.cc:94: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(nitem->data, item->data, item->size);
data/libmemcached-1.0.18/example/interface_v1.cc:95:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(((char*)(nitem->data)) + item->size, val, vallen);
data/libmemcached-1.0.18/example/interface_v1.cc:138:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(item->data, &val, sizeof(val));
data/libmemcached-1.0.18/example/interface_v1.cc:230:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024] = {0};
data/libmemcached-1.0.18/example/interface_v1.cc:231:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, key, keylen);
data/libmemcached-1.0.18/example/interface_v1.cc:232: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(item->data, &val, sizeof(val));
data/libmemcached-1.0.18/example/interface_v1.cc:275: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(nitem->data, val, vallen);
data/libmemcached-1.0.18/example/interface_v1.cc:276:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(((char*)(nitem->data)) + vallen, item->data, item->size);
data/libmemcached-1.0.18/example/memcached_light.cc:503:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        maxconns= atoi(optarg);
data/libmemcached-1.0.18/example/storage.cc:93: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(ret->key, key, nkey);
data/libmemcached-1.0.18/example/storage.cc:96:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ret->data, data, size);
data/libmemcached-1.0.18/libhashkit/aes.cc:102: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(_aes_clone_key, _aes_key, sizeof(aes_key_t));
data/libmemcached-1.0.18/libhashkit/aes.cc:133: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(block, source, 16 -pad_len);
data/libmemcached-1.0.18/libhashkit/aes.cc:180:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest, block, AES_BLOCK_SIZE - pad_len);
data/libmemcached-1.0.18/libhashkit/ketama.cc:45:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 results[16];
data/libmemcached-1.0.18/libhashkit/ketama.cc:149: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 sort_host[HASHKIT_CONTINUUM_KEY_SIZE]= "";
data/libmemcached-1.0.18/libhashkit/md5.cc:95:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buffer[64];                         /* input buffer */
data/libmemcached-1.0.18/libhashkit/md5.cc:102:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void MD5Final ( unsigned char digest[16],                         /* message digest */
data/libmemcached-1.0.18/libhashkit/md5.cc:126:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          const unsigned char block[64]);
data/libmemcached-1.0.18/libhashkit/md5.cc:132:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char PADDING[64] = {
data/libmemcached-1.0.18/libhashkit/md5.cc:227:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((POINTER)&context->buffer[idx], (CONST_POINTER)input, partLen);
data/libmemcached-1.0.18/libhashkit/md5.cc:239: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((POINTER)&context->buffer[idx], (CONST_POINTER)&input[i],
data/libmemcached-1.0.18/libhashkit/md5.cc:248:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      unsigned char digest[16],                         /* message digest */
data/libmemcached-1.0.18/libhashkit/md5.cc:251:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 bits[8];
data/libmemcached-1.0.18/libhashkit/md5.cc:278:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          const unsigned char block[64])
data/libmemcached-1.0.18/libhashkit/md5.cc:403:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 results[16];
data/libmemcached-1.0.18/libhashkit/string.cc:147: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(string->end, value, length);
data/libmemcached-1.0.18/libhashkit/string.cc:166:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(c_ptr, hashkit_string_c_str(string), hashkit_string_length(string));
data/libmemcached-1.0.18/libmemcached-1.0/struct/result.h:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char item_key[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/libmemcached-1.0/struct/server.h:99: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 hostname[MEMCACHED_NI_MAXHOST];
data/libmemcached-1.0.18/libmemcached-1.0/struct/stat.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 version[MEMCACHED_VERSION_STRING_LENGTH];
data/libmemcached-1.0.18/libmemcached/array.c:72:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(array->c_str, str, str_length);
data/libmemcached-1.0.18/libmemcached/auto.cc:77:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/backtrace.cc:86: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 demangled_buffer[1024];
data/libmemcached-1.0.18/libmemcached/connect.cc: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 str_port[MEMCACHED_NI_MAXSERV]= { 0 };
data/libmemcached-1.0.18/libmemcached/connect.cc:809: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 buffer[1024];
data/libmemcached-1.0.18/libmemcached/csl/context.cc:103: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(_hostname, str, copy_length);
data/libmemcached-1.0.18/libmemcached/csl/context.h:135: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 _hostname[NI_MAXHOST];
data/libmemcached-1.0.18/libmemcached/csl/parser.cc:1120: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/libmemcached-1.0.18/libmemcached/csl/parser.cc:1372: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 yymsgbuf[128];
data/libmemcached-1.0.18/libmemcached/csl/parser.cc:1640:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char buffer[1024];
data/libmemcached-1.0.18/libmemcached/csl/parser.cc:1654:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char buffer[1024];
data/libmemcached-1.0.18/libmemcached/csl/parser.cc:1668:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char buffer[1024];
data/libmemcached-1.0.18/libmemcached/csl/parser.cc:1785:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char buffer[1024];
data/libmemcached-1.0.18/libmemcached/csl/scanner.cc:1094:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, context->buf + context->pos, result); \
data/libmemcached-1.0.18/libmemcached/csl/scanner.cc:1439:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ yylval->number= atoi(yytext); return (NUMBER); }
data/libmemcached-1.0.18/libmemcached/csl/scanner.cc:1444:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ yylval->number= atoi(yytext +1); return PORT; }
data/libmemcached-1.0.18/libmemcached/csl/scanner.cc:1449:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
{ yylval->number= atoi(yytext +2); return WEIGHT_START; }
data/libmemcached-1.0.18/libmemcached/delete.cc:206: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 buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/dump.cc:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/error.cc:55: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 message[MAX_ERROR_LENGTH];
data/libmemcached-1.0.18/libmemcached/error.cc:75:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(error, memc.error_messages, sizeof(memcached_error_t));
data/libmemcached-1.0.18/libmemcached/error.cc:166: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 errmsg[MAX_ERROR_LENGTH];
data/libmemcached-1.0.18/libmemcached/error.cc:225: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).
    if ((error_log_fd= open("/tmp/libmemcachd.log", O_CREAT | O_WRONLY | O_APPEND, 0644)) < 0)
data/libmemcached-1.0.18/libmemcached/error.cc:273:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/libmemcached/error.cc:310: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 hostname_port_message[MAX_ERROR_LENGTH];
data/libmemcached-1.0.18/libmemcached/error.cc:345: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 hostname_port[MEMCACHED_NI_MAXHOST +MEMCACHED_NI_MAXSERV + sizeof("host : ")];
data/libmemcached-1.0.18/libmemcached/error.cc:417: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 hostname_port_message[MAX_ERROR_LENGTH];
data/libmemcached-1.0.18/libmemcached/error.cc:456: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 hostname_port_message[MAX_ERROR_LENGTH];
data/libmemcached-1.0.18/libmemcached/error.cc:642: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(error, server.error_messages, sizeof(memcached_error_t));
data/libmemcached-1.0.18/libmemcached/exist.cc:61:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/fetch.cc:200:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/flush.cc: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 buffer[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/libmemcached/flush.cc:132: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 response_buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/get.cc:252: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 buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/hash.cc:112:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char temp[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/libmemcached/hosts.cc:104:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 results[16];
data/libmemcached-1.0.18/libmemcached/hosts.cc:241: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 sort_host[1 +MEMCACHED_NI_MAXHOST +1 +MEMCACHED_NI_MAXSERV +1 + MEMCACHED_NI_MAXSERV ]= "";
data/libmemcached-1.0.18/libmemcached/hosts.cc:286:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char sort_host[MEMCACHED_NI_MAXHOST +1 +MEMCACHED_NI_MAXSERV +1 +MEMCACHED_NI_MAXSERV]= "";
data/libmemcached-1.0.18/libmemcached/hosts.cc:594:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[MEMCACHED_NI_MAXHOST]= { 0 };
data/libmemcached-1.0.18/libmemcached/hosts.cc:596: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(buffer, hostname, hostname_length);
data/libmemcached-1.0.18/libmemcached/instance.hpp:131:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(_hostname, hostname_.c_str, hostname_.size);
data/libmemcached-1.0.18/libmemcached/instance.hpp:136:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(_hostname, memcached_literal_param("localhost"));
data/libmemcached-1.0.18/libmemcached/instance.hpp:176: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 read_buffer[MEMCACHED_MAX_BUFFER];
data/libmemcached-1.0.18/libmemcached/instance.hpp:177:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char write_buffer[MEMCACHED_MAX_BUFFER];
data/libmemcached-1.0.18/libmemcached/instance.hpp:178: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 _hostname[MEMCACHED_NI_MAXHOST];
data/libmemcached-1.0.18/libmemcached/io.cc:153:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/io.cc:529:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buffer_ptr, instance->read_ptr, difference);
data/libmemcached-1.0.18/libmemcached/io.cc:562:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[MEMCACHED_MAX_BUFFER];
data/libmemcached-1.0.18/libmemcached/io.cc:626:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(write_ptr, buffer_ptr, should_write);
data/libmemcached-1.0.18/libmemcached/options.cc:56:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *fp= fopen(memcached_array_string(real_name), "r");
data/libmemcached-1.0.18/libmemcached/options.cc: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 buffer[BUFSIZ];
data/libmemcached-1.0.18/libmemcached/parse.cc:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[HUGE_STRING_LEN];
data/libmemcached-1.0.18/libmemcached/parse.cc:69:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buffer, begin_ptr, (size_t) (string - begin_ptr));
data/libmemcached-1.0.18/libmemcached/parse.cc:76:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buffer, begin_ptr, length);
data/libmemcached-1.0.18/libmemcached/response.cc:629: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 version_buffer[32]; // @todo document this number
data/libmemcached-1.0.18/libmemcached/response.cc:674: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 touch_buffer[4]; // @todo document this number
data/libmemcached-1.0.18/libmemcached/response.cc:762:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hole[SMALL_STRING_LEN];
data/libmemcached-1.0.18/libmemcached/response.cc:869:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[SMALL_STRING_LEN];
data/libmemcached-1.0.18/libmemcached/response.cc:883:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/libmemcached/sasl.cc: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 host[MEMCACHED_NI_MAXHOST];
data/libmemcached-1.0.18/libmemcached/sasl.cc:81:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char port[MEMCACHED_NI_MAXSERV];
data/libmemcached-1.0.18/libmemcached/sasl.cc:173: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 mech[MEMCACHED_MAX_BUFFER];
data/libmemcached-1.0.18/libmemcached/sasl.cc:193: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 laddr[MEMCACHED_NI_MAXHOST + MEMCACHED_NI_MAXSERV];
data/libmemcached-1.0.18/libmemcached/sasl.cc:194: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 raddr[MEMCACHED_NI_MAXHOST + MEMCACHED_NI_MAXSERV];
data/libmemcached-1.0.18/libmemcached/sasl.cc:361: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(secret->data, password, password_length);
data/libmemcached-1.0.18/libmemcached/sasl.cc:472: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(callbacks, source->sasl.callbacks, (total + 1) * sizeof(sasl_callback_t));
data/libmemcached-1.0.18/libmemcached/sasl.cc:509:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(n, src, src->len + 1 + sizeof(*n));
data/libmemcached-1.0.18/libmemcached/server.cc:83:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(self->hostname, hostname.c_str, hostname.size);
data/libmemcached-1.0.18/libmemcached/stats.cc:135:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(memc_stat->version, value, strlen(value));
data/libmemcached-1.0.18/libmemcached/stats.cc:364:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[SMALL_STRING_LEN];
data/libmemcached-1.0.18/libmemcached/stats.cc:473: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(ret, buffer, (size_t) length);
data/libmemcached-1.0.18/libmemcached/stats.cc:485:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/stats.cc:585:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/stats.cc:794: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(list, memcached_stat_keys, sizeof(memcached_stat_keys));
data/libmemcached-1.0.18/libmemcached/storage.cc:261: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 flags_buffer[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/libmemcached/storage.cc:269: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 expiration_buffer[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/libmemcached/storage.cc:277: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 value_buffer[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/libmemcached/storage.cc:285: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 cas_buffer[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/libmemcached/storage.cc:329:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/string.cc:55: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 error_message[1024];
data/libmemcached-1.0.18/libmemcached/string.cc:175: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(string->end, value, length);
data/libmemcached-1.0.18/libmemcached/string.cc:195:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(c_ptr, memcached_string_value(string), memcached_string_length(string));
data/libmemcached-1.0.18/libmemcached/touch.cc: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 expiration_buffer[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/libmemcached/touch.cc:149:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/verbosity.cc:66: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 buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/verbosity.cc: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 buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
data/libmemcached-1.0.18/libmemcached/version.cc:135: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 buffer[32];
data/libmemcached-1.0.18/libmemcached/windows.hpp:76: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 sun_path[108];
data/libmemcached-1.0.18/libmemcachedprotocol/ascii_handler.c:281:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[300];
data/libmemcached-1.0.18/libmemcachedprotocol/ascii_handler.c:282:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(buffer, "VALUE ");
data/libmemcached-1.0.18/libmemcachedprotocol/ascii_handler.c:544:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[80];
data/libmemcached-1.0.18/libmemcachedprotocol/ascii_handler.c:603:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[80];
data/libmemcached-1.0.18/libmemcachedprotocol/ascii_handler.c:1023: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 *tokens[10];
data/libmemcached-1.0.18/libmemcachedprotocol/cache.c:63: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(nm, name, name_length);
data/libmemcached-1.0.18/libmemcachedprotocol/cache.c:139:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(((char*)ret) + cache->bufsize - (2 * sizeof(redzone_pattern)),
data/libmemcached-1.0.18/libmemcachedprotocol/handler.c:229:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chunk->data + chunk->nbytes, data, bulk);
data/libmemcached-1.0.18/libmemcachedprotocol/handler.c:380:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(client->root->input_buffer, client->input_buffer,
data/libmemcached-1.0.18/libmemcachedprotocol/handler.c:406:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(client->input_buffer, endptr, (size_t)len);
data/libmemcached-1.0.18/libtest/client.cc:305: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 buffer[2];
data/libmemcached-1.0.18/libtest/client.cc:352: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 buffer[2];
data/libmemcached-1.0.18/libtest/cmdline.cc:221:17:  [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).
    file_stream.open(gdb_run_file.c_str(), std::fstream::out | std::fstream::trunc);
data/libmemcached-1.0.18/libtest/drizzled.cc:78:64:  [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).
                                        getenv("MYSQL_PORT") ? atoi("MYSQL_PORT") : DRIZZLE_DEFAULT_TCP_PORT,
data/libmemcached-1.0.18/libtest/exception.cc:83:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(_error_message, message_, length_);
data/libmemcached-1.0.18/libtest/exception.cc:101:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(_error_message, other._error_message, other.length());
data/libmemcached-1.0.18/libtest/exception/disconnected.hpp:59: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 _instance[BUFSIZ];
data/libmemcached-1.0.18/libtest/exception/fatal.cc:99: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 last_error[BUFSIZ];
data/libmemcached-1.0.18/libtest/exception/fatal.cc:103:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_error[BUFSIZ];
data/libmemcached-1.0.18/libtest/has.cc:147:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char memcached_binary_path[FILENAME_MAX];
data/libmemcached-1.0.18/libtest/http.cc: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(&_body[0], ptr, _body->size());
data/libmemcached-1.0.18/libtest/killpid.cc:124:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp= fopen(filename.c_str(), "r")))
data/libmemcached-1.0.18/libtest/killpid.cc:134: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).
      pid_t pid= (pid_t)atoi(&pid_buffer[0]);
data/libmemcached-1.0.18/libtest/killpid.cc:154:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp= fopen(filename.c_str(), "r")))
data/libmemcached-1.0.18/libtest/killpid.cc:164: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).
      pid_t pid= (pid_t)atoi(&pid_buffer[0]);
data/libmemcached-1.0.18/libtest/killpid.cc:193:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp= fopen(filename.c_str(), "r")))
data/libmemcached-1.0.18/libtest/killpid.cc:201:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      ret= (pid_t)atoi(&pid_buffer[0]);
data/libmemcached-1.0.18/libtest/libtool.cc:41:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char _libtool[1024]= { 0 };
data/libmemcached-1.0.18/libtest/main.cc:354: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).
      xml_file.open(file_name.c_str(), std::ios::trunc);
data/libmemcached-1.0.18/libtest/memcached.cc:157:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[30];
data/libmemcached-1.0.18/libtest/server.cc:399:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  if ((fd= mkstemp(&file_buffer[0])) == -1)
data/libmemcached-1.0.18/libtest/server.cc:428:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  if ((fd= mkstemp(&file_buffer[0])) == -1)
data/libmemcached-1.0.18/libtest/server.cc:448:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  if ((fd= mkstemp(&file_buffer[0])) == -1)
data/libmemcached-1.0.18/libtest/server.h:130: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 buffer[1024];
data/libmemcached-1.0.18/libtest/socket.cc:40:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char global_socket[1024]= { 0 };
data/libmemcached-1.0.18/libtest/tmpfile.cc:52:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  if ((fd= mkstemp(&file_buffer[0])) == -1)
data/libmemcached-1.0.18/libtest/unittest.cc:360: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 *file= fopen("var/tmp/junk", "w+");
data/libmemcached-1.0.18/libtest/unittest.cc:368: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 *file= fopen("var/run/junk", "w+");
data/libmemcached-1.0.18/libtest/unittest.cc:376: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 *file= fopen("var/log/junk", "w+");
data/libmemcached-1.0.18/libtest/unittest.cc:384: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 *file= fopen("var/drizzle/junk", "w+");
data/libmemcached-1.0.18/libtest/vchar.cc:158: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(&arg[0], str, length);
data/libmemcached-1.0.18/libtest/wait.cc:72:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fd = open("/dev/null", O_RDWR, 0)) < 0)
data/libmemcached-1.0.18/tests/cpp_example.cc:136: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(&raw_products[0], &products[0], products.size() * sizeof(Product));
data/libmemcached-1.0.18/tests/cpp_example.cc:144: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(&products[0], &raw_products[0], raw_products.size());
data/libmemcached-1.0.18/tests/cpp_example.cc:154:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&ret, &raw_product[0], sizeof(Product));
data/libmemcached-1.0.18/tests/cpp_example.cc:166: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(&raw_product[0], &product, sizeof(Product));
data/libmemcached-1.0.18/tests/failure.cc:86:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[1]= { "add_shutdown_server" };
data/libmemcached-1.0.18/tests/hash_plus.cc:165: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 buffer[1024];
data/libmemcached-1.0.18/tests/keys.hpp:78: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 int_buffer[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/tests/keys.hpp:80:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&key_buffer[0], int_buffer, key_length);
data/libmemcached-1.0.18/tests/libmemcached-1.0/atomsmasher.cc:48:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *global_keys[GLOBAL_COUNT];
data/libmemcached-1.0.18/tests/libmemcached-1.0/dump.cc:116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[1024];
data/libmemcached-1.0.18/tests/libmemcached-1.0/generate.cc:64:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *global_keys[GLOBAL_COUNT];
data/libmemcached-1.0.18/tests/libmemcached-1.0/haldenbrand.cc:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char randomstuff[6 * 1024];
data/libmemcached-1.0.18/tests/libmemcached-1.0/haldenbrand.cc:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/tests/libmemcached-1.0/haldenbrand.cc:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/tests/libmemcached-1.0/haldenbrand.cc:158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc: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 options_buffer[1024]= { 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:117: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 server_string[1024];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:152:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char errror_buffer[1024];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:280:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:968: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 context[10];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1172:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[16];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1213: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 key[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1704: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 return_key[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1761: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 blob[1024] = {0};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1809: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 blob[1024] = {0};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1952:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[SMALL_STRING_LEN];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2194:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char return_key[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2274: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 return_key[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2399: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 return_key[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2420: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 return_key[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2635:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2825: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 return_key[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2922:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fp = fopen("ketama_keys.txt", "w")))
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2932:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[10];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2991:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[SMALL_STRING_LEN];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char long_key[255];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3349: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 key[MEMCACHED_MAXIMUM_INTEGER_DISPLAY_LENGTH +1];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3403: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 key[10];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4084: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 blob[1024]= { 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4169:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[250];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4172:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_buffer[2048]= { 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4179:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[250];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4428:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4635: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 blob[1024]= { 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4655:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char the_key[MEMCACHED_MAX_KEY];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4750: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 payload[100];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4830: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 blob[3333] = {0};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4833:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[251];
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4933:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:245: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 buffer[2048];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:353:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:372:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:404:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:413:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:422:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:431:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:607:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:647:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:703:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/plus.cpp:115:27:  [2] (integer) atol:
  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_inc_value= uint64_t(atol(inc_value.c_str()));
data/libmemcached-1.0.18/tests/libmemcached-1.0/plus.cpp:116:27:  [2] (integer) atol:
  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_ret_value= uint64_t(atol(ret_string.c_str()));
data/libmemcached-1.0.18/tests/libmemcached-1.0/pool.cc:69:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[2048];
data/libmemcached-1.0.18/tests/libmemcached-1.0/pool.cc: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 options_buffer[1024]= { 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/pool.cc:345: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 server_string[1024];
data/libmemcached-1.0.18/tests/libmemcached-1.0/pool.cc:380: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 errror_buffer[1024];
data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc:100:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char key[2]= { (char)x, 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc:135: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.
      const char key[2]= { (char)x, 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc:196: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 key[2]= { (char)x, 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc:242:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char key[2]= { (char)x, 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/stat.cc:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[1024];
data/libmemcached-1.0.18/tests/libmemcached-1.0/string.cc:119:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/string.cc:149:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/tests/libmemcached-1.0/virtual_buckets.cc:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/libmemcached-1.0.18/tests/memcapable.cc:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memcapable.cc:77:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memcapable.cc:88:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memcat.cc: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 buffer[1024];
data/libmemcached-1.0.18/tests/memcat.cc:93:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memcp.cc:76:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memdump.cc: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 buffer[1024];
data/libmemcached-1.0.18/tests/memdump.cc:77:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memexist.cc: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 buffer[1024];
data/libmemcached-1.0.18/tests/memexist.cc:92:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memexist.cc:117:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memflush.cc:75:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memping.cc: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 buffer[1024];
data/libmemcached-1.0.18/tests/memping.cc:77:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memrm.cc:74:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memrm.cc: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 memrm_buffer[1024];
data/libmemcached-1.0.18/tests/memrm.cc: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 buffer[1024];
data/libmemcached-1.0.18/tests/memrm.cc:125:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memslap.cc:75:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memslap.cc:86:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memslap.cc:97:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memslap.cc:108:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memslap.cc:119:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memslap.cc:130:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memslap.cc: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 buffer[1024];
data/libmemcached-1.0.18/tests/memstat.cc: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 buffer[1024];
data/libmemcached-1.0.18/tests/memstat.cc:76:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memstat.cc:86:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memtouch.cc: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 buffer[1024];
data/libmemcached-1.0.18/tests/memtouch.cc:91:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/memtouch.cc:113:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/libmemcached-1.0.18/tests/runner.h:99: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 buffer[BUFSIZ];
data/libmemcached-1.0.18/util/daemon.cc:86:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fd = open("/dev/null", O_RDWR, 0)) < 0)
data/libmemcached-1.0.18/util/log.hpp:112: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).
        fd= open(filename.c_str(), O_CREAT | O_WRONLY | O_APPEND, 0644);
data/libmemcached-1.0.18/util/log.hpp:117:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[1024];
data/libmemcached-1.0.18/util/log.hpp:152: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 mesg[BUFSIZ];
data/libmemcached-1.0.18/util/log.hpp:158:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[UTIL_MAX_ERROR_SIZE];
data/libmemcached-1.0.18/util/logfile.hpp:58:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  bool open();
data/libmemcached-1.0.18/util/operation.hpp:60:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&packet[0], command, command_length);
data/libmemcached-1.0.18/util/operation.hpp:85: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(&_response[0] +response_size, buffer, buffer_size);
data/libmemcached-1.0.18/util/pidfile.cc:55: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 pid_file[1024 * 4]= { 0 };
data/libmemcached-1.0.18/util/pidfile.cc:127: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).
  if ((file = open(_filename.c_str(), oflags, S_IRWXU|S_IRGRP|S_IROTH)) < 0)
data/libmemcached-1.0.18/util/pidfile.cc:136:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFSIZ];
data/libmemcached-1.0.18/clients/memaslap.c:342: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).
  char unit= optarg[strlen(optarg) - 1];
data/libmemcached-1.0.18/clients/memaslap.c:344: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).
  optarg[strlen(optarg) - 1]= '\0';
data/libmemcached-1.0.18/clients/memaslap.c:378: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).
  char unit= optarg[strlen(optarg) - 1];
data/libmemcached-1.0.18/clients/memaslap.c:380: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).
  optarg[strlen(optarg) - 1]= '\0';
data/libmemcached-1.0.18/clients/memcapable.cc:686:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  storage_command(&cmd, cc, key, strlen(key), &value, sizeof (value), 0, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:760:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  storage_command(&cmd, cc, key, strlen(key), &value, sizeof (value), 0, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:805: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).
  storage_command(&cmd, PROTOCOL_BINARY_CMD_SET, key, strlen(key),
data/libmemcached-1.0.18/clients/memcapable.cc:806:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  value, strlen(value), 0, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:819:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  storage_command(&cmd, cc, key, strlen(key), &value, sizeof (value), 0, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:897: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).
  raw_command(&cmd, cc, key, strlen(key), NULL, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:935: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).
  raw_command(&cmd, cc, key, strlen(key), NULL, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:982: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).
  arithmetic_command(&cmd, cc, key, strlen(key), 1, 0, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:1020: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).
  arithmetic_command(&cmd, cc, key, strlen(key), 1, 9, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:1104:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    raw_command(&cmd, PROTOCOL_BINARY_CMD_GET, key, strlen(key), NULL, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:1150: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).
  raw_command(&cmd, cc, key, strlen(key), value, strlen(value));
data/libmemcached-1.0.18/clients/memcapable.cc:1150:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  raw_command(&cmd, cc, key, strlen(key), value, strlen(value));
data/libmemcached-1.0.18/clients/memcapable.cc:1162: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).
  raw_command(&cmd, PROTOCOL_BINARY_CMD_GET, key, strlen(key), NULL, 0);
data/libmemcached-1.0.18/clients/memcapable.cc:1213:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  execute(retry_write(cmd, strlen(cmd)));
data/libmemcached-1.0.18/clients/memcapable.cc:1427: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 datasize= strlen(value);
data/libmemcached-1.0.18/clients/memcapable.cc:1432:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  verify(strncmp(buffer + 6, key, strlen(key)) == 0);
data/libmemcached-1.0.18/clients/memcapable.cc:1433: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).
  char *ptr= buffer + 6 + strlen(key) + 1;
data/libmemcached-1.0.18/clients/memcapable.cc:1471: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).
    datasize= strlen(value);
data/libmemcached-1.0.18/clients/memcapable.cc:1494: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 datasize= strlen(value);
data/libmemcached-1.0.18/clients/memcapable.cc:1499:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  verify(strncmp(buffer + 6, key, strlen(key)) == 0);
data/libmemcached-1.0.18/clients/memcapable.cc:1500: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).
  char *ptr= buffer + 6 + strlen(key) + 1;
data/libmemcached-1.0.18/clients/memcapable.cc:1546: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).
    datasize= strlen(value);
data/libmemcached-1.0.18/clients/memcapable.cc:1565:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len= strlen(value);
data/libmemcached-1.0.18/clients/memcapable.cc:1935:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
           key, (unsigned int)strlen(value), noreply ? " noreply" : "",
data/libmemcached-1.0.18/clients/memcapable.cc:1952:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
           key, (unsigned int)strlen(value), noreply ? " noreply" : "",
data/libmemcached-1.0.18/clients/memcat.cc:103:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    string= memcached_get(memc, argv[optind], strlen(argv[optind]),
data/libmemcached-1.0.18/clients/memcp.cc:236:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((read_length= ::read(fd, file_buffer_ptr, (size_t)sbuf.st_size)) == -1)
data/libmemcached-1.0.18/clients/memcp.cc:256: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).
      rc= memcached_add(memc, ptr, strlen(ptr),
data/libmemcached-1.0.18/clients/memcp.cc:262:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      rc= memcached_replace(memc, ptr, strlen(ptr),
data/libmemcached-1.0.18/clients/memcp.cc:268: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).
      rc= memcached_set(memc, ptr, strlen(ptr),
data/libmemcached-1.0.18/clients/memexist.cc:95:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcached_return_t rc= memcached_exist(memc, argv[optind], strlen(argv[optind]));
data/libmemcached-1.0.18/clients/memparse.cc:59: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).
    rc= libmemcached_check_configuration(argv[x], strlen(argv[x]), buffer, sizeof(buffer));
data/libmemcached-1.0.18/clients/memrm.cc:97:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcached_return_t rc= memcached_delete(memc, argv[optind], strlen(argv[optind]), opt_expire);
data/libmemcached-1.0.18/clients/memstat.cc:273: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).
        char *val= memcached_get(servers[x], test_key, strlen(test_key),
data/libmemcached-1.0.18/clients/memtouch.cc:100:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcached_return_t rc= memcached_touch(memc, argv[optind], strlen(argv[optind]), expiration);
data/libmemcached-1.0.18/clients/ms_conn.c:1594:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res= (int)read(c->sfd, c->rudpbuf + c->rudpbytes, (size_t)avail);
data/libmemcached-1.0.18/clients/ms_conn.c:1703:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      res= (int)read(c->sfd, c->rcurr + c->rbytes, (size_t)avail);
data/libmemcached-1.0.18/clients/ms_conn.c:2570:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10);
data/libmemcached-1.0.18/clients/ms_setting.c:102:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int i= getc(fp);
data/libmemcached-1.0.18/clients/ms_setting.c:240: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).
  if (! memcmp(line, "key", strlen("key")))
data/libmemcached-1.0.18/clients/ms_setting.c:244:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (! memcmp(line, "value", strlen("value")))
data/libmemcached-1.0.18/clients/ms_setting.c:248:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (! memcmp(line, "cmd", strlen("cmd")))
data/libmemcached-1.0.18/example/interface_v0.cc:270:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  response.packet.response.bodylen= htonl((uint32_t)strlen(versionstring));
data/libmemcached-1.0.18/example/interface_v0.cc:272: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).
  assert(sizeof(protocol_binary_response_header) +strlen(versionstring) <= 256);
data/libmemcached-1.0.18/example/interface_v0.cc:273:84:  [1] (buffer) strlen:
  Does not handle 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(response.buffer + sizeof(protocol_binary_response_header), versionstring, strlen(versionstring));
data/libmemcached-1.0.18/example/interface_v1.cc:392:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return response_handler(cookie, version, (uint32_t)strlen(version));
data/libmemcached-1.0.18/libmemcached-1.0/struct/server.h:86:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint32_t read;
data/libmemcached-1.0.18/libmemcached/callback.cc:34:66:  [1] (buffer) strlen:
  Does not handle 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 memcached_set_namespace(*ptr, (char*)data, data ? strlen((char*)data) : 0);
data/libmemcached-1.0.18/libmemcached/connect.cc:469:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(servAddr.sun_path, server->hostname(), sizeof(servAddr.sun_path)); /* Copy filename */
data/libmemcached-1.0.18/libmemcached/csl/parser.cc:1005: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).
#   define yystrlen strlen
data/libmemcached-1.0.18/libmemcached/csl/scanner.cc:1259:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/libmemcached-1.0.18/libmemcached/csl/scanner.cc:2522:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return config__scan_bytes(yystr,strlen(yystr) ,yyscanner);
data/libmemcached-1.0.18/libmemcached/fetch.cc:139:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(key, result_buffer->item_key, result_buffer->key_length); // For the binary protocol we will cut off the key :(
data/libmemcached-1.0.18/libmemcached/hash.cc:117:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(temp, memcached_array_string(ptr->_namespace), memcached_array_size(ptr->_namespace));
data/libmemcached-1.0.18/libmemcached/hash.cc:118:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(temp + memcached_array_size(ptr->_namespace), key, key_length);
data/libmemcached-1.0.18/libmemcached/hosts.cc:571:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t hostname_length= hostname ? strlen(hostname) : 0;
data/libmemcached-1.0.18/libmemcached/instance.hpp:157:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint32_t read;
data/libmemcached-1.0.18/libmemcached/memcached.cc:227:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      length= string ? strlen(string) : 0;
data/libmemcached-1.0.18/libmemcached/options.cc:68: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 length= strlen(buffer);
data/libmemcached-1.0.18/libmemcached/options.cc:103:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(error_buffer, memcached_last_error_message(memc_ptr), error_buffer_size);
data/libmemcached-1.0.18/libmemcached/options.cc:116:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(error_buffer, memcached_last_error_message(memc_ptr), error_buffer_size);
data/libmemcached-1.0.18/libmemcached/parse.cc:57: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).
  end_ptr= server_strings + strlen(server_strings);
data/libmemcached-1.0.18/libmemcached/parse.cc:75:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t length= strlen(begin_ptr);
data/libmemcached-1.0.18/libmemcached/sasl.cc:241: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).
  uint16_t keylen= (uint16_t)strlen(chosenmech);
data/libmemcached-1.0.18/libmemcached/sasl.cc:304: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).
    *len= (unsigned int)strlen(*result);
data/libmemcached-1.0.18/libmemcached/sasl.cc:347: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).
  size_t password_length= strlen(password);
data/libmemcached-1.0.18/libmemcached/sasl.cc:348: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).
  size_t username_length= strlen(username);
data/libmemcached-1.0.18/libmemcached/sasl.cc:366:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  callbacks[0].context= strncpy(name, username, username_length +1);
data/libmemcached-1.0.18/libmemcached/sasl.cc:479:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      callbacks[x].context= (sasl_callback_t*)libmemcached_malloc(clone, strlen((const char*)source->sasl.callbacks[x].context));
data/libmemcached-1.0.18/libmemcached/sasl.cc:492:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy((char*)callbacks[x].context, (const char*)source->sasl.callbacks[x].context, sizeof(callbacks[x].context));
data/libmemcached-1.0.18/libmemcached/stats.cc:87:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(key) < 1)
data/libmemcached-1.0.18/libmemcached/stats.cc:135:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcpy(memc_stat->version, value, strlen(value));
data/libmemcached-1.0.18/libmemcached/stats.cc:136: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).
    memc_stat->version[strlen(value)]= 0;
data/libmemcached-1.0.18/libmemcached/stats.cc:542:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t key_length= strlen(buffer);
data/libmemcached-1.0.18/libmemcached/stats.cc:546:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  buffer+key_length+1, strlen(buffer+key_length+1),
data/libmemcached-1.0.18/libmemcached/stats.cc:552: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).
      if ((set_data(memc_stat, buffer, buffer + strlen(buffer) + 1)) == MEMCACHED_UNKNOWN_STAT_KEY)
data/libmemcached-1.0.18/libmemcached/stats.cc:609:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    key, strlen(key),
data/libmemcached-1.0.18/libmemcached/stats.cc:610:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    value, strlen(value),
data/libmemcached-1.0.18/libmemcached/stats.cc:662: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).
    args_length= strlen(args);
data/libmemcached-1.0.18/libmemcached/stats.cc:749: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).
      args_length= strlen(args);
data/libmemcached-1.0.18/libmemcached/stats.cc:845:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 local_context check(func, context, args, args ? strlen(args) : 0);
data/libmemcached-1.0.18/libmemcached/storage.cc:300: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).
    { storage_op_string(verb), strlen(storage_op_string(verb))},
data/libmemcached-1.0.18/libmemcachedprotocol/ascii_handler.c:209: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).
  return client->root->spool(client, text, strlen(text));
data/libmemcached-1.0.18/libmemcachedprotocol/ascii_handler.c:313:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  client->root->spool(client, buffer, strlen(buffer));
data/libmemcached-1.0.18/libmemcachedprotocol/cache.c:61: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 name_length= strlen(name);
data/libmemcached-1.0.18/libmemcachedprotocol/handler.c:283:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    client->root->spool(client, err, strlen(err));
data/libmemcached-1.0.18/libtest/cmdline.cc:396:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (stdout_fd.read(_stdout_buffer) == true)
data/libmemcached-1.0.18/libtest/cmdline.cc:404:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (stderr_fd.read(_stderr_buffer) == true)
data/libmemcached-1.0.18/libtest/cmdline.cc:553:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool Application::Pipe::read(libtest::vchar_t& arg)
data/libmemcached-1.0.18/libtest/cmdline.cc:562:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((read_length= ::read(_pipe_fd[READ], &buffer[0], buffer.size())))
data/libmemcached-1.0.18/libtest/cmdline.h:124:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(libtest::vchar_t&);
data/libmemcached-1.0.18/libtest/comparison.hpp:107:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strncmp(__expected, __actual, strlen(__expected)))
data/libmemcached-1.0.18/libtest/exception/fatal.cc:116:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(_instance, other._instance, BUFSIZ);
data/libmemcached-1.0.18/libtest/has.cc:168:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(memcached_binary_path, arg_buffer.str().c_str(), FILENAME_MAX);
data/libmemcached-1.0.18/libtest/has.cc:188:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (memcached_binary_path[0] and (strlen(memcached_binary_path) > 0))
data/libmemcached-1.0.18/libtest/lite.h:86:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return strlen(s);
data/libmemcached-1.0.18/libtest/main.cc:268: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(getenv("YATL_COLLECTION_TO_RUN")))
data/libmemcached-1.0.18/libtest/server_container.cc:320:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getchar();
data/libmemcached-1.0.18/libtest/socket.cc:58:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(global_socket, socket, strlen(socket));
data/libmemcached-1.0.18/libtest/socket.cc:58: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).
    strncpy(global_socket, socket, strlen(socket));
data/libmemcached-1.0.18/libtest/vchar.cc:140: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 length= strlen(ptr);
data/libmemcached-1.0.18/tests/hash_plus.cc:164: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).
      hash_val= hashk.digest(*ptr, strlen(*ptr));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:156: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).
                 libhashkit_one_at_a_time(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:170:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 libhashkit_md5(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:184: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).
                 libhashkit_crc32(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:200:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 libhashkit_fnv1_64(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:215: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).
                 libhashkit_fnv1a_64(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:229:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 libhashkit_fnv1_32(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:243: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).
                 libhashkit_fnv1a_32(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:259: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).
                 libhashkit_hsieh(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:279:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 libhashkit_murmur3(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:300:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 libhashkit_murmur(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:315:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 libhashkit_jenkins(*ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:411:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     hashkit_digest(hashk, *ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/hashkit_functions.cc:440: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).
                 hashkit_digest(hashk, *ptr, strlen(*ptr)));
data/libmemcached-1.0.18/tests/libmemcached-1.0/atomsmasher.cc:138: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).
  memcached_return_t rc= memcached_set(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/atomsmasher.cc:139:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/atomsmasher.cc:143: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).
  rc= memcached_add(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/atomsmasher.cc:144:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/haldenbrand.cc:78:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               randomstuff, strlen(randomstuff),
data/libmemcached-1.0.18/tests/libmemcached-1.0/ketama.cc:85:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t server_idx = memcached_generate_hash(memc, ketama_test_cases[x].key, strlen(ketama_test_cases[x].key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/ketama.cc:146:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t server_idx = memcached_generate_hash(memc, ketama_test_cases[x].key, strlen(ketama_test_cases[x].key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/ketama.cc:214:82:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t server_idx= memcached_generate_hash(memc, ketama_test_cases[x].key, strlen(ketama_test_cases[x].key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/ketama.cc:226:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t server_idx = memcached_generate_hash(memc, ketama_test_cases[x].key, strlen(ketama_test_cases[x].key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/ketama.cc:277:86:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t server_idx= memcached_generate_hash(memc, ketama_test_cases_spy[x].key, strlen(ketama_test_cases_spy[x].key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:283:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               libmemcached_check_configuration(server_string, strlen(server_string), buffer, sizeof(buffer)));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:284: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).
  memcached_st *memc= memcached(server_string, strlen(server_string));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:506:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    hash_val= memcached_generate_hash_value(msg, strlen(msg),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:544:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                             in_value, strlen(in_value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:550: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).
                                " the", strlen(" the"),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:556: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).
                                " people", strlen(" people"),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:562:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  test_memcmp(out_value, "we the people", strlen("we the people"));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:563: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).
  test_compare(strlen("we the people"), value_length);
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:675: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).
  size_t value_length= strlen("we the people");
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:702:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  test_memcmp(value, "we the people", strlen("we the people"));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:703: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).
  test_compare(strlen("we the people"), value_length);
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:714:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t keylengths[2] = { strlen(__func__), 0 };
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:741: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).
               strlen(memcached_result_value(results)));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:782: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).
               memcached_set(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:783: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).
                             value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:787:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               memcached_prepend(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:788:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 "the ", strlen("the "),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:792:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               memcached_prepend(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:793: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).
                                 "we ", strlen("we "),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:799:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *out_value= memcached_get(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:801:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  test_memcmp(out_value, "we the people", strlen("we the people"));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:802: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).
  test_compare(strlen("we the people"), value_length);
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:876: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).
  test_memcmp(check_value, "when we sanitize", strlen("when we sanitize"));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:969: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(context, "foo bad", sizeof(context));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1005:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *string= memcached_get(memc_clone, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1019:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *string= memcached_get(memc_clone, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1095:65:  [1] (buffer) strlen:
  Does not handle 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 memcached_result_set_value(result, READ_THROUGH_VALUE, strlen(READ_THROUGH_VALUE));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1178:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_set(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1199:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               values[x], strlen(values[x]),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1229:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    test_compare(string_length, strlen(values[val]));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1246:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  test_compare(string_length, strlen(values[0]));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1402: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).
               memcached_set_by_key(memc, master_key, strlen(master_key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1403:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1404: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).
                                    value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1412:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               memcached_increment_by_key(memc, master_key, strlen(master_key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1413: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).
                                          key, strlen(key), 1, &new_number));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1417:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               memcached_increment_by_key(memc, master_key, strlen(master_key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1418: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).
                                          key, strlen(key), 1, &new_number));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1434:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_increment_with_initial_by_key(memc, master_key, strlen(master_key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1435:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                         key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1440:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_increment_with_initial_by_key(memc, master_key, strlen(master_key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1441:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                         key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1448:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_increment_with_initial_by_key(memc, master_key, strlen(master_key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1449:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                         key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1465: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).
                                    value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1552: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).
                             value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:1559: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).
                             value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2219:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_length[]=  {strlen("036790384900"), strlen("036790384902"), strlen("036790384904"), strlen("036790384906")};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2219:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_length[]=  {strlen("036790384900"), strlen("036790384902"), strlen("036790384904"), strlen("036790384906")};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2219:74:  [1] (buffer) strlen:
  Does not handle 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 key_length[]=  {strlen("036790384900"), strlen("036790384902"), strlen("036790384904"), strlen("036790384906")};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2219:98:  [1] (buffer) strlen:
  Does not handle 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 key_length[]=  {strlen("036790384900"), strlen("036790384902"), strlen("036790384904"), strlen("036790384906")};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2273:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_length[]=  {strlen("036790384900"), strlen("036790384902"), strlen("036790384904"), strlen("036790384906")};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2273:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_length[]=  {strlen("036790384900"), strlen("036790384902"), strlen("036790384904"), strlen("036790384906")};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2273:74:  [1] (buffer) strlen:
  Does not handle 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 key_length[]=  {strlen("036790384900"), strlen("036790384902"), strlen("036790384904"), strlen("036790384906")};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2273:98:  [1] (buffer) strlen:
  Does not handle 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 key_length[]=  {strlen("036790384900"), strlen("036790384902"), strlen("036790384904"), strlen("036790384906")};
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2383:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_length=  strlen(keys);
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2426: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).
  key_length[0]= strlen("UDATA:edevil@sapo.pt");
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2427: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).
  key_length[1]= strlen("fudge&*@#");
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2428: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).
  key_length[2]= strlen("for^#@&$not");
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2540:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  value= memcached_get(memc, "autoincrement", strlen("autoincrement"),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2545:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  rc= memcached_increment(memc, "autoincrement", strlen("autoincrement"),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2559:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               memcached_set(memc, "autoincrement", strlen("autoincrement"), "1", 1, 0, 0));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2561:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  value= memcached_get(memc, "autoincrement", strlen("autoincrement"), &value_length, &flags, &rc);
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2566:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               memcached_increment(memc, "autoincrement", strlen("autoincrement"), 1, &number_value));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2584: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).
  commandLength = strlen(commandFirst) + strlen(commandLast) + 4; /* 4 is number of characters in size, probably 8196 */
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2584:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  commandLength = strlen(commandFirst) + strlen(commandLast) + 4; /* 4 is number of characters in size, probably 8196 */
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2595:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_set(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2708: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).
  memcached_return_t rc= memcached_set(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2709:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2716:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *value2= memcached_get(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2719:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  test_compare(length, strlen(value));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2750: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).
  size_t key_len= strlen("abc");
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:2935:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint32_t server_idx = memcached_generate_hash(memc, key, strlen(key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3098: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).
  test_memcmp(value, key, strlen(key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3116: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).
  test_memcmp(value, key, strlen(key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3130:5:  [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(long_key, "Thisismorethentheallottednumberofcharacters", sizeof(long_key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3135:5:  [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(long_key, "This is more then the allotted number of characters", sizeof(long_key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3166: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).
  test_memcmp(value, key, strlen(key));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3412: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).
      char* value=memcached_get(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3679:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_DEFAULT));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3693:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_MD5));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3707:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_CRC));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3723:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_FNV1_64));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3739:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_FNV1A_64));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3753:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_FNV1_32));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3767:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_FNV1A_32));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3783:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_HSIEH));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3803:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_MURMUR));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3824:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_MURMUR3));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3839:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_JENKINS));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3880: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).
    hash_val= hashkit_digest(kit, *ptr, strlen(*ptr));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3892: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).
    hash_val= memcached_generate_hash(memc, *ptr, strlen(*ptr));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3907: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).
    hash_val= hashkit_digest(kit, *ptr, strlen(*ptr));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:3915: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).
    hash_val= memcached_generate_hash(memc, *ptr, strlen(*ptr));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4387: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).
  rc= memcached_set(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4388:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4409: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).
  rc= memcached_set(mine, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4410:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4431:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               libmemcached_check_configuration(server_string, strlen(server_string), buffer, sizeof(buffer)));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4433: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).
  memcached_st *memc= memcached(server_string, strlen(server_string));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4443: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).
      memcached_return_t ret= memcached_set(memc, msg, strlen(msg), NULL, 0, (time_t)0, (uint32_t)0);
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4551: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).
                    memcached_set(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4552:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4574:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *string= memcached_get(memc, key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4896:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t key_length[]= { strlen(__func__) };
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4924:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                "different", strlen("different"), // Key
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4943:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  test_true(strlen(buffer));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:4946:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  test_true(strlen(buffer));
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:5003:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t set_key_len= strlen(set_key);
data/libmemcached-1.0.18/tests/libmemcached-1.0/mem_functions.cc:5005:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t set_value_len= strlen(set_value);
data/libmemcached-1.0.18/tests/libmemcached-1.0/memcached_get.cc:78: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).
                             value, strlen(value),
data/libmemcached-1.0.18/tests/libmemcached-1.0/memcached_get.cc:96: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).
  test_compare(strlen(value), string_length);
data/libmemcached-1.0.18/tests/libmemcached-1.0/namespace.cc:89: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).
  test_compare(2UL, strlen(value));
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:650:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   libmemcached_check_configuration(server_string, strlen(server_string), buffer, sizeof(buffer)), buffer);
data/libmemcached-1.0.18/tests/libmemcached-1.0/parser.cc:652: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).
  memcached_st *memc= memcached(server_string, strlen(server_string));
data/libmemcached-1.0.18/tests/libmemcached-1.0/pool.cc:73:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string));
data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc:331: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).
                               key, strlen(key),
data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc:332: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).
                               key, strlen(key), 0, 0));
data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc:349: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).
    char *value= memcached_get(memc_clone, key, strlen(key), &value_length, &flags, &rc);
data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc:351: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_compare(strlen(key), value_length);
data/libmemcached-1.0.18/tests/libmemcached-1.0/replication.cc:393: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).
                                         value, strlen(value), 
data/libmemcached-1.0.18/tests/memrm.cc:77: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).
  memcached_st *memc= memcached(buffer, strlen(buffer));
data/libmemcached-1.0.18/tests/memrm.cc:106: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).
  memcached_st *memc= memcached(buffer, strlen(buffer));
data/libmemcached-1.0.18/util/string.hpp:52: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).
#define util_string_make_from_cstr(X) (X), ((X) ? strlen(X) : 0)
data/libmemcached-1.0.18/util/string.hpp:54:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define util_string_make_from_array(__array) (__array), (strlen(__array))

ANALYSIS SUMMARY:

Hits = 793
Lines analyzed = 90832 in approximately 2.64 seconds (34360 lines/second)
Physical Source Lines of Code (SLOC) = 56762
Hits@level = [0] 544 [1] 254 [2] 343 [3] 125 [4]  71 [5]   0
Hits@level+ = [0+] 1337 [1+] 793 [2+] 539 [3+] 196 [4+]  71 [5+]   0
Hits/KSLOC@level+ = [0+] 23.5545 [1+] 13.9706 [2+] 9.49579 [3+] 3.45301 [4+] 1.25084 [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.