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/gearmand-1.1.19.1+ds/benchmark/benchmark.cc Examining data/gearmand-1.1.19.1+ds/benchmark/benchmark.h Examining data/gearmand-1.1.19.1+ds/benchmark/blobslap_client.cc Examining data/gearmand-1.1.19.1+ds/benchmark/blobslap_worker.cc Examining data/gearmand-1.1.19.1+ds/bin/arguments.cc Examining data/gearmand-1.1.19.1+ds/bin/arguments.h Examining data/gearmand-1.1.19.1+ds/bin/error.cc Examining data/gearmand-1.1.19.1+ds/bin/error.h Examining data/gearmand-1.1.19.1+ds/bin/function.cc Examining data/gearmand-1.1.19.1+ds/bin/function.h Examining data/gearmand-1.1.19.1+ds/bin/gearadmin.cc Examining data/gearmand-1.1.19.1+ds/bin/gearman.cc Examining data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_client_do_background_example.c Examining data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_client_do_example.c Examining data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_execute_example.c Examining data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_execute_partition.c Examining data/gearmand-1.1.19.1+ds/examples/echo_client.cc Examining data/gearmand-1.1.19.1+ds/examples/echo_worker.cc Examining data/gearmand-1.1.19.1+ds/examples/reverse_client.cc Examining data/gearmand-1.1.19.1+ds/examples/reverse_client_bg.cc Examining data/gearmand-1.1.19.1+ds/examples/reverse_client_cb.cc Examining data/gearmand-1.1.19.1+ds/examples/reverse_client_epoch.cc Examining data/gearmand-1.1.19.1+ds/examples/reverse_worker.cc Examining data/gearmand-1.1.19.1+ds/examples/wc_worker.cc Examining data/gearmand-1.1.19.1+ds/gearmand/connection.c Examining data/gearmand-1.1.19.1+ds/gearmand/connection.h Examining data/gearmand-1.1.19.1+ds/gearmand/error.hpp Examining data/gearmand-1.1.19.1+ds/gearmand/gearmand.cc Examining data/gearmand-1.1.19.1+ds/gearmand/log.hpp Examining data/gearmand-1.1.19.1+ds/gearmand/server_common.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/actions.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/aggregator.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/allocator.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/argument.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/cancel.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/client.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/client_callbacks.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/configure.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/connection.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/constants.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/core.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/execute.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/function.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/gearman.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/interface/client.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/interface/job.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/interface/status.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/interface/task.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/interface/worker.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/job.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/job_handle.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/kill.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/limits.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/ostream.hpp Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/parse.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/priority.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/protocol.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/result.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/return.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/signal.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/status.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/strerror.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/string.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/t/c_test.c Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/t/cc_test.cc Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/task.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/task_attr.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/util.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/visibility.h Examining data/gearmand-1.1.19.1+ds/libgearman-1.0/worker.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/byte.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/client.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/client.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/common.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/config.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/config.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/config.hpp Examining data/gearmand-1.1.19.1+ds/libgearman-server/connection.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/connection.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/connection.hpp Examining data/gearmand-1.1.19.1+ds/libgearman-server/constants.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/error.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/error/strerror.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/error/strerror.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/error/type.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/function.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/function.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_con.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_con.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_thread.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_thread.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/io.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/io.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/job.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/job.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/log.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/log.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/packet.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/packet.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/base.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/base.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/http/method.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/http/method.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/http/protocol.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/http/protocol.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/http/response_codes.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/http/response_codes.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/base.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/base.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/default/queue.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/default/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/drizzle/queue.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/drizzle/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/libmemcached/queue.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/libmemcached/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/mysql/queue.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/mysql/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/postgres/queue.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/postgres/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/sqlite/instance.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/sqlite/instance.hpp Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/sqlite/queue.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/sqlite/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/queue.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/queue.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/queue.hpp Examining data/gearmand-1.1.19.1+ds/libgearman-server/server.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/server.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/client.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/connection_list.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/function.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/gearmand.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/gearmand_con.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/gearmand_thread.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/io.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/job.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/packet.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/port.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/server.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/thread.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/struct/worker.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/text.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/text.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/thread.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/thread.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/timer.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/timer.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/verbose.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/wakeup.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/wakeup.h Examining data/gearmand-1.1.19.1+ds/libgearman-server/worker.cc Examining data/gearmand-1.1.19.1+ds/libgearman-server/worker.h Examining data/gearmand-1.1.19.1+ds/libgearman/actions.cc Examining data/gearmand-1.1.19.1+ds/libgearman/actions.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/add.cc Examining data/gearmand-1.1.19.1+ds/libgearman/add.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/aggregator.cc Examining data/gearmand-1.1.19.1+ds/libgearman/aggregator.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/allocator.cc Examining data/gearmand-1.1.19.1+ds/libgearman/allocator.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/argument.cc Examining data/gearmand-1.1.19.1+ds/libgearman/assert.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/backtrace.cc Examining data/gearmand-1.1.19.1+ds/libgearman/backtrace.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/byteorder.cc Examining data/gearmand-1.1.19.1+ds/libgearman/byteorder.h Examining data/gearmand-1.1.19.1+ds/libgearman/check.cc Examining data/gearmand-1.1.19.1+ds/libgearman/check.h Examining data/gearmand-1.1.19.1+ds/libgearman/client.cc Examining data/gearmand-1.1.19.1+ds/libgearman/client.h Examining data/gearmand-1.1.19.1+ds/libgearman/client.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/command.cc Examining data/gearmand-1.1.19.1+ds/libgearman/command.h Examining data/gearmand-1.1.19.1+ds/libgearman/common.h Examining data/gearmand-1.1.19.1+ds/libgearman/connection.cc Examining data/gearmand-1.1.19.1+ds/libgearman/connection.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/do.cc Examining data/gearmand-1.1.19.1+ds/libgearman/do.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/error.cc Examining data/gearmand-1.1.19.1+ds/libgearman/error.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/error_code.cc Examining data/gearmand-1.1.19.1+ds/libgearman/error_code.h Examining data/gearmand-1.1.19.1+ds/libgearman/execute.cc Examining data/gearmand-1.1.19.1+ds/libgearman/function.cc Examining data/gearmand-1.1.19.1+ds/libgearman/function/base.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/function/function_v1.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/function/function_v2.cc Examining data/gearmand-1.1.19.1+ds/libgearman/function/function_v2.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/function/make.cc Examining data/gearmand-1.1.19.1+ds/libgearman/function/make.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/function/null.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/function/partition.cc Examining data/gearmand-1.1.19.1+ds/libgearman/function/partition.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/gearman.cc Examining data/gearmand-1.1.19.1+ds/libgearman/gearman.h Examining data/gearmand-1.1.19.1+ds/libgearman/interface/client.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/interface/error.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/interface/packet.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/interface/push.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/interface/task.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/interface/worker.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/is.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/job.cc Examining data/gearmand-1.1.19.1+ds/libgearman/job.h Examining data/gearmand-1.1.19.1+ds/libgearman/job.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/kill.cc Examining data/gearmand-1.1.19.1+ds/libgearman/log.cc Examining data/gearmand-1.1.19.1+ds/libgearman/log.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/magic.h Examining data/gearmand-1.1.19.1+ds/libgearman/ostream.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/packet.cc Examining data/gearmand-1.1.19.1+ds/libgearman/packet.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/parse.cc Examining data/gearmand-1.1.19.1+ds/libgearman/pipe.cc Examining data/gearmand-1.1.19.1+ds/libgearman/pipe.h Examining data/gearmand-1.1.19.1+ds/libgearman/protocol/echo.cc Examining data/gearmand-1.1.19.1+ds/libgearman/protocol/echo.h Examining data/gearmand-1.1.19.1+ds/libgearman/protocol/option.cc Examining data/gearmand-1.1.19.1+ds/libgearman/protocol/option.h Examining data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.cc Examining data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.h Examining data/gearmand-1.1.19.1+ds/libgearman/protocol/work_exception.cc Examining data/gearmand-1.1.19.1+ds/libgearman/protocol/work_exception.h Examining data/gearmand-1.1.19.1+ds/libgearman/result.cc Examining data/gearmand-1.1.19.1+ds/libgearman/result.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/run.cc Examining data/gearmand-1.1.19.1+ds/libgearman/run.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/server_options.cc Examining data/gearmand-1.1.19.1+ds/libgearman/server_options.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/ssl.h Examining data/gearmand-1.1.19.1+ds/libgearman/status.cc Examining data/gearmand-1.1.19.1+ds/libgearman/status.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/strcommand.h Examining data/gearmand-1.1.19.1+ds/libgearman/strerror.cc Examining data/gearmand-1.1.19.1+ds/libgearman/string.cc Examining data/gearmand-1.1.19.1+ds/libgearman/string.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/task.cc Examining data/gearmand-1.1.19.1+ds/libgearman/task.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/task_attr.cc Examining data/gearmand-1.1.19.1+ds/libgearman/task_attr.h Examining data/gearmand-1.1.19.1+ds/libgearman/unique.cc Examining data/gearmand-1.1.19.1+ds/libgearman/unique.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/universal.cc Examining data/gearmand-1.1.19.1+ds/libgearman/universal.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/uuid.cc Examining data/gearmand-1.1.19.1+ds/libgearman/uuid.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/vector.cc Examining data/gearmand-1.1.19.1+ds/libgearman/vector.h Examining data/gearmand-1.1.19.1+ds/libgearman/vector.hpp Examining data/gearmand-1.1.19.1+ds/libgearman/worker.cc Examining data/gearmand-1.1.19.1+ds/libgearman/worker.hpp Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/algorithm.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/basic_string.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/behavior.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/digest.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/function.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/has.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/hashkit.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/hashkit.hpp Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/str_algorithm.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/strerror.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/string.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/types.h Examining data/gearmand-1.1.19.1+ds/libhashkit-1.0/visibility.h Examining data/gearmand-1.1.19.1+ds/libhashkit/aes.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/aes.h Examining data/gearmand-1.1.19.1+ds/libhashkit/algorithm.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/algorithm.h Examining data/gearmand-1.1.19.1+ds/libhashkit/behavior.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/common.h Examining data/gearmand-1.1.19.1+ds/libhashkit/crc32.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/digest.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/encrypt.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/fnv_32.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/fnv_64.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/function.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/has.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/hashkit.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/hashkit.h Examining data/gearmand-1.1.19.1+ds/libhashkit/hsieh.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/is.h Examining data/gearmand-1.1.19.1+ds/libhashkit/jenkins.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/ketama.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/md5.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/murmur.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/murmur3.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/murmur3.h Examining data/gearmand-1.1.19.1+ds/libhashkit/murmur3_api.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/nohsieh.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/one_at_a_time.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/rijndael.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/rijndael.hpp Examining data/gearmand-1.1.19.1+ds/libhashkit/str_algorithm.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/strerror.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/string.cc Examining data/gearmand-1.1.19.1+ds/libhashkit/string.h Examining data/gearmand-1.1.19.1+ds/libhostile/accept.c Examining data/gearmand-1.1.19.1+ds/libhostile/accept.h Examining data/gearmand-1.1.19.1+ds/libhostile/action.h Examining data/gearmand-1.1.19.1+ds/libhostile/called.c Examining data/gearmand-1.1.19.1+ds/libhostile/called.h Examining data/gearmand-1.1.19.1+ds/libhostile/close.c Examining data/gearmand-1.1.19.1+ds/libhostile/close.h Examining data/gearmand-1.1.19.1+ds/libhostile/connect.c Examining data/gearmand-1.1.19.1+ds/libhostile/connect.h Examining data/gearmand-1.1.19.1+ds/libhostile/dummy.c Examining data/gearmand-1.1.19.1+ds/libhostile/function.c Examining data/gearmand-1.1.19.1+ds/libhostile/function.h Examining data/gearmand-1.1.19.1+ds/libhostile/getaddrinfo.c Examining data/gearmand-1.1.19.1+ds/libhostile/getaddrinfo.h Examining data/gearmand-1.1.19.1+ds/libhostile/hostile.h Examining data/gearmand-1.1.19.1+ds/libhostile/initialize.c Examining data/gearmand-1.1.19.1+ds/libhostile/initialize.h Examining data/gearmand-1.1.19.1+ds/libhostile/malloc.c Examining data/gearmand-1.1.19.1+ds/libhostile/malloc.h Examining data/gearmand-1.1.19.1+ds/libhostile/pipe.c Examining data/gearmand-1.1.19.1+ds/libhostile/pipe.h Examining data/gearmand-1.1.19.1+ds/libhostile/poll.c Examining data/gearmand-1.1.19.1+ds/libhostile/poll.h Examining data/gearmand-1.1.19.1+ds/libhostile/realloc.c Examining data/gearmand-1.1.19.1+ds/libhostile/realloc.h Examining data/gearmand-1.1.19.1+ds/libhostile/recv.c Examining data/gearmand-1.1.19.1+ds/libhostile/recv.h Examining data/gearmand-1.1.19.1+ds/libhostile/send.c Examining data/gearmand-1.1.19.1+ds/libhostile/send.h Examining data/gearmand-1.1.19.1+ds/libhostile/setsockopt.c Examining data/gearmand-1.1.19.1+ds/libhostile/setsockopt.h Examining data/gearmand-1.1.19.1+ds/libhostile/socket.c Examining data/gearmand-1.1.19.1+ds/libhostile/socket.h Examining data/gearmand-1.1.19.1+ds/libhostile/socket_server.c Examining data/gearmand-1.1.19.1+ds/libhostile/socket_server.h Examining data/gearmand-1.1.19.1+ds/libhostile/sync.h Examining data/gearmand-1.1.19.1+ds/libhostile/t/accept.c Examining data/gearmand-1.1.19.1+ds/libhostile/t/close.c Examining data/gearmand-1.1.19.1+ds/libhostile/t/pipe.c Examining data/gearmand-1.1.19.1+ds/libhostile/t/pipe2.c Examining data/gearmand-1.1.19.1+ds/libhostile/visibility.h Examining data/gearmand-1.1.19.1+ds/libhostile/write.c Examining data/gearmand-1.1.19.1+ds/libhostile/write.h Examining data/gearmand-1.1.19.1+ds/libtest/abort.cc Examining data/gearmand-1.1.19.1+ds/libtest/alarm.cc Examining data/gearmand-1.1.19.1+ds/libtest/alarm.h Examining data/gearmand-1.1.19.1+ds/libtest/backtrace_test.cc Examining data/gearmand-1.1.19.1+ds/libtest/binaries.cc Examining data/gearmand-1.1.19.1+ds/libtest/binaries.h Examining data/gearmand-1.1.19.1+ds/libtest/blobslap_worker.cc Examining data/gearmand-1.1.19.1+ds/libtest/blobslap_worker.h Examining data/gearmand-1.1.19.1+ds/libtest/callbacks.h Examining data/gearmand-1.1.19.1+ds/libtest/client.cc Examining data/gearmand-1.1.19.1+ds/libtest/client.hpp Examining data/gearmand-1.1.19.1+ds/libtest/cmdline.cc Examining data/gearmand-1.1.19.1+ds/libtest/cmdline.h Examining data/gearmand-1.1.19.1+ds/libtest/collection.cc Examining data/gearmand-1.1.19.1+ds/libtest/collection.h Examining data/gearmand-1.1.19.1+ds/libtest/common.h Examining data/gearmand-1.1.19.1+ds/libtest/comparison.cc Examining data/gearmand-1.1.19.1+ds/libtest/comparison.hpp Examining data/gearmand-1.1.19.1+ds/libtest/core.cc Examining data/gearmand-1.1.19.1+ds/libtest/core.h Examining data/gearmand-1.1.19.1+ds/libtest/core_count.cc Examining data/gearmand-1.1.19.1+ds/libtest/cpu.cc Examining data/gearmand-1.1.19.1+ds/libtest/cpu.hpp Examining data/gearmand-1.1.19.1+ds/libtest/dns.cc Examining data/gearmand-1.1.19.1+ds/libtest/dns.hpp Examining data/gearmand-1.1.19.1+ds/libtest/dream.cc Examining data/gearmand-1.1.19.1+ds/libtest/dream.h Examining data/gearmand-1.1.19.1+ds/libtest/drizzled.cc Examining data/gearmand-1.1.19.1+ds/libtest/drizzled.h Examining data/gearmand-1.1.19.1+ds/libtest/error.h Examining data/gearmand-1.1.19.1+ds/libtest/exception.cc Examining data/gearmand-1.1.19.1+ds/libtest/exception.hpp Examining data/gearmand-1.1.19.1+ds/libtest/exception/disconnected.hpp Examining data/gearmand-1.1.19.1+ds/libtest/exception/fatal.cc Examining data/gearmand-1.1.19.1+ds/libtest/exception/fatal.hpp Examining data/gearmand-1.1.19.1+ds/libtest/failed.cc Examining data/gearmand-1.1.19.1+ds/libtest/formatter.cc Examining data/gearmand-1.1.19.1+ds/libtest/formatter.hpp Examining data/gearmand-1.1.19.1+ds/libtest/framework.cc Examining data/gearmand-1.1.19.1+ds/libtest/framework.h Examining data/gearmand-1.1.19.1+ds/libtest/gearmand.cc Examining data/gearmand-1.1.19.1+ds/libtest/gearmand.h Examining data/gearmand-1.1.19.1+ds/libtest/get.h Examining data/gearmand-1.1.19.1+ds/libtest/has.cc Examining data/gearmand-1.1.19.1+ds/libtest/has.hpp Examining data/gearmand-1.1.19.1+ds/libtest/http.cc Examining data/gearmand-1.1.19.1+ds/libtest/http.hpp Examining data/gearmand-1.1.19.1+ds/libtest/is_local.cc Examining data/gearmand-1.1.19.1+ds/libtest/is_local.hpp Examining data/gearmand-1.1.19.1+ds/libtest/is_pid.hpp Examining data/gearmand-1.1.19.1+ds/libtest/killpid.cc Examining data/gearmand-1.1.19.1+ds/libtest/killpid.h Examining data/gearmand-1.1.19.1+ds/libtest/libtool.cc Examining data/gearmand-1.1.19.1+ds/libtest/libtool.hpp Examining data/gearmand-1.1.19.1+ds/libtest/lite.h Examining data/gearmand-1.1.19.1+ds/libtest/main.cc Examining data/gearmand-1.1.19.1+ds/libtest/memcached.cc Examining data/gearmand-1.1.19.1+ds/libtest/memcached.h Examining data/gearmand-1.1.19.1+ds/libtest/memcached.hpp Examining data/gearmand-1.1.19.1+ds/libtest/poll_error.hpp Examining data/gearmand-1.1.19.1+ds/libtest/port.cc Examining data/gearmand-1.1.19.1+ds/libtest/port.h Examining data/gearmand-1.1.19.1+ds/libtest/result.cc Examining data/gearmand-1.1.19.1+ds/libtest/result.hpp Examining data/gearmand-1.1.19.1+ds/libtest/result/base.hpp Examining data/gearmand-1.1.19.1+ds/libtest/result/fail.hpp Examining data/gearmand-1.1.19.1+ds/libtest/result/skip.hpp Examining data/gearmand-1.1.19.1+ds/libtest/result/success.hpp Examining data/gearmand-1.1.19.1+ds/libtest/runner.cc Examining data/gearmand-1.1.19.1+ds/libtest/runner.h Examining data/gearmand-1.1.19.1+ds/libtest/server.cc Examining data/gearmand-1.1.19.1+ds/libtest/server.h Examining data/gearmand-1.1.19.1+ds/libtest/server_container.cc Examining data/gearmand-1.1.19.1+ds/libtest/server_container.h Examining data/gearmand-1.1.19.1+ds/libtest/signal.cc Examining data/gearmand-1.1.19.1+ds/libtest/signal.h Examining data/gearmand-1.1.19.1+ds/libtest/skiptest.cc Examining data/gearmand-1.1.19.1+ds/libtest/socket.cc Examining data/gearmand-1.1.19.1+ds/libtest/socket.hpp Examining data/gearmand-1.1.19.1+ds/libtest/ssl.h Examining data/gearmand-1.1.19.1+ds/libtest/stream.h Examining data/gearmand-1.1.19.1+ds/libtest/strerror.cc Examining data/gearmand-1.1.19.1+ds/libtest/strerror.h Examining data/gearmand-1.1.19.1+ds/libtest/string.hpp Examining data/gearmand-1.1.19.1+ds/libtest/test.h Examining data/gearmand-1.1.19.1+ds/libtest/test.hpp Examining data/gearmand-1.1.19.1+ds/libtest/thread.hpp Examining data/gearmand-1.1.19.1+ds/libtest/timer.cc Examining data/gearmand-1.1.19.1+ds/libtest/timer.hpp Examining data/gearmand-1.1.19.1+ds/libtest/tmpfile.cc Examining data/gearmand-1.1.19.1+ds/libtest/tmpfile.hpp Examining data/gearmand-1.1.19.1+ds/libtest/unittest.cc Examining data/gearmand-1.1.19.1+ds/libtest/valgrind.h Examining data/gearmand-1.1.19.1+ds/libtest/vchar.cc Examining data/gearmand-1.1.19.1+ds/libtest/vchar.hpp Examining data/gearmand-1.1.19.1+ds/libtest/visibility.h Examining data/gearmand-1.1.19.1+ds/libtest/wait.cc Examining data/gearmand-1.1.19.1+ds/libtest/wait.h Examining data/gearmand-1.1.19.1+ds/libtest/yatl.h Examining data/gearmand-1.1.19.1+ds/tests/basic.cc Examining data/gearmand-1.1.19.1+ds/tests/basic.h Examining data/gearmand-1.1.19.1+ds/tests/blobslap_client.cc Examining data/gearmand-1.1.19.1+ds/tests/burnin.cc Examining data/gearmand-1.1.19.1+ds/tests/burnin.h Examining data/gearmand-1.1.19.1+ds/tests/c_test.c Examining data/gearmand-1.1.19.1+ds/tests/cli.cc Examining data/gearmand-1.1.19.1+ds/tests/context.h Examining data/gearmand-1.1.19.1+ds/tests/cpp_test.cc Examining data/gearmand-1.1.19.1+ds/tests/cycle.cc Examining data/gearmand-1.1.19.1+ds/tests/do.h Examining data/gearmand-1.1.19.1+ds/tests/do_background.h Examining data/gearmand-1.1.19.1+ds/tests/drizzle_test.cc Examining data/gearmand-1.1.19.1+ds/tests/ephemeral_test.cc Examining data/gearmand-1.1.19.1+ds/tests/execute.h Examining data/gearmand-1.1.19.1+ds/tests/gearman_client_do_job_handle.h Examining data/gearmand-1.1.19.1+ds/tests/gearman_execute_partition.h Examining data/gearmand-1.1.19.1+ds/tests/gearmand.cc Examining data/gearmand-1.1.19.1+ds/tests/hostile.cc Examining data/gearmand-1.1.19.1+ds/tests/httpd_test.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/1077917.c Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/client_test.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/client_test.h Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/do.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/do_background.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/execute.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/fork.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/fork.h Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/gearman_client_do_job_handle.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/gearman_client_job_status_by_unique.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/gearman_client_job_status_by_unique.h Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/gearman_execute_partition.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/internals.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/limits.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/multi_client_test.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/multi_client_test.h Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/protocol.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/regression.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/server_options.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc Examining data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc Examining data/gearmand-1.1.19.1+ds/tests/limits.h Examining data/gearmand-1.1.19.1+ds/tests/memcached_test.cc Examining data/gearmand-1.1.19.1+ds/tests/mysql_test.cc Examining data/gearmand-1.1.19.1+ds/tests/postgres_test.cc Examining data/gearmand-1.1.19.1+ds/tests/protocol.cc Examining data/gearmand-1.1.19.1+ds/tests/protocol.h Examining data/gearmand-1.1.19.1+ds/tests/redis.cc Examining data/gearmand-1.1.19.1+ds/tests/regression.h Examining data/gearmand-1.1.19.1+ds/tests/result.cc Examining data/gearmand-1.1.19.1+ds/tests/round_robin.cc Examining data/gearmand-1.1.19.1+ds/tests/runner.h Examining data/gearmand-1.1.19.1+ds/tests/server_options.h Examining data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc Examining data/gearmand-1.1.19.1+ds/tests/start_worker.cc Examining data/gearmand-1.1.19.1+ds/tests/start_worker.h Examining data/gearmand-1.1.19.1+ds/tests/task.h Examining data/gearmand-1.1.19.1+ds/tests/tokyocabinet_test.cc Examining data/gearmand-1.1.19.1+ds/tests/unique.h Examining data/gearmand-1.1.19.1+ds/tests/vector.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/aggregator/cat.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/aggregator/cat.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v1/echo_or_react.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v1/echo_or_react.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v1/echo_or_react_chunk.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v1/echo_or_react_chunk.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v1/echo_or_react_chunk_worker.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v1/increment_reset.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v1/increment_reset_worker.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v1/unique.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v1/unique.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/call_exception.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/call_exception.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/called.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/called.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/check_order.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/check_order.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/client_echo.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/client_echo.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/count.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/count.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/echo_or_react.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/echo_or_react.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/echo_or_react_chunk.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/echo_or_react_chunk.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/echo_specific_worker.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/echo_specific_worker.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/increment_reset.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/increment_reset.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/sleep_return_random.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/sleep_return_random.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/split.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/split.h Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/unique.cc Examining data/gearmand-1.1.19.1+ds/tests/workers/v2/unique.h Examining data/gearmand-1.1.19.1+ds/util/daemon.cc Examining data/gearmand-1.1.19.1+ds/util/daemon.hpp Examining data/gearmand-1.1.19.1+ds/util/instance.cc Examining data/gearmand-1.1.19.1+ds/util/instance.hpp Examining data/gearmand-1.1.19.1+ds/util/log.hpp Examining data/gearmand-1.1.19.1+ds/util/logfile.cc Examining data/gearmand-1.1.19.1+ds/util/logfile.hpp Examining data/gearmand-1.1.19.1+ds/util/memory.h Examining data/gearmand-1.1.19.1+ds/util/noncopyable.hpp Examining data/gearmand-1.1.19.1+ds/util/operation.cc Examining data/gearmand-1.1.19.1+ds/util/operation.hpp Examining data/gearmand-1.1.19.1+ds/util/pidfile.cc Examining data/gearmand-1.1.19.1+ds/util/pidfile.hpp Examining data/gearmand-1.1.19.1+ds/util/signal.cc Examining data/gearmand-1.1.19.1+ds/util/signal.hpp Examining data/gearmand-1.1.19.1+ds/util/string.hpp FINAL RESULTS: data/gearmand-1.1.19.1+ds/bin/gearman.cc:636:11: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (execvp(args.argument(0), args.argumentv()) < 0) data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:214:19: [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(log_buffer_ptr, remaining_size, format, args); data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:261:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, args); data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:297: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, format); data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:302:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(message_buffer, ask, format, args); data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:400:19: [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, format); data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:403:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(message_buffer, ask, format, args); data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:440:19: [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, format); data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:443:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(message_buffer, ask, format, args); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/postgres/queue.cc:263:27: [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 when_buffer_length= snprintf(when_buffer, sizeof(when_buffer), "%" PRId64, when); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc:273: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. int key_size= snprintf(buf, buf_size, GEARMAND_KEY_LITERAL, data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc:419:14: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. int ret= sscanf(reply->element[x]->str, data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.cc:271:7: [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(timestr, sizeof(timestr), "%" PRId64, when); data/gearmand-1.1.19.1+ds/libgearman/assert.hpp:85: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/gearmand-1.1.19.1+ds/libgearman/assert.hpp:88: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/gearmand-1.1.19.1+ds/libgearman/connection.cc:182: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(connection->_host, from._host); data/gearmand-1.1.19.1+ds/libgearman/connection.cc:183: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(connection->_service, from._service); data/gearmand-1.1.19.1+ds/libgearman/error.cc:138: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(last_error, GEARMAN_MAX_ERROR_SIZE, format, args); data/gearmand-1.1.19.1+ds/libgearman/error.cc:232: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. length= vsnprintf(last_error, GEARMAN_MAX_ERROR_SIZE, format, args); data/gearmand-1.1.19.1+ds/libgearman/error.cc:268:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(_last_error, GEARMAN_MAX_ERROR_SIZE, format__, args); data/gearmand-1.1.19.1+ds/libgearman/log.cc:58:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(log_buffer, GEARMAN_MAX_ERROR_SIZE, format, args); data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.cc:149:15: [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 length= snprintf(time_string, sizeof(time_string), "%" PRIu64, static_cast<int64_t>(when)); data/gearmand-1.1.19.1+ds/libgearman/vector.cc:327:22: [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 required_size= vsnprintf(NULL, 0, format__, args__); data/gearmand-1.1.19.1+ds/libgearman/vector.cc:343:20: [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. actual_size= vsnprintf(end, capacity() - size(), format__, args__); data/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/has.cc:105: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/gearmand-1.1.19.1+ds/libtest/has.cc:119: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/gearmand-1.1.19.1+ds/libtest/has.cc:133: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/gearmand-1.1.19.1+ds/libtest/has.cc:162: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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/lite.h:139: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/gearmand-1.1.19.1+ds/libtest/lite.h:142: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/gearmand-1.1.19.1+ds/libtest/lite.h:167: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/gearmand-1.1.19.1+ds/libtest/lite.h:170: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/gearmand-1.1.19.1+ds/libtest/lite.h:220: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/gearmand-1.1.19.1+ds/libtest/lite.h:223: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/gearmand-1.1.19.1+ds/libtest/lite.h:248: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/gearmand-1.1.19.1+ds/libtest/lite.h:251: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/gearmand-1.1.19.1+ds/libtest/lite.h:264: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/gearmand-1.1.19.1+ds/libtest/lite.h:267: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/gearmand-1.1.19.1+ds/libtest/lite.h:292: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/gearmand-1.1.19.1+ds/libtest/lite.h:295: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/gearmand-1.1.19.1+ds/libtest/lite.h:330: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/gearmand-1.1.19.1+ds/libtest/lite.h:333: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/gearmand-1.1.19.1+ds/libtest/lite.h:374: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/gearmand-1.1.19.1+ds/libtest/lite.h:377: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/gearmand-1.1.19.1+ds/libtest/lite.h:408: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/gearmand-1.1.19.1+ds/libtest/lite.h:411: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/gearmand-1.1.19.1+ds/libtest/lite.h:424: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/gearmand-1.1.19.1+ds/libtest/lite.h:427: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/gearmand-1.1.19.1+ds/libtest/server.cc:322: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:373: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:379: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:385: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:391: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:397: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:605: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(TRUE_CMD, X_OK )); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:616: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:617: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(TRUE_CMD, X_OK )); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:630: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:631: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(TRUE_CMD, X_OK )); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:645: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(TRUE_CMD, X_OK )); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:753: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:773: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:835: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:846: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:857: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/gearmand-1.1.19.1+ds/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("/usr/bin/gdb", X_OK )); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:859: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:878: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:879: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:880: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:894: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:895: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:909: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:981: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:983: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:984: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:991: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:1031: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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/tests/gearmand.cc:523: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("etc/gearmand.conf", R_OK)); data/gearmand-1.1.19.1+ds/tests/gearmand.cc:575:13: [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(config_file.c_str(), R_OK)); data/gearmand-1.1.19.1+ds/tests/httpd_test.cc:187: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/curl", X_OK)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/client_test.cc:1319:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(job_handle, __func__); data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:210: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(sql_file.c_str(), R_OK | W_OK )); data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:228:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. test_compare(-1, access(sql_file.c_str(), R_OK | W_OK )); data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:249: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(sql_file.c_str(), R_OK | W_OK )); data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:290:21: [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_compare(0, access(sql_file.c_str(), R_OK | W_OK )); data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:371:19: [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_compare(0, access(sql_file.c_str(), R_OK | W_OK )); data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:463: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. ASSERT_EQ(0, access(sql_file.c_str(), R_OK | W_OK )); data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:521: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(sql_file.c_str(), R_OK | W_OK )); data/gearmand-1.1.19.1+ds/util/log.hpp:150: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/gearmand-1.1.19.1+ds/util/logfile.cc:69: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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/benchmark/blobslap_client.cc:95:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c= getopt(argc, argv, "bc:f:h:m:M:n:p:s:ve?")) != -1) data/gearmand-1.1.19.1+ds/benchmark/blobslap_client.cc:138:7: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(uint32_t(atoi(optarg))); data/gearmand-1.1.19.1+ds/benchmark/blobslap_client.cc:168: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("GEARMAN_SERVERS") == NULL) data/gearmand-1.1.19.1+ds/benchmark/blobslap_worker.cc:164: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("GEARMAN_SERVERS") == NULL) data/gearmand-1.1.19.1+ds/bin/arguments.cc:95:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "bc:f:h:HILnNp:Pst:u:vwi:dS")) != -1) data/gearmand-1.1.19.1+ds/bin/gearman.cc:252: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("GEARMAN_SERVER")) data/gearmand-1.1.19.1+ds/bin/gearman.cc:254:60: [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 (gearman_failed(gearman_client_add_servers(&client, getenv("GEARMAN_SERVER")))) data/gearmand-1.1.19.1+ds/bin/gearman.cc:514: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("GEARMAN_SERVER")) data/gearmand-1.1.19.1+ds/bin/gearman.cc:516:60: [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 (gearman_failed(gearman_worker_add_servers(&worker, getenv("GEARMAN_SERVER")))) data/gearmand-1.1.19.1+ds/gearmand/gearmand.cc:604:29: [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. bool in_gdb_libtest= bool(getenv("LIBTEST_IN_GDB")); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:453:19: [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 ((service= getenv("GEARMAND_PORT")) and service[0]) data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:482: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("GEARMAND_CA_CERTIFICATE")) data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:484:21: [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. _ssl_ca_file= getenv("GEARMAND_CA_CERTIFICATE"); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:487: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("GEARMAND_SERVER_PEM")) data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:489: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. _ssl_certificate= getenv("GEARMAND_SERVER_PEM"); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:492: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("GEARMAND_SERVER_KEY")) data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:494:17: [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. _ssl_key= getenv("GEARMAND_SERVER_KEY"); data/gearmand-1.1.19.1+ds/libgearman/client.cc:67: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. if (getenv("GEARMAN_SERVERS")) data/gearmand-1.1.19.1+ds/libgearman/client.cc:69:57: [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 (gearman_client_add_servers(client->shell(), getenv("GEARMAN_SERVERS"))) data/gearmand-1.1.19.1+ds/libgearman/client.hpp:115: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("YATL_CLIENT_LOGGING")) data/gearmand-1.1.19.1+ds/libgearman/client.hpp:124: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("GEARMAND_CA_CERTIFICATE")) data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp:224: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("GEARMAND_CA_CERTIFICATE")) data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp:226: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. return getenv("GEARMAND_CA_CERTIFICATE"); data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp:253: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("GEARMAN_CLIENT_PEM")) data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp:255: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. return getenv("GEARMAN_CLIENT_PEM"); data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp:282: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("GEARMAN_CLIENT_KEY")) data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp:284: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. return getenv("GEARMAN_CLIENT_KEY"); data/gearmand-1.1.19.1+ds/libgearman/worker.cc:1256: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. if (getenv("GEARMAN_SERVERS")) data/gearmand-1.1.19.1+ds/libgearman/worker.cc:1258:57: [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 (gearman_worker_add_servers(worker->shell(), getenv("GEARMAN_SERVERS"))) data/gearmand-1.1.19.1+ds/libgearman/worker.hpp:128: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("YATL_WORKER_LOGGING")) data/gearmand-1.1.19.1+ds/libgearman/worker.hpp:137: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("GEARMAND_CA_CERTIFICATE")) data/gearmand-1.1.19.1+ds/libhostile/function.c: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. if ((ptr= getenv(environ_name))) data/gearmand-1.1.19.1+ds/libhostile/getaddrinfo.c:90: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. if (--not_until < 0 && random() % __function_getaddrinfo.frequency) data/gearmand-1.1.19.1+ds/libhostile/getaddrinfo.c:95:13: [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/gearmand-1.1.19.1+ds/libhostile/initialize.c:61:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand((unsigned int)time_seed); data/gearmand-1.1.19.1+ds/libhostile/malloc.c:68: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. if (--not_until < 0 && random() % __function.frequency) data/gearmand-1.1.19.1+ds/libhostile/poll.c:91: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. if (--not_until < 0 && random() % __function.frequency) data/gearmand-1.1.19.1+ds/libhostile/realloc.c:67: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. if (--not_until < 0 && random() % __function.frequency) data/gearmand-1.1.19.1+ds/libhostile/send.c:88: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. if (--not_until < 0 && random() % __function.frequency) data/gearmand-1.1.19.1+ds/libhostile/setsockopt.c:68: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. if (--not_until < 0 && random() % __function.frequency) data/gearmand-1.1.19.1+ds/libhostile/write.c:70: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. if (--not_until < 0 && random() % __function.frequency) data/gearmand-1.1.19.1+ds/libtest/alarm.cc:79: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("YATL_ALARM")) data/gearmand-1.1.19.1+ds/libtest/alarm.cc:82:22: [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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/cmdline.cc:793: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("VALGRIND_HOME")) data/gearmand-1.1.19.1+ds/libtest/cmdline.cc:797:84: [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. int length= snprintf(&buffer[0], buffer.size(), "--xml-file=%s/cmd-%%p.xml", getenv("VALGRIND_HOME")); data/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/formatter.cc:121: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_SUMMARY")) data/gearmand-1.1.19.1+ds/libtest/framework.cc:131: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("WORKSPACE")) data/gearmand-1.1.19.1+ds/libtest/framework.cc:133: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. file_name.append(getenv("WORKSPACE")); data/gearmand-1.1.19.1+ds/libtest/framework.cc:144: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("WORKSPACE")) data/gearmand-1.1.19.1+ds/libtest/framework.cc:146: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. file_name.append(getenv("WORKSPACE")); data/gearmand-1.1.19.1+ds/libtest/has.cc:76: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("POSTGRES_IS_RUNNING_AND_SETUP")))) data/gearmand-1.1.19.1+ds/libtest/has.cc:97: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/gearmand-1.1.19.1+ds/libtest/has.cc:155: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/gearmand-1.1.19.1+ds/libtest/is_local.cc:47: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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/main.cc:145: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/gearmand-1.1.19.1+ds/libtest/main.cc:225: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/gearmand-1.1.19.1+ds/libtest/main.cc:228: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/gearmand-1.1.19.1+ds/libtest/main.cc:231: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/gearmand-1.1.19.1+ds/libtest/main.cc:234: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/gearmand-1.1.19.1+ds/libtest/main.cc:239: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/gearmand-1.1.19.1+ds/libtest/main.cc:239: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/gearmand-1.1.19.1+ds/libtest/main.cc:243: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/gearmand-1.1.19.1+ds/libtest/main.cc:245: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/gearmand-1.1.19.1+ds/libtest/main.cc:245: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/gearmand-1.1.19.1+ds/libtest/main.cc:253: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_WILDCARD")) data/gearmand-1.1.19.1+ds/libtest/main.cc:255: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. wildcard= getenv("YATL_WILDCARD"); data/gearmand-1.1.19.1+ds/libtest/main.cc:258: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_RUN_MASSIVE_TESTS")) data/gearmand-1.1.19.1+ds/libtest/main.cc:263: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_SSL")) data/gearmand-1.1.19.1+ds/libtest/main.cc:285: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/gearmand-1.1.19.1+ds/libtest/main.cc:287: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/gearmand-1.1.19.1+ds/libtest/main.cc:310: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/gearmand-1.1.19.1+ds/libtest/main.cc:312: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/gearmand-1.1.19.1+ds/libtest/main.cc:314: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/gearmand-1.1.19.1+ds/libtest/main.cc:418: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 (getenv("WORKSPACE")) data/gearmand-1.1.19.1+ds/libtest/main.cc:420:28: [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. file_name.append(getenv("WORKSPACE")); data/gearmand-1.1.19.1+ds/libtest/main.cc:434: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 (getenv("WORKSPACE")) data/gearmand-1.1.19.1+ds/libtest/main.cc:436:28: [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. file_name.append(getenv("WORKSPACE")); data/gearmand-1.1.19.1+ds/libtest/server.cc:196:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv("YATL_VALGRIND_SERVER") or valgrind_is_caller(); data/gearmand-1.1.19.1+ds/libtest/server.cc:211: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/gearmand-1.1.19.1+ds/libtest/server.cc:222: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/gearmand-1.1.19.1+ds/libtest/server.cc:476: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/gearmand-1.1.19.1+ds/libtest/signal.cc:98:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!getenv("LIBTEST_IN_GDB")) data/gearmand-1.1.19.1+ds/libtest/signal.cc:228:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!getenv("LIBTEST_IN_GDB")) data/gearmand-1.1.19.1+ds/libtest/unittest.cc:79: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. ASSERT_TRUE(getenv("LIBTOOL_COMMAND")); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:85: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. ASSERT_TRUE(getenv("VALGRIND_COMMAND")); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:91: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. SKIP_IF(bool(getenv("VALGRIND_COMMAND")) == false); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:92: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. SKIP_IF(bool(getenv("LOG_COMPILER")) == false); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:94: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:94: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:104: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. ASSERT_TRUE(getenv("HELGRIND_COMMAND")); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:110: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. ASSERT_TRUE(getenv("GDB_COMMAND")); data/gearmand-1.1.19.1+ds/libtest/unittest.cc:324: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:344: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:586: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:952: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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/tests/burnin.cc:66:7: [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() % 10) data/gearmand-1.1.19.1+ds/tests/burnin.cc:68: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() % 3) data/gearmand-1.1.19.1+ds/tests/burnin.cc:83: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() % 3) data/gearmand-1.1.19.1+ds/tests/hostile.cc:140:57: [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. payload.size() ? random() % payload.size() : 0, data/gearmand-1.1.19.1+ds/tests/hostile.cc:261:43: [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. libtest::vchar::make(message_, size_t(random() % 1024)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/client_test.cc:579: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. uint32_t option= uint32_t(random() %3); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/client_test.cc:1296:13: [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. switch (random() %3) data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1339:77: [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. snprintf(function_name, GEARMAN_FUNCTION_MAX_SIZE, "_%s%d", __func__, int(random())); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1464:77: [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. snprintf(function_name, GEARMAN_FUNCTION_MAX_SIZE, "_%s%d", __func__, int(random())); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1554:77: [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. snprintf(function_name, GEARMAN_FUNCTION_MAX_SIZE, "_%s%d", __func__, int(random())); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1557:73: [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. snprintf(unique_name, GEARMAN_MAX_UNIQUE_SIZE, "_%s%d", __func__, int(random())); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1591:77: [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. snprintf(function_name, GEARMAN_FUNCTION_MAX_SIZE, "_%s%d", __func__, int(random())); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1594:73: [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. snprintf(unique_name, GEARMAN_MAX_UNIQUE_SIZE, "_%s%d", __func__, int(random())); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1645:77: [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. snprintf(function_name, GEARMAN_FUNCTION_MAX_SIZE, "_%s%d", __func__, int(random())); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1650: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. int(random()) % 100000u); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1768:77: [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. snprintf(function_name, GEARMAN_FUNCTION_MAX_SIZE, "_%s%d", __func__, int(random())); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1794:77: [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. snprintf(function_name, GEARMAN_FUNCTION_MAX_SIZE, "_%s%d", __func__, int(random())); data/gearmand-1.1.19.1+ds/tests/result.cc:140: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. gearman_result_st result(random() % max_block); data/gearmand-1.1.19.1+ds/tests/result.cc:142: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. result.resize(random() % max_block); data/gearmand-1.1.19.1+ds/tests/result.cc:144: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. result.resize(random() % max_block +GEARMAN_VECTOR_BLOCK_SIZE); data/gearmand-1.1.19.1+ds/tests/result.cc:156: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. gearman_result_st result(random() % max_block); data/gearmand-1.1.19.1+ds/tests/result.cc:158:42: [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. libtest::vchar::make(random_string, (random() % max_block) +1); data/gearmand-1.1.19.1+ds/tests/result.cc:161: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/gearmand-1.1.19.1+ds/tests/result.cc:175: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. gearman_result_st result((random() % max_block) +1); data/gearmand-1.1.19.1+ds/tests/result.cc:179:42: [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. libtest::vchar::make(random_string, (random() % max_block) +1); data/gearmand-1.1.19.1+ds/tests/result.cc:195:55: [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. gearman_result_st* result= new gearman_result_st((random() % max_block) +1); data/gearmand-1.1.19.1+ds/tests/result.cc:199:44: [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. libtest::vchar::make(random_string, (random() % max_block) +1); data/gearmand-1.1.19.1+ds/tests/result.cc:207: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/gearmand-1.1.19.1+ds/tests/result.cc:210:44: [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. libtest::vchar::make(random_string, (random() % max_block) +1); data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:302:17: [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. switch (random() % 3) data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:476:17: [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. switch (random() % 3) data/gearmand-1.1.19.1+ds/tests/vector.cc:209:27: [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. gearman_vector_st vec(random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:222: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. gearman_vector_st vec(labs(random()) % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:225: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. vec.resize(labs(random()) % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:228: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. vec.resize(labs(random()) % max_block +GEARMAN_VECTOR_BLOCK_SIZE); data/gearmand-1.1.19.1+ds/tests/vector.cc:253:37: [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. libtest::vchar::make(base_string, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:272:37: [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. libtest::vchar::make(base_string, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:293:37: [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. libtest::vchar::make(base_string, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:323:37: [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. libtest::vchar::make(base_string, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:359:37: [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. libtest::vchar::make(base_string, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:370:42: [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. libtest::vchar::make(random_string1, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:373:42: [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. libtest::vchar::make(random_string2, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:389:37: [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. libtest::vchar::make(base_string, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:400:42: [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. libtest::vchar::make(random_string1, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:403:42: [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. libtest::vchar::make(random_string2, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:442:27: [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. gearman_vector_st vec(random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:447: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/gearmand-1.1.19.1+ds/tests/vector.cc:462:27: [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. gearman_vector_st vec(random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:464:41: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. libtest::vchar::make(random_string, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:467: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/gearmand-1.1.19.1+ds/tests/vector.cc:481:28: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. gearman_vector_st vec((random() % max_block) +1); data/gearmand-1.1.19.1+ds/tests/vector.cc:485:42: [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. libtest::vchar::make(random_string, (random() % max_block) +1); data/gearmand-1.1.19.1+ds/tests/vector.cc:501:52: [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. gearman_vector_st* vec= new gearman_vector_st((random() % max_block) +1); data/gearmand-1.1.19.1+ds/tests/vector.cc:505:43: [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. libtest::vchar::make(random_string, random() % max_block); data/gearmand-1.1.19.1+ds/tests/vector.cc:513: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/gearmand-1.1.19.1+ds/tests/vector.cc:516:43: [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. libtest::vchar::make(random_string, random() % max_block); data/gearmand-1.1.19.1+ds/tests/workers/v2/sleep_return_random.cc:54: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/gearmand-1.1.19.1+ds/tests/workers/v2/sleep_return_random.cc:59: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. libtest::dream(random() % 20, 0); data/gearmand-1.1.19.1+ds/util/instance.hpp:140: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("GEARMAND_CA_CERTIFICATE")) data/gearmand-1.1.19.1+ds/util/instance.hpp:142: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. return getenv("GEARMAND_CA_CERTIFICATE"); data/gearmand-1.1.19.1+ds/util/instance.hpp:150: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("GEARMAN_CLIENT_PEM")) data/gearmand-1.1.19.1+ds/util/instance.hpp:152: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. return getenv("GEARMAN_CLIENT_PEM"); data/gearmand-1.1.19.1+ds/util/instance.hpp:160: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("GEARMAN_CLIENT_KEY")) data/gearmand-1.1.19.1+ds/util/instance.hpp:162: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. return getenv("GEARMAN_CLIENT_KEY"); data/gearmand-1.1.19.1+ds/benchmark/blobslap_client.cc:134:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port= in_port_t(atoi(optarg)); data/gearmand-1.1.19.1+ds/benchmark/blobslap_client.cc:138:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). srand(uint32_t(atoi(optarg))); data/gearmand-1.1.19.1+ds/benchmark/blobslap_client.cc:363:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[BLOBSLAP_BUFFER_SIZE]; data/gearmand-1.1.19.1+ds/benchmark/blobslap_client.cc:391:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BLOBSLAP_BUFFER_SIZE]; data/gearmand-1.1.19.1+ds/benchmark/blobslap_worker.cc:145:17: [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(log_file.c_str(), "w+"); data/gearmand-1.1.19.1+ds/benchmark/blobslap_worker.cc:189: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 (not log.open()) data/gearmand-1.1.19.1+ds/bin/arguments.cc:104:37: [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). _count= static_cast<uint32_t>(atoi(optarg)); data/gearmand-1.1.19.1+ds/bin/arguments.cc:141:37: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). _port= static_cast<in_port_t>(atoi(optarg)); data/gearmand-1.1.19.1+ds/bin/arguments.cc:153:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). _timeout= atoi(optarg); data/gearmand-1.1.19.1+ds/bin/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 errmsg[BUFSIZ]; data/gearmand-1.1.19.1+ds/bin/function.cc:56: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(&_name[0], name_arg, length); data/gearmand-1.1.19.1+ds/bin/gearman.cc:197: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("/dev/null", O_RDWR, 0); data/gearmand-1.1.19.1+ds/bin/gearman.cc:683: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[1024]; data/gearmand-1.1.19.1+ds/bin/gearman.cc:751:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/examples/echo_client.cc:93: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/gearmand-1.1.19.1+ds/examples/echo_worker.cc:93: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/gearmand-1.1.19.1+ds/examples/reverse_client.cc:110: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/gearmand-1.1.19.1+ds/examples/reverse_client_bg.cc:114: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/gearmand-1.1.19.1+ds/examples/reverse_client_epoch.cc:109: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/gearmand-1.1.19.1+ds/gearmand/error.hpp: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 errmsg[BUFSIZ]; data/gearmand-1.1.19.1+ds/gearmand/log.hpp:78: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/gearmand-1.1.19.1+ds/gearmand/log.hpp:81: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 cwd_buffer[1024]; data/gearmand-1.1.19.1+ds/gearmand/log.hpp:84: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 error_mesg[1024]; data/gearmand-1.1.19.1+ds/gearmand/log.hpp:112: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). int new_fd= open(filename.c_str(), O_CREAT | O_WRONLY | O_APPEND, 0644); data/gearmand-1.1.19.1+ds/gearmand/log.hpp:131: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[GEARMAN_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/gearmand/log.hpp:138: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 getcwd_buffer[1024]; data/gearmand-1.1.19.1+ds/libgearman-1.0/function.h:69:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[sizeof(struct gearman_function_partition_v1_t)]; // @note gearman_function_partition_v1_t is the largest structure data/gearmand-1.1.19.1+ds/libgearman-1.0/job_handle.h:40:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char gearman_job_handle_t[GEARMAN_JOB_HANDLE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-1.0/task_attr.h:60:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(struct gearman_task_attr_epoch_t)]; data/gearmand-1.1.19.1+ds/libgearman-server/connection.cc:332: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(con->id, id, min_size); data/gearmand-1.1.19.1+ds/libgearman-server/function.cc:104: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(function->function_name, function_name, function_name_size); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:336: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(gearmand->_port_list.back().port, port, NI_MAXSERV); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:614: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[1024]; data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:634: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 host[NI_MAXHOST]; data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:891:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char host[NI_MAXHOST]; data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:892:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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_str[NI_MAXSERV]; data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_thread.cc:461:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/libgearman-server/io.cc:165: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 errorString[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/libgearman-server/io.cc:259:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, connection->recv_buffer_ptr, recv_size); data/gearmand-1.1.19.1+ds/libgearman-server/io.cc:345:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errorString[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/libgearman-server/io.cc:657: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(connection->send_buffer +connection->send_buffer_size, data/gearmand-1.1.19.1+ds/libgearman-server/io.cc:697: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(connection->send_buffer, data/gearmand-1.1.19.1+ds/libgearman-server/log.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 log_buffer[GEARMAN_MAX_ERROR_SIZE*2] = { 0 }; data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:309:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:409:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/log.cc:449:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/packet.cc:326: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(packet->args, packet->args_buffer, packet->args_size); data/gearmand-1.1.19.1+ds/libgearman-server/packet.cc:339: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(packet->args + packet->args_size, arg, arg_size); data/gearmand-1.1.19.1+ds/libgearman-server/packet.cc:426: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->args, "\0REQ", 4); data/gearmand-1.1.19.1+ds/libgearman-server/packet.cc:430: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->args, "\0RES", 4); data/gearmand-1.1.19.1+ds/libgearman-server/packet.cc:447: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(packet->args + 4, &tmp, 4); data/gearmand-1.1.19.1+ds/libgearman-server/packet.cc:460: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(packet->args + 8, &tmp, 4); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:79: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(&tmp, packet->args + 4, 4); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:89: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(&tmp, packet->args + 8, 4); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:175: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(packet->args, data, GEARMAND_PACKET_HEADER_SIZE); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:336:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, packet->args, packet->args_size); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/gear/protocol.cc:397: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 ssl_error_buffer[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/http/protocol.cc:258: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(send_buffer, &content[0], content.size()); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/http/protocol.cc:421: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 content_length[11]; /* 11 bytes to fit max display length of uint32_t */ data/gearmand-1.1.19.1+ds/libgearman-server/plugins/protocol/http/protocol.cc:424:37: [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). packet->data_size= size_t(atoi(content_length)); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/drizzle/queue.cc:547:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char query_buffer[GEARMAND_QUEUE_QUERY_BUFFER +(GEARMAN_MAX_UNIQUE_SIZE*2) +(GEARMAN_FUNCTION_MAX_SIZE*2)]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/drizzle/queue.cc:574: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(&query[0], query_buffer, query_size); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/drizzle/queue.cc:650:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char query[DRIZZLE_MAX_TABLE_SIZE + GEARMAND_QUEUE_QUERY_BUFFER]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/drizzle/queue.cc:773:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, row[3], data_size); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/drizzle/queue.cc:782:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). when= atoi(row[4]); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/drizzle/queue.cc:787:62: [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). data, data_size, (gearman_job_priority_t)atoi(row[2]), when); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/libmemcached/queue.cc:197:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[MEMCACHED_MAX_KEY]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/libmemcached/queue.cc:226:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[MEMCACHED_MAX_KEY]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/libmemcached/queue.cc:329:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, memcached_result_value(result), memcached_result_length(result)); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/mysql/queue.cc: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 query_buffer[1024]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/mysql/queue.cc:159:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char query_buffer[1024]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/mysql/queue.cc:248:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char query_buffer[1024]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/mysql/queue.cc:453:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char query_buffer[1024]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/mysql/queue.cc:498:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, row[2], data_size); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/mysql/queue.cc:502:42: [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). priority= (gearman_job_priority_t) atoi(row[3]); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/mysql/queue.cc:507:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). when= atoi(row[4]); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/postgres/queue.cc:260:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char priority_buffer[GEARMAN_MAXIMUM_INTEGER_DISPLAY_LENGTH +1]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/postgres/queue.cc:262:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char when_buffer[GEARMAN_MAXIMUM_INTEGER_DISPLAY_LENGTH +1]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/postgres/queue.cc:382: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(data, PQgetvalue(result, row, 3), data_length); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/postgres/queue.cc:391:44: [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). (gearman_job_priority_t)atoi(PQgetvalue(result, row, 2)), data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc:209:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int service_port= atoi(service.c_str()); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc:270:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[buf_size]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc:403:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_name[GEARMAN_FUNCTION_MAX_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc:404:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unique[GEARMAN_MAX_UNIQUE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc:406:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fmt_str[100] = ""; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/sqlite/instance.cc:553:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, sqlite3_column_blob(replay_sth, 3), data_size); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.cc:231:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key_str[GEARMAND_QUEUE_TOKYOCABINET_MAX_KEY_LEN]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.cc:270: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 timestr[32]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.cc:319:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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_str[GEARMAND_QUEUE_TOKYOCABINET_MAX_KEY_LEN]; data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.cc:399:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data_ptr, data_cstr, data_cstr_size); data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:330: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 unique_handle[GEARMAN_MAX_UNIQUE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:365: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 numerator_buffer[11]; /* Max string size to hold a uint32_t. */ data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:373: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 denominator_buffer[11]; /* Max string size to hold a uint32_t. */ data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:381: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 client_count_buffer[11]; /* Max string size to hold a uint32_t. */ data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:410: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 job_handle[GEARMAND_JOB_HANDLE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:444: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 numerator_buffer[11]; /* Max string size to hold a uint32_t. */ data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:452: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 denominator_buffer[11]; /* Max string size to hold a uint32_t. */ data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:488: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 option[GEARMAND_OPTION_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:542: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 strtol_buffer[GEARMAN_MAXIMUM_INTEGER_DISPLAY_LENGTH +1]; data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:543: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(strtol_buffer, packet->arg[1], packet->arg_size[1]); data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:735:40: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). server_job->numerator= (uint32_t)atoi((char *)(packet->arg[1])); data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:738: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 denominator_buffer[11]; /* Max string size to hold a uint32_t. */ data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:750:42: [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). server_job->denominator= (uint32_t)atoi(denominator_buffer); data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:853: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 job_handle[GEARMAND_JOB_HANDLE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:1057:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, packet->data, packet->data_size); data/gearmand-1.1.19.1+ds/libgearman-server/struct/gearmand_con.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 host[NI_MAXHOST]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/gearmand_con.h:50:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port[NI_MAXSERV]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/io.h:121:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char send_buffer[GEARMAND_SEND_BUFFER_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/io.h:122:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char recv_buffer[GEARMAND_RECV_BUFFER_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/io.h:179:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[GEARMAND_SERVER_CON_ID_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/job.h: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 job_handle[GEARMAND_JOB_HANDLE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/job.h:68:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unique[GEARMAN_MAX_UNIQUE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/job.h: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 reducer[GEARMAN_FUNCTION_MAX_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/packet.h: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 *arg[GEARMAND_MAX_COMMAND_ARGS]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/packet.h:68:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char args_buffer[GEARMAND_ARGS_BUFFER_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/port.h:44:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port[NI_MAXSERV]; data/gearmand-1.1.19.1+ds/libgearman-server/struct/server.h:110:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char job_handle_prefix[GEARMAND_JOB_HANDLE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman-server/text.cc:312:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). const int parameter= atoi((char *)(packet->arg[argc])); data/gearmand-1.1.19.1+ds/libgearman-server/text.cc:351:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(function->max_queue_size, max_queue_size, sizeof(uint32_t) * GEARMAN_JOB_PRIORITY_MAX); data/gearmand-1.1.19.1+ds/libgearman/add.cc:394:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_buffer[1024]; data/gearmand-1.1.19.1+ds/libgearman/add.cc:398: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, gearman_string_value(client->universal._namespace), gearman_string_length(client->universal._namespace)); data/gearmand-1.1.19.1+ds/libgearman/add.cc:401: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, gearman_c_str(function), gearman_size(function) +1); data/gearmand-1.1.19.1+ds/libgearman/add.cc:446:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reducer_buffer[1024]; data/gearmand-1.1.19.1+ds/libgearman/add.cc:450: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, gearman_string_value(client->universal._namespace), gearman_string_length(client->universal._namespace)); data/gearmand-1.1.19.1+ds/libgearman/add.cc:453: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, gearman_c_str(reducer), gearman_size(reducer) +1); data/gearmand-1.1.19.1+ds/libgearman/add.cc:465:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char aggregate[1]; data/gearmand-1.1.19.1+ds/libgearman/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/gearmand-1.1.19.1+ds/libgearman/client.cc:179:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(returnable, gearman_c_str(result), gearman_size(result)); data/gearmand-1.1.19.1+ds/libgearman/client.cc:1322: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(task->unique, unique_handle, unique_length); data/gearmand-1.1.19.1+ds/libgearman/connection.cc:155:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char service[GEARMAN_NI_MAXSERV]= { 0 }; data/gearmand-1.1.19.1+ds/libgearman/connection.cc:537: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(send_buffer + send_buffer_size, packet_arg.data, send_data_offset); data/gearmand-1.1.19.1+ds/libgearman/connection.cc:575: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(send_buffer, data/gearmand-1.1.19.1+ds/libgearman/connection.cc:683: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 errorString[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/libgearman/connection.cc:877:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errorString[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/libgearman/connection.cc:1120:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, recv_buffer_ptr, recv_size); data/gearmand-1.1.19.1+ds/libgearman/connection.cc:1191: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 errorString[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/libgearman/connection.hpp:127:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_NI_MAXHOST]; data/gearmand-1.1.19.1+ds/libgearman/connection.hpp:128:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _service[GEARMAN_NI_MAXSERV]; data/gearmand-1.1.19.1+ds/libgearman/connection.hpp:129:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char send_buffer[GEARMAN_SEND_BUFFER_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/connection.hpp: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 recv_buffer[GEARMAN_RECV_BUFFER_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/error.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 last_error[GEARMAN_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/error.cc:214:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/error.cc:227: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 last_error[GEARMAN_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/function/base.hpp:112: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, gearman_string_value(namespace_), gearman_string_length(namespace_)); data/gearmand-1.1.19.1+ds/libgearman/function/base.hpp:116:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, name_, size); data/gearmand-1.1.19.1+ds/libgearman/gearman.cc:63: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 *_verbose_name[GEARMAN_VERBOSE_MAX]= data/gearmand-1.1.19.1+ds/libgearman/interface/error.hpp:104:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/interface/packet.hpp:71:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *arg[GEARMAN_MAX_COMMAND_ARGS]; data/gearmand-1.1.19.1+ds/libgearman/interface/packet.hpp:73:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char args_buffer[GEARMAN_ARGS_BUFFER_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/interface/task.hpp:84:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char job_handle[GEARMAN_JOB_HANDLE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/interface/task.hpp: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 unique[GEARMAN_MAX_UNIQUE_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/job.cc:419: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 numerator_string[12]; data/gearmand-1.1.19.1+ds/libgearman/job.cc:420: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 denominator_string[12]; data/gearmand-1.1.19.1+ds/libgearman/log.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 log_buffer[GEARMAN_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/libgearman/packet.cc:96: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((void*)packet->data, arg, arg_size); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:132: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(new_args, packet->args_buffer, packet->args_size); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:138: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(packet->args + packet->args_size, arg, arg_size); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:285: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->args, "\0REQ", 4); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:289: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->args, "\0RES", 4); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:305: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(packet->args + 4, &tmp, 4); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:318:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(packet->args + 8, &tmp, 4); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:343: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(&tmp, packet->args + 4, 4); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:352: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(&tmp, packet->args + 8, 4); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:375:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, self.args, self.args_size); data/gearmand-1.1.19.1+ds/libgearman/packet.cc:389:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 (data_size > 0 && ((char *)data)[0] != 0) data/gearmand-1.1.19.1+ds/libgearman/packet.cc:442: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(self.args, data, GEARMAN_PACKET_HEADER_SIZE); data/gearmand-1.1.19.1+ds/libgearman/parse.cc:48:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_NI_MAXHOST]; data/gearmand-1.1.19.1+ds/libgearman/parse.cc: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 port[GEARMAN_NI_MAXSERV]; data/gearmand-1.1.19.1+ds/libgearman/parse.cc:90:68: [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). gearman_return_t ret= (*function)(host, static_cast<in_port_t>(atoi(port)), context); data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.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 function_buffer[1024]; data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.cc:65:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, gearman_string_value(universal._namespace), gearman_string_length(universal._namespace)); data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.cc:68:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, gearman_c_str(function), gearman_size(function) +1); data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.cc:126:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_buffer[1024]; data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.cc:130:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, gearman_string_value(universal._namespace), gearman_string_length(universal._namespace)); data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.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(ptr, gearman_c_str(function), gearman_size(function) +1); data/gearmand-1.1.19.1+ds/libgearman/protocol/submit.cc:148:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time_string[30]; data/gearmand-1.1.19.1+ds/libgearman/run.cc:250:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(static_cast<char *>(task->recv->arg[1])) == 0) data/gearmand-1.1.19.1+ds/libgearman/run.cc:259:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(static_cast<char *>(task->recv->arg[2])) == 0) data/gearmand-1.1.19.1+ds/libgearman/run.cc:275:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(static_cast<char *>(task->recv->arg[1])) == 0) data/gearmand-1.1.19.1+ds/libgearman/run.cc:284:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(static_cast<char *>(task->recv->arg[2])) == 0) data/gearmand-1.1.19.1+ds/libgearman/run.cc:300:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). task->numerator= uint32_t(atoi(static_cast<char *>(task->recv->arg[x]))); data/gearmand-1.1.19.1+ds/libgearman/run.cc:304: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 status_buffer[11]; /* Max string size to hold a uint32_t. */ data/gearmand-1.1.19.1+ds/libgearman/run.cc:308:37: [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). task->denominator= uint32_t(atoi(status_buffer)); data/gearmand-1.1.19.1+ds/libgearman/run.cc:314: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 status_buffer[11]; /* Max string size to hold a uint32_t. */ data/gearmand-1.1.19.1+ds/libgearman/run.cc:318:38: [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). task->client_count= uint32_t(atoi(status_buffer)); data/gearmand-1.1.19.1+ds/libgearman/universal.cc:374:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1]; data/gearmand-1.1.19.1+ds/libgearman/universal.cc:484:17: [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 ((file = fopen(ssl_ca_file(), "r")) == NULL) data/gearmand-1.1.19.1+ds/libgearman/universal.cc:490:17: [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 ((file = fopen(ssl_certificate(), "r")) == NULL) data/gearmand-1.1.19.1+ds/libgearman/universal.cc:496:17: [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 ((file = fopen(ssl_key(), "r")) == NULL) data/gearmand-1.1.19.1+ds/libgearman/vector.cc:244: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_ptr, gearman_string_value(string), gearman_string_length(string)); data/gearmand-1.1.19.1+ds/libgearman/vector.cc:277: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(end, arg_, arg_length_); data/gearmand-1.1.19.1+ds/libgearman/worker.cc:351: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 uuid_buffer[GEARMAN_MAX_IDENTIFIER]; data/gearmand-1.1.19.1+ds/libgearman/worker.cc:1345:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timeout_buffer[GEARMAN_MAXIMUM_INTEGER_DISPLAY_LENGTH +1]; data/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libhostile/function.c:93:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). set.frequency= atoi(ptr); data/gearmand-1.1.19.1+ds/libtest/client.cc:385:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errorString[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/libtest/client.cc:466: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/gearmand-1.1.19.1+ds/libtest/client.cc:507:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errorString[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/libtest/client.cc:563: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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/exception/disconnected.hpp: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 _instance[BUFSIZ]; data/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/framework.cc:138:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). xml_file.open(file_name.c_str(), std::ios::trunc); data/gearmand-1.1.19.1+ds/libtest/framework.cc:151:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tap_file.open(file_name.c_str(), std::ios::trunc); data/gearmand-1.1.19.1+ds/libtest/has.cc:143: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 +1]= { 0 }; data/gearmand-1.1.19.1+ds/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(static_cast<void*>(&_body[0]), ptr, _body->size()); data/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/main.cc:425:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). xml_file.open(file_name.c_str(), std::ios::trunc); data/gearmand-1.1.19.1+ds/libtest/main.cc:441:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tap_file.open(file_name.c_str(), std::ios::trunc); data/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/server.cc:406: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/gearmand-1.1.19.1+ds/libtest/server.cc:435: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/gearmand-1.1.19.1+ds/libtest/server.cc:455: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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/tmpfile.cc:53: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:403: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:411: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:419: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/gearmand-1.1.19.1+ds/libtest/unittest.cc:427: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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/tests/blobslap_client.cc:54:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/blobslap_client.cc:65:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/blobslap_client.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/gearmand-1.1.19.1+ds/tests/cli.cc:137:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:151:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:167:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:181:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/gearmand-1.1.19.1+ds/tests/cli.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 buffer[1024]; data/gearmand-1.1.19.1+ds/tests/cli.cc:206:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:218:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:230:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:255:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:268:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/gearmand-1.1.19.1+ds/tests/cli.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[1024]; data/gearmand-1.1.19.1+ds/tests/cli.cc:292:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/gearmand-1.1.19.1+ds/tests/cli.cc:304:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:319:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_name[1024]; data/gearmand-1.1.19.1+ds/tests/cli.cc:324:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:337:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.cc:368:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/cli.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 buffer[1024]; data/gearmand-1.1.19.1+ds/tests/drizzle_test.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 drizzled_server_string[1024]; data/gearmand-1.1.19.1+ds/tests/gearmand.cc:191:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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_str[1024]; data/gearmand-1.1.19.1+ds/tests/gearmand.cc:550:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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_str[1024]; data/gearmand-1.1.19.1+ds/tests/gearmand.cc:555:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char current_directory_buffer[1024]; data/gearmand-1.1.19.1+ds/tests/gearmand.cc:566: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(config_path.c_str(), std::fstream::out | std::fstream::trunc); data/gearmand-1.1.19.1+ds/tests/gearmand.cc:577:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char args_buffer[1024]; data/gearmand-1.1.19.1+ds/tests/gearmand.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[1024]; data/gearmand-1.1.19.1+ds/tests/httpd_test.cc:65:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char host_url[1024]= { 0 }; data/gearmand-1.1.19.1+ds/tests/httpd_test.cc:82:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char worker_url[1024 + sizeof(WORKER_FUNCTION_NAME) - 1]; data/gearmand-1.1.19.1+ds/tests/httpd_test.cc:100:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char worker_url[1024 + sizeof(WORKER_FUNCTION_NAME) - 1]; data/gearmand-1.1.19.1+ds/tests/httpd_test.cc:153:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/libgearman-1.0/do.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[GEARMAN_UNIQUE_SIZE +10]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/do_background.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 job_handle[GEARMAN_JOB_HANDLE_SIZE]= {0}; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/do_background.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 job_handle[GEARMAN_JOB_HANDLE_SIZE]= {0}; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/do_background.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 job_handle[GEARMAN_JOB_HANDLE_SIZE]= {0}; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/internals.cc:323:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, "Mine!", data_size); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/internals.cc:350:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, "Mine!", data_size); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/regression.cc:256:12: [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). count= atol(job_result); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:548:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:623:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:993:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_MAXIMUM_INTEGER_DISPLAY_LENGTH]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1069:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_MAXIMUM_INTEGER_DISPLAY_LENGTH]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1338:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_name[GEARMAN_FUNCTION_MAX_SIZE]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1390:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1399:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1408:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1423:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1437:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1463:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_name[GEARMAN_FUNCTION_MAX_SIZE]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1553:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_name[GEARMAN_FUNCTION_MAX_SIZE]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1556:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unique_name[GEARMAN_MAX_UNIQUE_SIZE]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1590:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_name[GEARMAN_FUNCTION_MAX_SIZE]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1593:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unique_name[GEARMAN_MAX_UNIQUE_SIZE]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1644:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_name[GEARMAN_FUNCTION_MAX_SIZE]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1647:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char unique_name[GEARMAN_MAX_UNIQUE_SIZE]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1767:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_name[GEARMAN_FUNCTION_MAX_SIZE]; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1793:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char function_name[GEARMAN_FUNCTION_MAX_SIZE]; data/gearmand-1.1.19.1+ds/tests/memcached_test.cc:96:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char memcached_server_string[1024]; data/gearmand-1.1.19.1+ds/tests/memcached_test.cc:202:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char memcached_server_string[1024]; data/gearmand-1.1.19.1+ds/tests/memcached_test.cc:226:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char memcached_server_string[1024]; data/gearmand-1.1.19.1+ds/tests/round_robin.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 job_handle[GEARMAN_JOB_HANDLE_SIZE]; data/gearmand-1.1.19.1+ds/tests/round_robin.cc:131:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[11]; data/gearmand-1.1.19.1+ds/tests/round_robin.cc: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 buffer[1024]; data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:86:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *rows= atoi(argv[0]); data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:202:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sql_buffer[1024]; data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:219:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sql_buffer[1024]; data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:237:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sql_buffer[1024]; data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:278:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sql_buffer[1024]; data/gearmand-1.1.19.1+ds/tests/sqlite_test.cc:452:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sql_buffer[1024]; data/gearmand-1.1.19.1+ds/tests/vector.cc:419:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char test_string[3]; data/gearmand-1.1.19.1+ds/tests/workers/v1/echo_or_react.cc:87: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(result, workload, *result_size); data/gearmand-1.1.19.1+ds/tests/workers/v1/increment_reset_worker.cc:68:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(temp, workload, gearman_job_workload_size(job)); data/gearmand-1.1.19.1+ds/tests/workers/v1/unique.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(result, workload, gearman_job_workload_size(job)); data/gearmand-1.1.19.1+ds/tests/workers/v2/check_order.cc:60:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/gearmand-1.1.19.1+ds/tests/workers/v2/check_order.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 buffer[1024]; data/gearmand-1.1.19.1+ds/tests/workers/v2/count.cc: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 buffer[GEARMAN_MAXIMUM_INTEGER_DISPLAY_LENGTH +1]; data/gearmand-1.1.19.1+ds/tests/workers/v2/increment_reset.cc:70:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[GEARMAN_MAXIMUM_INTEGER_DISPLAY_LENGTH +1]; data/gearmand-1.1.19.1+ds/tests/workers/v2/increment_reset.cc:71: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(temp, workload, gearman_job_workload_size(job)); data/gearmand-1.1.19.1+ds/tests/workers/v2/increment_reset.cc:85:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[GEARMAN_MAXIMUM_INTEGER_DISPLAY_LENGTH +1]; data/gearmand-1.1.19.1+ds/tests/workers/v2/sleep_return_random.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[1024]; data/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/util/instance.cc:88:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[BUFSIZ]; data/gearmand-1.1.19.1+ds/util/instance.cc:336:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ssl_error_buffer[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/util/instance.cc:379: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 buffer[BUFSIZ]; data/gearmand-1.1.19.1+ds/util/instance.cc:420:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ssl_error_buffer[SSL_ERROR_SIZE]= { 0 }; data/gearmand-1.1.19.1+ds/util/log.hpp:109: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/gearmand-1.1.19.1+ds/util/log.hpp:114: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/gearmand-1.1.19.1+ds/util/log.hpp: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 mesg[BUFSIZ]; data/gearmand-1.1.19.1+ds/util/log.hpp:155:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[UTIL_MAX_ERROR_SIZE]; data/gearmand-1.1.19.1+ds/util/logfile.cc:76: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). bool Logfile::open() data/gearmand-1.1.19.1+ds/util/logfile.cc:80: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). _log_file.open("/dev/stderr"); data/gearmand-1.1.19.1+ds/util/logfile.cc:84: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). _log_file.open(_filename.c_str()); data/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/util/pidfile.cc:128: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/gearmand-1.1.19.1+ds/util/pidfile.cc:138:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFSIZ]; data/gearmand-1.1.19.1+ds/bin/function.cc:54:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length= strlen(name_arg); data/gearmand-1.1.19.1+ds/bin/gearman.cc:298:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _client_run(client, args, &workload[0], strlen(&workload[0]) - 1); data/gearmand-1.1.19.1+ds/bin/gearman.cc:302:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _client_run(client, args, &workload[0], strlen(&workload[0])); data/gearmand-1.1.19.1+ds/bin/gearman.cc:316:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _client_run(client, args, args.argument(x), strlen(args.argument(x))); data/gearmand-1.1.19.1+ds/bin/gearman.cc:689: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 length= strlen(buffer); data/gearmand-1.1.19.1+ds/bin/gearman.cc:753:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read_ret= read(fd, buffer, sizeof(buffer)); data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_client_do_background_example.c:29:77: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). "my string to reverse", strlen("my string to reverse"), data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_client_do_example.c:27: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). "my string to reverse", strlen("my string to reverse"), data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_execute_example.c:29:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_argument_t value= gearman_argument_make(0, 0, "Reverse Me", strlen("Reverse Me")); data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_execute_example.c:32: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). "reverse", strlen("reverse"), // function data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_execute_partition.c:21: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). gearman_argument_t value= gearman_argument_make(0, 0, "this dog does not hunt", strlen("this dog does not hunt")); data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_execute_partition.c:24:69: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). "word_split", strlen("word_split"), data/gearmand-1.1.19.1+ds/docs/source/libgearman/examples/gearman_execute_partition.c:25: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). "count", strlen("count"), // function data/gearmand-1.1.19.1+ds/examples/echo_client.cc:95:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::cin.read(buffer, sizeof(buffer)); data/gearmand-1.1.19.1+ds/examples/echo_worker.cc:95:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::cin.read(buffer, sizeof(buffer)); data/gearmand-1.1.19.1+ds/examples/reverse_client.cc:112:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::cin.read(buffer, sizeof(buffer)); data/gearmand-1.1.19.1+ds/examples/reverse_client_bg.cc:116:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::cin.read(buffer, sizeof(buffer)); data/gearmand-1.1.19.1+ds/examples/reverse_client_epoch.cc:111:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::cin.read(buffer, sizeof(buffer)); data/gearmand-1.1.19.1+ds/libgearman-1.0/string.h:51: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). #define gearman_string_param_cstr(X) (X), ((X) ? strlen(X) : 0) data/gearmand-1.1.19.1+ds/libgearman-server/connection.cc:148:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(con->id, "-"); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:643:11: [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 character. strncpy(host, "-", sizeof(host)); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:644:11: [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 character. strncpy(port->port, "-", sizeof(port->port)); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:898: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 character. strncpy(host, "-", sizeof(host)); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:899: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 character. strncpy(port_str, "-", sizeof(port_str)); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand.cc:1011:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t ret= read(fd, buffer, GEARMAND_PIPE_BUFFER_SIZE); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_con.cc:210:95: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bool(server_job->unique[0]) ? server_job->unique : "<null>", uint32_t(strlen(server_job->unique)), data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_con.cc:280: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). (size_t)strlen(server_job->job_handle), data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_con.cc:598:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dcon->host, host, NI_MAXHOST); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_con.cc:600:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dcon->port, port, NI_MAXSERV); data/gearmand-1.1.19.1+ds/libgearman-server/gearmand_thread.cc:579:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret= read(fd, buffer, GEARMAND_PIPE_BUFFER_SIZE); data/gearmand-1.1.19.1+ds/libgearman-server/job.cc:222:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(server_job->reducer, reducer_name, reducer_size); data/gearmand-1.1.19.1+ds/libgearman-server/job.cc:235: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). strlen(server_job->job_handle)); data/gearmand-1.1.19.1+ds/libgearman-server/job.cc:358: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). (size_t)strlen(job->job_handle), data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/libmemcached/queue.cc:300:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(key, prefix, strlen(prefix)) != 0) data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/libmemcached/queue.cc:306: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). const char* function= key +strlen(prefix); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/libmemcached/queue.cc:317: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 unique_size= strlen(unique); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc:446: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). unique, strlen(unique), data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/redis/queue.cc:447: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). function_name, strlen(function_name), data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.cc:274: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). tcxstrcat(job_data, (const char *)timestr, (int)strlen(timestr)); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.cc:349: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 function_len= strlen(function); data/gearmand-1.1.19.1+ds/libgearman-server/plugins/queue/tokyocabinet/queue.cc:352: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 unique_len= strlen(unique); // strlen is only safe because tcxstrptr guarantees nul term data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:85: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). (size_t)(strlen(error_code_string) + 1), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:187:121: [1] (buffer) strlen: Does not handle 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 _server_error_packet(GEARMAN_DEFAULT_LOG_PARAM, server_con, GEARMAN_QUEUE_ERROR, gearmand_strerror(ret), strlen(gearmand_strerror(ret))); data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:194: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). (size_t)strlen(server_job->job_handle), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:306:121: [1] (buffer) strlen: Does not handle 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 _server_error_packet(GEARMAN_DEFAULT_LOG_PARAM, server_con, GEARMAN_QUEUE_ERROR, gearmand_strerror(ret), strlen(gearmand_strerror(ret))); data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:313: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). (size_t)strlen(server_job->job_handle), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:624: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). server_job->job_handle, (size_t)(strlen(server_job->job_handle) + 1), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:635: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). strlen(server_job->reducer), server_job->reducer, strlen(server_job->reducer), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:635:78: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(server_job->reducer), server_job->reducer, strlen(server_job->reducer), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:644: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). server_job->job_handle, (size_t)(strlen(server_job->job_handle) + 1), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:647:73: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). server_job->reducer, (size_t)(strlen(server_job->reducer) +1), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:659: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). server_job->job_handle, (size_t)(strlen(server_job->job_handle) +1), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:675: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). server_job->job_handle, (size_t)(strlen(server_job->job_handle) + 1), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:706:99: [1] (buffer) strlen: Does not handle 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 *)(packet->arg[0]), (size_t)strlen(packet->arg[0]), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:726:99: [1] (buffer) strlen: Does not handle 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 *)(packet->arg[0]), (size_t)strlen(packet->arg[0]), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:775:99: [1] (buffer) strlen: Does not handle 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 *)(packet->arg[0]), (size_t)strlen(packet->arg[0]), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:812:99: [1] (buffer) strlen: Does not handle 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 *)(packet->arg[0]), (size_t)strlen(packet->arg[0]), data/gearmand-1.1.19.1+ds/libgearman-server/server.cc:822:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (size_t)strlen(server_job->job_handle), server_job->job_handle); data/gearmand-1.1.19.1+ds/libgearman-server/text.cc:179:91: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearmand_error_t ret= gearman_server_job_cancel(Gearmand()->server, packet->arg[2], strlen(packet->arg[2])); data/gearmand-1.1.19.1+ds/libgearman-server/text.cc:347:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen((char *)(packet->arg[1])) == function->function_name_size && data/gearmand-1.1.19.1+ds/libgearman/add.cc:146:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_unique_t local_unique= gearman_unique_make(unique, unique ? strlen(unique) : 0); data/gearmand-1.1.19.1+ds/libgearman/add.cc:222:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(task->unique, gearman_c_str(unique), GEARMAN_MAX_UNIQUE_SIZE); data/gearmand-1.1.19.1+ds/libgearman/add.cc:424:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(task->unique, gearman_c_str(unique), GEARMAN_MAX_UNIQUE_SIZE); data/gearmand-1.1.19.1+ds/libgearman/client.cc:125:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_unique_t local_unique= gearman_unique_make(unique, unique ? strlen(unique) : 0); data/gearmand-1.1.19.1+ds/libgearman/client.cc:259:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(job_handle, do_task->impl()->job_handle, GEARMAN_JOB_HANDLE_SIZE); data/gearmand-1.1.19.1+ds/libgearman/client.cc:261:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(client->_do_handle, do_task->impl()->job_handle, GEARMAN_JOB_HANDLE_SIZE); data/gearmand-1.1.19.1+ds/libgearman/client.cc:785:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_unique_t local_unique= gearman_unique_make(unique, unique ? strlen(unique) : 0); data/gearmand-1.1.19.1+ds/libgearman/client.cc:803:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_unique_t local_unique= gearman_unique_make(unique, unique ? strlen(unique) : 0); data/gearmand-1.1.19.1+ds/libgearman/client.cc:821:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_unique_t local_unique= gearman_unique_make(unique, unique ? strlen(unique) : 0); data/gearmand-1.1.19.1+ds/libgearman/client.cc:1263:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args_size[0]= strlen(job_handle); data/gearmand-1.1.19.1+ds/libgearman/client.cc:1306: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 unique_length= strlen(unique_handle); data/gearmand-1.1.19.1+ds/libgearman/client.cc:1631:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(client->task->impl()->job_handle) != client->con->_packet.arg_size[0] - 1) || data/gearmand-1.1.19.1+ds/libgearman/client.cc:1633:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(client->task->impl()->job_handle) != client->con->_packet.arg_size[0])) data/gearmand-1.1.19.1+ds/libgearman/connection.cc:261:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(_host, host_, GEARMAN_NI_MAXHOST); data/gearmand-1.1.19.1+ds/libgearman/connection.cc:270:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(_service, service_, GEARMAN_NI_MAXSERV); data/gearmand-1.1.19.1+ds/libgearman/do.cc:56:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_unique_t local_unique= gearman_unique_make(unique, unique ? strlen(unique) : 0); data/gearmand-1.1.19.1+ds/libgearman/do.cc:171:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(job_handle, do_task->impl()->job_handle, GEARMAN_JOB_HANDLE_SIZE); data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp:236: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). if (ssl_ca_file_ && (ssl_ca_file_size_ = strlen(ssl_ca_file_))) data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp:265: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). if (ssl_certificate_ && (ssl_certificate_size_ = strlen(ssl_certificate_))) data/gearmand-1.1.19.1+ds/libgearman/interface/universal.hpp:294:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (ssl_key_ && (ssl_key_size_ = strlen(ssl_key_))) data/gearmand-1.1.19.1+ds/libgearman/job.cc:432: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). args_size[1]= strlen(numerator_string) + 1; data/gearmand-1.1.19.1+ds/libgearman/job.cc:434: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). args_size[2]= strlen(denominator_string); data/gearmand-1.1.19.1+ds/libgearman/run.cc:273:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(task->unique, task->recv->arg[0], GEARMAN_MAX_UNIQUE_SIZE); data/gearmand-1.1.19.1+ds/libgearman/string.hpp:40: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). #define gearman_c_str_param(X) (X) ? (X) : NULL, (X) ? strlen(X) : 0 data/gearmand-1.1.19.1+ds/libgearman/universal.cc:375:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read_length= read(universal.wakeup_fd[0], buffer, sizeof(buffer)); data/gearmand-1.1.19.1+ds/libgearman/universal.cc:722:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args_size[0]= strlen(job_handle); data/gearmand-1.1.19.1+ds/libgearman/worker.cc:519: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). return _worker_function_create(worker, function_name, strlen(function_name), null_func, timeout, NULL); data/gearmand-1.1.19.1+ds/libgearman/worker.cc:590: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). return _worker_unregister(worker, function_name, strlen(function_name)); data/gearmand-1.1.19.1+ds/libgearman/worker.cc:1033: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). function_name, strlen(function_name), data/gearmand-1.1.19.1+ds/libgearman/worker.cc:1351: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). args_size[1]= strlen(timeout_buffer); data/gearmand-1.1.19.1+ds/libtest/cmdline.cc:398:21: [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/gearmand-1.1.19.1+ds/libtest/cmdline.cc:419:21: [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/gearmand-1.1.19.1+ds/libtest/cmdline.cc:601: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/gearmand-1.1.19.1+ds/libtest/cmdline.cc:610: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/gearmand-1.1.19.1+ds/libtest/cmdline.h:125: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/gearmand-1.1.19.1+ds/libtest/comparison.hpp:96: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/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/libtest/has.cc:164: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/gearmand-1.1.19.1+ds/libtest/has.cc:184: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/gearmand-1.1.19.1+ds/libtest/lite.h:94: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/gearmand-1.1.19.1+ds/libtest/main.cc:312: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/gearmand-1.1.19.1+ds/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, sizeof(global_socket)); data/gearmand-1.1.19.1+ds/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/gearmand-1.1.19.1+ds/tests/basic.cc:118: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). test->worker_function_name(), strlen(test->worker_function_name()), data/gearmand-1.1.19.1+ds/tests/basic.cc:145: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). test->worker_function_name(), strlen(test->worker_function_name()), data/gearmand-1.1.19.1+ds/tests/basic.cc:182:77: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). test->worker_function_name(), strlen(test->worker_function_name()), data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/client_test.cc:1184: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). hash_val= internal_generate_hash(msg, strlen(msg)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/gearman_client_do_job_handle.cc:71: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("submit_job_test"); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/multi_client_test.cc:124:91: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_status_t unique_3_status= gearman_client_unique_status(client_to_1, unique_3, strlen(unique_3)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/multi_client_test.cc:131:91: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_status_t unique_3_status= gearman_client_unique_status(client_to_2, unique_3, strlen(unique_3)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/multi_client_test.cc:149:94: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_status_t unique_4_status= gearman_client_unique_status(client_to_both, unique_4, strlen(unique_4)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/regression.cc:132: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). args_size[0]= strlen("testUnregisterFunction"); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/regression.cc:142: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). args_size[0]= strlen("reverse"); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/regression.cc:164: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). args_size[0]= strlen("testUnregisterFunction"); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/regression.cc:174: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). args_size[0]= strlen("digest"); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/regression.cc:184: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). args_size[0]= strlen("reverse"); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc:83: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). ASSERT_EQ(strlen(unique_key), strlen(gearman_task_unique(unique_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc:83: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). ASSERT_EQ(strlen(unique_key), strlen(gearman_task_unique(unique_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc:114: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). ASSERT_EQ(strlen(unique_key), strlen(gearman_task_unique(task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc:114: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). ASSERT_EQ(strlen(unique_key), strlen(gearman_task_unique(task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc:148:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT_EQ(strlen(unique_key), strlen(gearman_task_unique(unique_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc:148: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). ASSERT_EQ(strlen(unique_key), strlen(gearman_task_unique(unique_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc:176: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). ASSERT_EQ(size_t(GEARMAN_MAX_UUID_SIZE), strlen(gearman_task_unique(task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc:591: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). ASSERT_EQ(size_t(GEARMAN_MAX_UUID_SIZE), strlen(gearman_task_unique(task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/task.cc:681: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). ASSERT_EQ(size_t(GEARMAN_MAX_UUID_SIZE), strlen(gearman_task_unique(task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:110: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(first_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:110: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(first_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:123: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(second_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:123: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(second_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:180: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). ASSERT_EQ(strlen("2285535048"), strlen(gearman_task_unique(first_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:180: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). ASSERT_EQ(strlen("2285535048"), strlen(gearman_task_unique(first_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:193: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). ASSERT_EQ(strlen("2285535048"), strlen(gearman_task_unique(second_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:193: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). ASSERT_EQ(strlen("2285535048"), strlen(gearman_task_unique(second_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:251: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(first_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:251: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(first_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:264: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(second_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:264: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(second_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:321: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(first_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:321: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(first_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:334: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(second_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:334: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). ASSERT_EQ(strlen(unique_handle), strlen(gearman_task_unique(second_task))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:444: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). unique_handle, strlen(unique_handle)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:450: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). unique_handle, strlen(unique_handle)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/unique.cc:491: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). unique_handle, strlen(unique_handle)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:141:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). __func__, strlen(__func__), data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:145: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). ASSERT_EQ(true, gearman_worker_function_exist(&source, __func__, strlen(__func__))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:150:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT_EQ(true, gearman_worker_function_exist(worker, __func__, strlen(__func__))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:726:73: [1] (buffer) strlen: Does not handle 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 (gearman_failed(gearman_job_send_data(job, gearman_strerror(*ret), strlen(gearman_strerror(*ret))))) data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:920: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). test_memcmp("OK", gearman_result_value(result), strlen("ok")); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1215:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args_size[0]= strlen("abandoned_worker"); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1246:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args_size[0]= strlen("abandoned_worker"); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1256:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args_size[0]= strlen(job_handle) + 1; data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1283: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). if (gearman_job_unique(job) and strlen(gearman_job_unique(job))) data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1302: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(gearman_job_unique(job)); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1349: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). ASSERT_EQ(false, gearman_worker_function_exist(&worker, function_name, strlen(function_name))); data/gearmand-1.1.19.1+ds/tests/libgearman-1.0/worker_test.cc:1820:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). __func__, strlen(__func__), data/gearmand-1.1.19.1+ds/tests/result.cc:302: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). ASSERT_EQ(strlen(__func__), gearman_result_size(&result)); data/gearmand-1.1.19.1+ds/tests/round_robin.cc:85: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). buf+= strlen(buf); data/gearmand-1.1.19.1+ds/tests/runner.h:98:80: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gearman_client_set_namespace(&client, container->session_namespace(),strlen(container->session_namespace())); data/gearmand-1.1.19.1+ds/tests/start_worker.cc:240: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). gearman_worker_set_namespace(&worker, namespace_key, strlen(namespace_key)); data/gearmand-1.1.19.1+ds/tests/start_worker.cc:260: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). function_name, strlen(function_name), data/gearmand-1.1.19.1+ds/tests/vector.cc:242: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). ASSERT_EQ(strlen(__func__), vec.size()); data/gearmand-1.1.19.1+ds/tests/vector.cc:335: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). ASSERT_EQ(strlen(__func__), vec.size()); data/gearmand-1.1.19.1+ds/tests/workers/v1/unique.cc:59: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). assert(strlen(gearman_job_unique(job))); data/gearmand-1.1.19.1+ds/tests/workers/v1/unique.cc:61: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). assert(strlen(gearman_job_unique(job)) == gearman_job_workload_size(job)); data/gearmand-1.1.19.1+ds/tests/workers/v1/unique.cc:63: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). if (gearman_job_workload_size(job) == strlen(gearman_job_unique(job))) data/gearmand-1.1.19.1+ds/tests/workers/v2/check_order.cc:63: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). gearman_return_t rc= gearman_job_send_exception(job, buffer, strlen(buffer)); data/gearmand-1.1.19.1+ds/tests/workers/v2/client_echo.cc:58: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). return gearman_job_send_exception(job, gearman_client_error(client), strlen(gearman_client_error(client))); data/gearmand-1.1.19.1+ds/tests/workers/v2/echo_specific_worker.cc:54: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). if (gearman_failed(gearman_job_send_data(job, worker_name, strlen(worker_name)))) data/gearmand-1.1.19.1+ds/tests/workers/v2/unique.cc:57: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). assert(strlen(gearman_job_unique(job))); data/gearmand-1.1.19.1+ds/tests/workers/v2/unique.cc:59: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). assert(strlen(gearman_job_unique(job)) == gearman_job_workload_size(job)); data/gearmand-1.1.19.1+ds/tests/workers/v2/unique.cc:61: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). if (gearman_job_workload_size(job) == strlen(gearman_job_unique(job))) data/gearmand-1.1.19.1+ds/util/string.hpp:54: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/gearmand-1.1.19.1+ds/util/string.hpp:56: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 = 799 Lines analyzed = 92968 in approximately 2.46 seconds (37790 lines/second) Physical Source Lines of Code (SLOC) = 56613 Hits@level = [0] 292 [1] 174 [2] 347 [3] 182 [4] 96 [5] 0 Hits@level+ = [0+] 1091 [1+] 799 [2+] 625 [3+] 278 [4+] 96 [5+] 0 Hits/KSLOC@level+ = [0+] 19.2712 [1+] 14.1134 [2+] 11.0399 [3+] 4.91053 [4+] 1.69572 [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.