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/redis-6.0.9/deps/hiredis/adapters/ae.h
Examining data/redis-6.0.9/deps/hiredis/adapters/glib.h
Examining data/redis-6.0.9/deps/hiredis/adapters/ivykis.h
Examining data/redis-6.0.9/deps/hiredis/adapters/libev.h
Examining data/redis-6.0.9/deps/hiredis/adapters/libevent.h
Examining data/redis-6.0.9/deps/hiredis/adapters/libuv.h
Examining data/redis-6.0.9/deps/hiredis/adapters/macosx.h
Examining data/redis-6.0.9/deps/hiredis/adapters/qt.h
Examining data/redis-6.0.9/deps/hiredis/async.c
Examining data/redis-6.0.9/deps/hiredis/async.h
Examining data/redis-6.0.9/deps/hiredis/async_private.h
Examining data/redis-6.0.9/deps/hiredis/dict.c
Examining data/redis-6.0.9/deps/hiredis/dict.h
Examining data/redis-6.0.9/deps/hiredis/examples/example-ae.c
Examining data/redis-6.0.9/deps/hiredis/examples/example-glib.c
Examining data/redis-6.0.9/deps/hiredis/examples/example-ivykis.c
Examining data/redis-6.0.9/deps/hiredis/examples/example-libev.c
Examining data/redis-6.0.9/deps/hiredis/examples/example-libevent-ssl.c
Examining data/redis-6.0.9/deps/hiredis/examples/example-libevent.c
Examining data/redis-6.0.9/deps/hiredis/examples/example-libuv.c
Examining data/redis-6.0.9/deps/hiredis/examples/example-macosx.c
Examining data/redis-6.0.9/deps/hiredis/examples/example-qt.cpp
Examining data/redis-6.0.9/deps/hiredis/examples/example-qt.h
Examining data/redis-6.0.9/deps/hiredis/examples/example-ssl.c
Examining data/redis-6.0.9/deps/hiredis/examples/example.c
Examining data/redis-6.0.9/deps/hiredis/fmacros.h
Examining data/redis-6.0.9/deps/hiredis/hiredis.c
Examining data/redis-6.0.9/deps/hiredis/hiredis.h
Examining data/redis-6.0.9/deps/hiredis/hiredis_ssl.h
Examining data/redis-6.0.9/deps/hiredis/net.c
Examining data/redis-6.0.9/deps/hiredis/net.h
Examining data/redis-6.0.9/deps/hiredis/read.c
Examining data/redis-6.0.9/deps/hiredis/read.h
Examining data/redis-6.0.9/deps/hiredis/sds.c
Examining data/redis-6.0.9/deps/hiredis/sds.h
Examining data/redis-6.0.9/deps/hiredis/sdsalloc.h
Examining data/redis-6.0.9/deps/hiredis/sockcompat.c
Examining data/redis-6.0.9/deps/hiredis/sockcompat.h
Examining data/redis-6.0.9/deps/hiredis/ssl.c
Examining data/redis-6.0.9/deps/hiredis/test.c
Examining data/redis-6.0.9/deps/hiredis/win32.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/arena_externs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/arena_inlines_a.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/arena_inlines_b.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/arena_stats.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/arena_structs_a.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/arena_structs_b.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/arena_types.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/assert.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/atomic.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/atomic_c11.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/atomic_gcc_atomic.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/atomic_gcc_sync.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/atomic_msvc.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/background_thread_externs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/background_thread_inlines.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/background_thread_structs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/base_externs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/base_inlines.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/base_structs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/base_types.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/bin.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/bin_stats.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/bit_util.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/bitmap.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/cache_bin.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/ckh.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/ctl.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/div.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/emitter.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/extent_dss.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/extent_externs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/extent_inlines.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/extent_mmap.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/extent_structs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/extent_types.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hash.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hooks.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_decls.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_externs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_includes.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_a.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_b.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_macros.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/large_externs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/log.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/malloc_io.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/mutex.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/mutex_pool.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/mutex_prof.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/nstime.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/pages.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/ph.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/prng.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/prof_externs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/prof_inlines_a.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/prof_inlines_b.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/prof_structs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/prof_types.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/ql.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/qr.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/rb.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/rtree.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/rtree_tsd.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/smoothstep.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/spin.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/stats.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/sz.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tcache_externs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tcache_inlines.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tcache_structs.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tcache_types.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/ticker.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tsd.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tsd_generic.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tsd_malloc_thread_cleanup.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tsd_tls.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tsd_types.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/tsd_win.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/util.h
Examining data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/witness.h
Examining data/redis-6.0.9/deps/jemalloc/include/msvc_compat/C99/stdbool.h
Examining data/redis-6.0.9/deps/jemalloc/include/msvc_compat/C99/stdint.h
Examining data/redis-6.0.9/deps/jemalloc/include/msvc_compat/strings.h
Examining data/redis-6.0.9/deps/jemalloc/include/msvc_compat/windows_extra.h
Examining data/redis-6.0.9/deps/jemalloc/msvc/test_threads/test_threads.cpp
Examining data/redis-6.0.9/deps/jemalloc/msvc/test_threads/test_threads.h
Examining data/redis-6.0.9/deps/jemalloc/msvc/test_threads/test_threads_main.cpp
Examining data/redis-6.0.9/deps/jemalloc/src/arena.c
Examining data/redis-6.0.9/deps/jemalloc/src/background_thread.c
Examining data/redis-6.0.9/deps/jemalloc/src/base.c
Examining data/redis-6.0.9/deps/jemalloc/src/bin.c
Examining data/redis-6.0.9/deps/jemalloc/src/bitmap.c
Examining data/redis-6.0.9/deps/jemalloc/src/ckh.c
Examining data/redis-6.0.9/deps/jemalloc/src/ctl.c
Examining data/redis-6.0.9/deps/jemalloc/src/div.c
Examining data/redis-6.0.9/deps/jemalloc/src/extent.c
Examining data/redis-6.0.9/deps/jemalloc/src/extent_dss.c
Examining data/redis-6.0.9/deps/jemalloc/src/extent_mmap.c
Examining data/redis-6.0.9/deps/jemalloc/src/hash.c
Examining data/redis-6.0.9/deps/jemalloc/src/hooks.c
Examining data/redis-6.0.9/deps/jemalloc/src/jemalloc.c
Examining data/redis-6.0.9/deps/jemalloc/src/jemalloc_cpp.cpp
Examining data/redis-6.0.9/deps/jemalloc/src/large.c
Examining data/redis-6.0.9/deps/jemalloc/src/log.c
Examining data/redis-6.0.9/deps/jemalloc/src/malloc_io.c
Examining data/redis-6.0.9/deps/jemalloc/src/mutex.c
Examining data/redis-6.0.9/deps/jemalloc/src/mutex_pool.c
Examining data/redis-6.0.9/deps/jemalloc/src/nstime.c
Examining data/redis-6.0.9/deps/jemalloc/src/pages.c
Examining data/redis-6.0.9/deps/jemalloc/src/prng.c
Examining data/redis-6.0.9/deps/jemalloc/src/prof.c
Examining data/redis-6.0.9/deps/jemalloc/src/rtree.c
Examining data/redis-6.0.9/deps/jemalloc/src/stats.c
Examining data/redis-6.0.9/deps/jemalloc/src/sz.c
Examining data/redis-6.0.9/deps/jemalloc/src/tcache.c
Examining data/redis-6.0.9/deps/jemalloc/src/ticker.c
Examining data/redis-6.0.9/deps/jemalloc/src/tsd.c
Examining data/redis-6.0.9/deps/jemalloc/src/witness.c
Examining data/redis-6.0.9/deps/jemalloc/src/zone.c
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-alti.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params11213.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params1279.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params132049.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params19937.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params216091.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params2281.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params4253.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params44497.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params607.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-params86243.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT-sse2.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/SFMT.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/btalloc.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/extent_hooks.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/math.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/mq.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/mtx.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/test.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/thd.h
Examining data/redis-6.0.9/deps/jemalloc/test/include/test/timer.h
Examining data/redis-6.0.9/deps/jemalloc/test/integration/MALLOCX_ARENA.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/aligned_alloc.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/allocated.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/cpp/basic.cpp
Examining data/redis-6.0.9/deps/jemalloc/test/integration/extent.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/mallocx.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/overflow.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/posix_memalign.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/rallocx.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/sdallocx.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/thread_arena.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/thread_tcache_enabled.c
Examining data/redis-6.0.9/deps/jemalloc/test/integration/xallocx.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/SFMT.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/btalloc.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/btalloc_0.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/btalloc_1.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/math.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/mq.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/mtx.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/test.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/thd.c
Examining data/redis-6.0.9/deps/jemalloc/test/src/timer.c
Examining data/redis-6.0.9/deps/jemalloc/test/stress/microbench.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/SFMT.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/a0.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/arena_reset.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/arena_reset_prof.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/atomic.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/background_thread.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/background_thread_enable.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/base.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/bit_util.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/bitmap.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/ckh.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/decay.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/div.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/emitter.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/extent_quantize.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/fork.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/hash.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/hooks.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/junk.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/junk_alloc.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/junk_free.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/log.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/mallctl.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/malloc_io.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/math.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/mq.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/mtx.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/nstime.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/pack.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/pages.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/ph.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/prng.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/prof_accum.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/prof_active.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/prof_gdump.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/prof_idump.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/prof_reset.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/prof_tctx.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/prof_thread_name.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/ql.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/qr.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/rb.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/retained.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/rtree.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/size_classes.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/slab.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/smoothstep.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/spin.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/stats.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/stats_print.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/ticker.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/tsd.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/witness.c
Examining data/redis-6.0.9/deps/jemalloc/test/unit/zero.c
Examining data/redis-6.0.9/deps/linenoise/example.c
Examining data/redis-6.0.9/deps/linenoise/linenoise.c
Examining data/redis-6.0.9/deps/linenoise/linenoise.h
Examining data/redis-6.0.9/deps/lua/etc/all.c
Examining data/redis-6.0.9/deps/lua/etc/lua.hpp
Examining data/redis-6.0.9/deps/lua/etc/min.c
Examining data/redis-6.0.9/deps/lua/etc/noparser.c
Examining data/redis-6.0.9/deps/lua/src/fpconv.c
Examining data/redis-6.0.9/deps/lua/src/fpconv.h
Examining data/redis-6.0.9/deps/lua/src/lapi.c
Examining data/redis-6.0.9/deps/lua/src/lapi.h
Examining data/redis-6.0.9/deps/lua/src/lauxlib.c
Examining data/redis-6.0.9/deps/lua/src/lauxlib.h
Examining data/redis-6.0.9/deps/lua/src/lbaselib.c
Examining data/redis-6.0.9/deps/lua/src/lcode.c
Examining data/redis-6.0.9/deps/lua/src/lcode.h
Examining data/redis-6.0.9/deps/lua/src/ldblib.c
Examining data/redis-6.0.9/deps/lua/src/ldebug.c
Examining data/redis-6.0.9/deps/lua/src/ldebug.h
Examining data/redis-6.0.9/deps/lua/src/ldo.c
Examining data/redis-6.0.9/deps/lua/src/ldo.h
Examining data/redis-6.0.9/deps/lua/src/ldump.c
Examining data/redis-6.0.9/deps/lua/src/lfunc.c
Examining data/redis-6.0.9/deps/lua/src/lfunc.h
Examining data/redis-6.0.9/deps/lua/src/lgc.c
Examining data/redis-6.0.9/deps/lua/src/lgc.h
Examining data/redis-6.0.9/deps/lua/src/linit.c
Examining data/redis-6.0.9/deps/lua/src/liolib.c
Examining data/redis-6.0.9/deps/lua/src/llex.c
Examining data/redis-6.0.9/deps/lua/src/llex.h
Examining data/redis-6.0.9/deps/lua/src/llimits.h
Examining data/redis-6.0.9/deps/lua/src/lmathlib.c
Examining data/redis-6.0.9/deps/lua/src/lmem.c
Examining data/redis-6.0.9/deps/lua/src/lmem.h
Examining data/redis-6.0.9/deps/lua/src/loadlib.c
Examining data/redis-6.0.9/deps/lua/src/lobject.c
Examining data/redis-6.0.9/deps/lua/src/lobject.h
Examining data/redis-6.0.9/deps/lua/src/lopcodes.c
Examining data/redis-6.0.9/deps/lua/src/lopcodes.h
Examining data/redis-6.0.9/deps/lua/src/loslib.c
Examining data/redis-6.0.9/deps/lua/src/lparser.c
Examining data/redis-6.0.9/deps/lua/src/lparser.h
Examining data/redis-6.0.9/deps/lua/src/lstate.c
Examining data/redis-6.0.9/deps/lua/src/lstate.h
Examining data/redis-6.0.9/deps/lua/src/lstring.c
Examining data/redis-6.0.9/deps/lua/src/lstring.h
Examining data/redis-6.0.9/deps/lua/src/lstrlib.c
Examining data/redis-6.0.9/deps/lua/src/ltable.c
Examining data/redis-6.0.9/deps/lua/src/ltable.h
Examining data/redis-6.0.9/deps/lua/src/ltablib.c
Examining data/redis-6.0.9/deps/lua/src/ltm.c
Examining data/redis-6.0.9/deps/lua/src/ltm.h
Examining data/redis-6.0.9/deps/lua/src/lua.c
Examining data/redis-6.0.9/deps/lua/src/lua.h
Examining data/redis-6.0.9/deps/lua/src/lua_bit.c
Examining data/redis-6.0.9/deps/lua/src/lua_cjson.c
Examining data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c
Examining data/redis-6.0.9/deps/lua/src/lua_struct.c
Examining data/redis-6.0.9/deps/lua/src/luac.c
Examining data/redis-6.0.9/deps/lua/src/luaconf.h
Examining data/redis-6.0.9/deps/lua/src/lualib.h
Examining data/redis-6.0.9/deps/lua/src/lundump.c
Examining data/redis-6.0.9/deps/lua/src/lundump.h
Examining data/redis-6.0.9/deps/lua/src/lvm.c
Examining data/redis-6.0.9/deps/lua/src/lvm.h
Examining data/redis-6.0.9/deps/lua/src/lzio.c
Examining data/redis-6.0.9/deps/lua/src/lzio.h
Examining data/redis-6.0.9/deps/lua/src/print.c
Examining data/redis-6.0.9/deps/lua/src/strbuf.c
Examining data/redis-6.0.9/deps/lua/src/strbuf.h
Examining data/redis-6.0.9/src/acl.c
Examining data/redis-6.0.9/src/adlist.c
Examining data/redis-6.0.9/src/adlist.h
Examining data/redis-6.0.9/src/ae.c
Examining data/redis-6.0.9/src/ae.h
Examining data/redis-6.0.9/src/ae_epoll.c
Examining data/redis-6.0.9/src/ae_evport.c
Examining data/redis-6.0.9/src/ae_kqueue.c
Examining data/redis-6.0.9/src/ae_select.c
Examining data/redis-6.0.9/src/anet.c
Examining data/redis-6.0.9/src/anet.h
Examining data/redis-6.0.9/src/asciilogo.h
Examining data/redis-6.0.9/src/atomicvar.h
Examining data/redis-6.0.9/src/bio.c
Examining data/redis-6.0.9/src/bio.h
Examining data/redis-6.0.9/src/bitops.c
Examining data/redis-6.0.9/src/blocked.c
Examining data/redis-6.0.9/src/childinfo.c
Examining data/redis-6.0.9/src/cluster.c
Examining data/redis-6.0.9/src/cluster.h
Examining data/redis-6.0.9/src/config.c
Examining data/redis-6.0.9/src/config.h
Examining data/redis-6.0.9/src/connection.c
Examining data/redis-6.0.9/src/connection.h
Examining data/redis-6.0.9/src/connhelpers.h
Examining data/redis-6.0.9/src/crc16.c
Examining data/redis-6.0.9/src/crc16_slottable.h
Examining data/redis-6.0.9/src/crc64.c
Examining data/redis-6.0.9/src/crc64.h
Examining data/redis-6.0.9/src/crcspeed.c
Examining data/redis-6.0.9/src/crcspeed.h
Examining data/redis-6.0.9/src/db.c
Examining data/redis-6.0.9/src/debugmacro.h
Examining data/redis-6.0.9/src/defrag.c
Examining data/redis-6.0.9/src/dict.c
Examining data/redis-6.0.9/src/dict.h
Examining data/redis-6.0.9/src/endianconv.c
Examining data/redis-6.0.9/src/endianconv.h
Examining data/redis-6.0.9/src/evict.c
Examining data/redis-6.0.9/src/expire.c
Examining data/redis-6.0.9/src/geo.c
Examining data/redis-6.0.9/src/geo.h
Examining data/redis-6.0.9/src/geohash.c
Examining data/redis-6.0.9/src/geohash.h
Examining data/redis-6.0.9/src/geohash_helper.c
Examining data/redis-6.0.9/src/geohash_helper.h
Examining data/redis-6.0.9/src/gopher.c
Examining data/redis-6.0.9/src/help.h
Examining data/redis-6.0.9/src/hyperloglog.c
Examining data/redis-6.0.9/src/intset.c
Examining data/redis-6.0.9/src/intset.h
Examining data/redis-6.0.9/src/latency.c
Examining data/redis-6.0.9/src/latency.h
Examining data/redis-6.0.9/src/lazyfree.c
Examining data/redis-6.0.9/src/listpack.c
Examining data/redis-6.0.9/src/listpack.h
Examining data/redis-6.0.9/src/listpack_malloc.h
Examining data/redis-6.0.9/src/localtime.c
Examining data/redis-6.0.9/src/lolwut.c
Examining data/redis-6.0.9/src/lolwut.h
Examining data/redis-6.0.9/src/lolwut5.c
Examining data/redis-6.0.9/src/lolwut6.c
Examining data/redis-6.0.9/src/lzf.h
Examining data/redis-6.0.9/src/lzfP.h
Examining data/redis-6.0.9/src/lzf_c.c
Examining data/redis-6.0.9/src/lzf_d.c
Examining data/redis-6.0.9/src/memtest.c
Examining data/redis-6.0.9/src/module.c
Examining data/redis-6.0.9/src/modules/helloacl.c
Examining data/redis-6.0.9/src/modules/helloblock.c
Examining data/redis-6.0.9/src/modules/hellocluster.c
Examining data/redis-6.0.9/src/modules/hellodict.c
Examining data/redis-6.0.9/src/modules/hellohook.c
Examining data/redis-6.0.9/src/modules/hellotimer.c
Examining data/redis-6.0.9/src/modules/hellotype.c
Examining data/redis-6.0.9/src/modules/helloworld.c
Examining data/redis-6.0.9/src/modules/testmodule.c
Examining data/redis-6.0.9/src/multi.c
Examining data/redis-6.0.9/src/networking.c
Examining data/redis-6.0.9/src/notify.c
Examining data/redis-6.0.9/src/pqsort.c
Examining data/redis-6.0.9/src/pqsort.h
Examining data/redis-6.0.9/src/pubsub.c
Examining data/redis-6.0.9/src/quicklist.c
Examining data/redis-6.0.9/src/quicklist.h
Examining data/redis-6.0.9/src/rand.c
Examining data/redis-6.0.9/src/rand.h
Examining data/redis-6.0.9/src/rax.c
Examining data/redis-6.0.9/src/rax.h
Examining data/redis-6.0.9/src/rax_malloc.h
Examining data/redis-6.0.9/src/rdb.h
Examining data/redis-6.0.9/src/redis-benchmark.c
Examining data/redis-6.0.9/src/redis-check-aof.c
Examining data/redis-6.0.9/src/redis-check-rdb.c
Examining data/redis-6.0.9/src/redis-cli.c
Examining data/redis-6.0.9/src/redisassert.h
Examining data/redis-6.0.9/src/redismodule.h
Examining data/redis-6.0.9/src/release.c
Examining data/redis-6.0.9/src/replication.c
Examining data/redis-6.0.9/src/rio.c
Examining data/redis-6.0.9/src/rio.h
Examining data/redis-6.0.9/src/sds.c
Examining data/redis-6.0.9/src/sds.h
Examining data/redis-6.0.9/src/sdsalloc.h
Examining data/redis-6.0.9/src/sentinel.c
Examining data/redis-6.0.9/src/server.c
Examining data/redis-6.0.9/src/server.h
Examining data/redis-6.0.9/src/setcpuaffinity.c
Examining data/redis-6.0.9/src/setproctitle.c
Examining data/redis-6.0.9/src/sha1.c
Examining data/redis-6.0.9/src/sha1.h
Examining data/redis-6.0.9/src/sha256.c
Examining data/redis-6.0.9/src/sha256.h
Examining data/redis-6.0.9/src/siphash.c
Examining data/redis-6.0.9/src/slowlog.c
Examining data/redis-6.0.9/src/slowlog.h
Examining data/redis-6.0.9/src/solarisfixes.h
Examining data/redis-6.0.9/src/sort.c
Examining data/redis-6.0.9/src/sparkline.c
Examining data/redis-6.0.9/src/sparkline.h
Examining data/redis-6.0.9/src/stream.h
Examining data/redis-6.0.9/src/syncio.c
Examining data/redis-6.0.9/src/t_hash.c
Examining data/redis-6.0.9/src/t_list.c
Examining data/redis-6.0.9/src/t_set.c
Examining data/redis-6.0.9/src/t_stream.c
Examining data/redis-6.0.9/src/t_string.c
Examining data/redis-6.0.9/src/t_zset.c
Examining data/redis-6.0.9/src/testhelp.h
Examining data/redis-6.0.9/src/timeout.c
Examining data/redis-6.0.9/src/tls.c
Examining data/redis-6.0.9/src/tracking.c
Examining data/redis-6.0.9/src/util.c
Examining data/redis-6.0.9/src/util.h
Examining data/redis-6.0.9/src/version.h
Examining data/redis-6.0.9/src/ziplist.c
Examining data/redis-6.0.9/src/ziplist.h
Examining data/redis-6.0.9/src/zipmap.c
Examining data/redis-6.0.9/src/zipmap.h
Examining data/redis-6.0.9/src/fmacros.h
Examining data/redis-6.0.9/src/aof.c
Examining data/redis-6.0.9/src/rdb.c
Examining data/redis-6.0.9/src/debug.c
Examining data/redis-6.0.9/src/object.c
Examining data/redis-6.0.9/src/zmalloc.c
Examining data/redis-6.0.9/src/zmalloc.h
Examining data/redis-6.0.9/src/scripting.c
Examining data/redis-6.0.9/tests/modules/auth.c
Examining data/redis-6.0.9/tests/modules/blockedclient.c
Examining data/redis-6.0.9/tests/modules/blockonkeys.c
Examining data/redis-6.0.9/tests/modules/commandfilter.c
Examining data/redis-6.0.9/tests/modules/datatype.c
Examining data/redis-6.0.9/tests/modules/fork.c
Examining data/redis-6.0.9/tests/modules/getkeys.c
Examining data/redis-6.0.9/tests/modules/hooks.c
Examining data/redis-6.0.9/tests/modules/infotest.c
Examining data/redis-6.0.9/tests/modules/keyspace_events.c
Examining data/redis-6.0.9/tests/modules/misc.c
Examining data/redis-6.0.9/tests/modules/propagate.c
Examining data/redis-6.0.9/tests/modules/scan.c
Examining data/redis-6.0.9/tests/modules/testrdb.c
Examining data/redis-6.0.9/utils/corrupt_rdb.c
Examining data/redis-6.0.9/utils/hashtable/rehashing.c
Examining data/redis-6.0.9/utils/lru/lfu-simulation.c
Examining data/redis-6.0.9/utils/tracking_collisions.c

FINAL RESULTS:

data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hooks.h:12:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
#define readlink JEMALLOC_HOOK(readlink, hooks_libc_hook)
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hooks.h:12:32:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
#define readlink JEMALLOC_HOOK(readlink, hooks_libc_hook)
data/redis-6.0.9/deps/jemalloc/src/jemalloc.c:913:14:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
			linklen = readlink(linkname, buf, sizeof(buf) - 1);
data/redis-6.0.9/deps/linenoise/linenoise.c:1197:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(filename,S_IRUSR|S_IWUSR);
data/redis-6.0.9/src/anet.c:541:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod(sa.sun_path, perm);
data/redis-6.0.9/deps/hiredis/sds.c:523: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.
        vsnprintf(buf, buflen, fmt, cpy);
data/redis-6.0.9/deps/hiredis/sds.h:235:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/redis-6.0.9/deps/hiredis/test.c:52:47:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define test(_s) { printf("#%02d ", ++tests); printf(_s); }
data/redis-6.0.9/deps/hiredis/win32.h:23:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#ifndef snprintf
data/redis-6.0.9/deps/hiredis/win32.h:24:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf c99_snprintf
data/redis-6.0.9/deps/jemalloc/test/unit/fork.c:86:3:  [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.
		execvp(args[0], args);
data/redis-6.0.9/deps/jemalloc/test/unit/log.c:11:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(log_var_names, names);
data/redis-6.0.9/deps/jemalloc/test/unit/stats.c:225:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "stats.arenas.%u.bins.0.%s", arena_ind, name);
data/redis-6.0.9/deps/linenoise/linenoise.c:187:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(lndebug_fp, \
data/redis-6.0.9/deps/linenoise/linenoise.c:192:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(lndebug_fp, ", " __VA_ARGS__); \
data/redis-6.0.9/deps/lua/src/fpconv.c:185:16:  [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.
        return snprintf(str, FPCONV_G_FMT_BUFSIZE, fmt, num);
data/redis-6.0.9/deps/lua/src/fpconv.c:188:11:  [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.
    len = snprintf(buf, FPCONV_G_FMT_BUFSIZE, fmt, num);
data/redis-6.0.9/deps/lua/src/liolib.c:275:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (fscanf(f, LUA_NUMBER_SCAN, &d) == 1) {
data/redis-6.0.9/deps/lua/src/liolib.c:420:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(f, LUA_NUMBER_FMT, lua_tonumber(L, arg)) > 0;
data/redis-6.0.9/deps/lua/src/lobject.c:198:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(out, source);
data/redis-6.0.9/deps/lua/src/lobject.c:210:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(out, source);
data/redis-6.0.9/deps/lua/src/loslib.c:39:22:  [4] (shell) system:
  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.
  lua_pushinteger(L, system(luaL_optstring(L, 1, NULL)));
data/redis-6.0.9/deps/lua/src/lstrlib.c:750: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(form + l - 1, LUA_INTFRMLEN);
data/redis-6.0.9/deps/lua/src/lstrlib.c:777:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, (int)luaL_checknumber(L, arg));
data/redis-6.0.9/deps/lua/src/lstrlib.c:782:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, (LUA_INTFRM_T)luaL_checknumber(L, arg));
data/redis-6.0.9/deps/lua/src/lstrlib.c:787:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, (unsigned LUA_INTFRM_T)luaL_checknumber(L, arg));
data/redis-6.0.9/deps/lua/src/lstrlib.c:792:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(buff, form, (double)luaL_checknumber(L, arg));
data/redis-6.0.9/deps/lua/src/lstrlib.c:810:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buff, form, s);
data/redis-6.0.9/deps/lua/src/luaconf.h:523:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define lua_number2str(s,n)	sprintf((s), LUA_NUMBER_FMT, (n))
data/redis-6.0.9/deps/lua/src/luaconf.h:670:50:  [4] (shell) popen:
  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.
#define lua_popen(L,c,m)	((void)L, fflush(NULL), popen(c,m))
data/redis-6.0.9/deps/lua/src/print.c:60:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(bvalue(o) ? "true" : "false");
data/redis-6.0.9/deps/lua/src/print.c:63:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(LUA_NUMBER_FMT,nvalue(o));
data/redis-6.0.9/deps/lua/src/strbuf.c:37:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, arg);
data/redis-6.0.9/deps/lua/src/strbuf.c:210: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.
    fmt_len = vsnprintf(s->buf + s->length, len, fmt, arg);
data/redis-6.0.9/deps/lua/src/strbuf.c:236: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.
        fmt_len = vsnprintf(s->buf + s->length, empty_len + 1, fmt, arg);
data/redis-6.0.9/src/anet.c:57: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(err, ANET_ERR_LEN, fmt, ap);
data/redis-6.0.9/src/anet.c:631:12:  [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.
    return snprintf(buf,buf_len, strchr(ip,':') ?
data/redis-6.0.9/src/debug.c:904: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(fmtmsg,sizeof(fmtmsg),msg,ap);
data/redis-6.0.9/src/debugmacro.h:38:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(fp,__VA_ARGS__);                                             \
data/redis-6.0.9/src/dict.c:1182:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(msg ": %ld items in %lld ms\n", count, elapsed); \
data/redis-6.0.9/src/module.c:4325: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(msg + name_len, sizeof(msg) - name_len, fmt, ap);
data/redis-6.0.9/src/quicklist.c:68:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(__VA_ARGS__);                                                   \
data/redis-6.0.9/src/rax.c:65:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(__VA_ARGS__);                                                   \
data/redis-6.0.9/src/rax.c:1875:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(branch,n->data[i]);
data/redis-6.0.9/src/rdb.c:57:99:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void rdbReportError(int corruption_error, int linenum, char *reason, ...) __attribute__ ((format (printf, 3, 4)));
data/redis-6.0.9/src/rdb.c:68: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(msg+len,sizeof(msg)-len,reason,ap);
data/redis-6.0.9/src/redis-check-aof.c:36: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(__buf, sizeof(__buf), __VA_ARGS__); \
data/redis-6.0.9/src/redis-check-rdb.c:107: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(msg, sizeof(msg), fmt, ap);
data/redis-6.0.9/src/redis-check-rdb.c:134: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(msg, sizeof(msg), fmt, ap);
data/redis-6.0.9/src/redis-check-rdb.c:148: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(rdbstate.error, sizeof(rdbstate.error), fmt, ap);
data/redis-6.0.9/src/redis-cli.c:2546:17:  [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(*err, r->str);
data/redis-6.0.9/src/redis-cli.c:2706:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(*err, info->str);
data/redis-6.0.9/src/redis-cli.c:3276:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(*err, reply->str);
data/redis-6.0.9/src/redis-cli.c:3550:17:  [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(*err, reply->str);
data/redis-6.0.9/src/redis-cli.c:3662:25:  [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(*err, migrate_reply->str);
data/redis-6.0.9/src/redis-cli.c:3738:21:  [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(*err, r->str);
data/redis-6.0.9/src/redis-cli.c:3767:17:  [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(*err, reply->str);
data/redis-6.0.9/src/redis-cli.c:5286:44:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        case CLUSTER_MANAGER_LOG_LVL_INFO: printf(LOG_COLOR_BOLD); break;
data/redis-6.0.9/src/redis-cli.c:5287:44:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        case CLUSTER_MANAGER_LOG_LVL_WARN: printf(LOG_COLOR_YELLOW); break;
data/redis-6.0.9/src/redis-cli.c:5288:43:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        case CLUSTER_MANAGER_LOG_LVL_ERR: printf(LOG_COLOR_RED); break;
data/redis-6.0.9/src/redis-cli.c:5289:47:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        case CLUSTER_MANAGER_LOG_LVL_SUCCESS: printf(LOG_COLOR_GREEN); break;
data/redis-6.0.9/src/redis-cli.c:5290:18:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        default: printf(LOG_COLOR_RESET); break;
data/redis-6.0.9/src/redis-cli.c:5295:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, ap);
data/redis-6.0.9/src/redis-cli.c:5297:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if (use_colors) printf("\033[" LOG_COLOR_RESET);
data/redis-6.0.9/src/redis-cli.c:5750:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG);
data/redis-6.0.9/src/redis-cli.c:5817:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG);
data/redis-6.0.9/src/redis-cli.c:5830:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG);
data/redis-6.0.9/src/redis-cli.c:5843:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG);
data/redis-6.0.9/src/redis-cli.c:6035:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG);
data/redis-6.0.9/src/redis-cli.c:6224:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG);
data/redis-6.0.9/src/redis-cli.c:6282:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG);
data/redis-6.0.9/src/redis-cli.c:6465:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG);
data/redis-6.0.9/src/redis-cli.c:6529:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG);
data/redis-6.0.9/src/redismodule.h:442:72:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#        define REDISMODULE_ATTR_PRINTF(idx,cnt) __attribute__((format(printf,idx,cnt)))
data/redis-6.0.9/src/sds.c:541: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.
        vsnprintf(buf, buflen, fmt, cpy);
data/redis-6.0.9/src/sds.h:233:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/redis-6.0.9/src/sentinel.c:520: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.
    } else if (access(server.configfile,W_OK) == -1) {
data/redis-6.0.9/src/sentinel.c:648: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.
        vsnprintf(msg+strlen(msg), sizeof(msg)-strlen(msg), fmt, ap);
data/redis-6.0.9/src/sentinel.c:1670: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.
        if (access(argv[2],X_OK) == -1)
data/redis-6.0.9/src/sentinel.c:1677: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.
        if (access(argv[2],X_OK) == -1)
data/redis-6.0.9/src/sentinel.c:3515:34:  [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 (strlen(value) && access(value,X_OK) == -1) {
data/redis-6.0.9/src/sentinel.c:3535:34:  [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 (strlen(value) && access(value,X_OK) == -1) {
data/redis-6.0.9/src/server.c:1078: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(msg, sizeof(msg), fmt, ap);
data/redis-6.0.9/src/server.c:2491: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(server.executable,X_OK) == -1) {
data/redis-6.0.9/src/server.c:4854:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(buf,1024*16,ascii_logo,
data/redis-6.0.9/src/server.h:1734:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/redis-6.0.9/src/server.h:1736:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/redis-6.0.9/src/server.h:2028:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/redis-6.0.9/src/server.h:2472:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__ ((format (printf, 3, 4)));
data/redis-6.0.9/src/setproctitle.c:231: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.
		len = vsnprintf(buf, sizeof buf, fmt, ap);
data/redis-6.0.9/src/ziplist.c:1253:36:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define debug(f, ...) { if (DEBUG) printf(f, __VA_ARGS__); }
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/mutex.h:79:37:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#    define MALLOC_MUTEX_LOCK(m)    EnterCriticalSection(&(m)->lock)
data/redis-6.0.9/deps/jemalloc/src/jemalloc.c:707: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.
	return getenv(name);
data/redis-6.0.9/deps/jemalloc/test/src/mtx.c:47:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&mtx->lock);
data/redis-6.0.9/deps/linenoise/linenoise.c:222:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *term = getenv("TERM");
data/redis-6.0.9/deps/lua/src/lmathlib.c:210: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(luaL_checkint(L, 1));
data/redis-6.0.9/deps/lua/src/loadlib.c:594: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.
  const char *path = getenv(envname);
data/redis-6.0.9/deps/lua/src/loslib.c:69: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.
  lua_pushstring(L, getenv(luaL_checkstring(L, 1)));  /* if NULL push nil */
data/redis-6.0.9/deps/lua/src/lua.c:324: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.
  const char *init = getenv(LUA_INIT);
data/redis-6.0.9/deps/lua/src/luaconf.h:657:33:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define lua_tmpnam(b,e)		{ e = (tmpnam(b) == NULL); }
data/redis-6.0.9/src/cluster.c:3157: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.
            random() % 500; /* Random delay between 0 and 500 milliseconds. */
data/redis-6.0.9/src/dict.c:624:33:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            h = d->rehashidx + (random() % (d->ht[0].size +
data/redis-6.0.9/src/dict.c:632: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.
            h = random() & d->ht[0].sizemask;
data/redis-6.0.9/src/dict.c:647:15:  [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.
    listele = random() % listlen;
data/redis-6.0.9/src/dict.c:698:23:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    unsigned long i = random() & maxsizemask;
data/redis-6.0.9/src/dict.c:723:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                    i = random() & maxsizemask;
data/redis-6.0.9/src/intset.c:356:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/redis-6.0.9/src/redis-benchmark.c:392: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.
            r = random() % config.randomkeys_keyspacelen;
data/redis-6.0.9/src/redis-benchmark.c:1523:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom(time(NULL));
data/redis-6.0.9/src/redis-cli.c:324: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.
    path = getenv(envoverride);
data/redis-6.0.9/src/redis-cli.c:333: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.
        char *home = getenv("HOME");
data/redis-6.0.9/src/redis-cli.c:1040:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *t = getenv("TERM");
data/redis-6.0.9/src/redis-cli.c:1688:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *auth = getenv(REDIS_CLI_AUTH_ENV);
data/redis-6.0.9/src/redis-cli.c:1693: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.
    char *cluster_yes = getenv(REDIS_CLI_CLUSTER_YES_ENV);
data/redis-6.0.9/src/redis-cli.c:2853:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/redis-6.0.9/src/redis-cli.c:4443:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/redis-6.0.9/src/redis-cli.c:7102:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/redis-6.0.9/src/redis-cli.c:7926:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL)^getpid());
data/redis-6.0.9/src/redis-cli.c:8127:37:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!isatty(fileno(stdout)) && (getenv("FAKETTY") == NULL))
data/redis-6.0.9/src/server.c:5078:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *upstart_job = getenv("UPSTART_JOB");
data/redis-6.0.9/src/server.c:5093:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *notify_socket = getenv("NOTIFY_SOCKET");
data/redis-6.0.9/src/server.c:5109:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        const char *upstart_job = getenv("UPSTART_JOB");
data/redis-6.0.9/src/server.c:5110:37:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        const char *notify_socket = getenv("NOTIFY_SOCKET");
data/redis-6.0.9/src/server.c:5173:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL)^getpid());
data/redis-6.0.9/src/t_zset.c:124: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.
    while ((random()&0xFFFF) < (ZSKIPLIST_P * 0xFFFF))
data/redis-6.0.9/src/ziplist.c:1390:9:  [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(atoi(argv[1]));
data/redis-6.0.9/utils/corrupt_rdb.c:23:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/redis-6.0.9/utils/hashtable/rehashing.c:104:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/redis-6.0.9/deps/hiredis/async.c:61:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dup,src,sizeof(*dup));
data/redis-6.0.9/deps/hiredis/async.c:222: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(cb,source,sizeof(*cb));
data/redis-6.0.9/deps/hiredis/async.c:244: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(target,cb,sizeof(*cb));
data/redis-6.0.9/deps/hiredis/async.c:394: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(dstcb,cb,sizeof(*dstcb));
data/redis-6.0.9/deps/hiredis/examples/example-libevent-ssl.c:49:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int port = atoi(argv[3]);
data/redis-6.0.9/deps/hiredis/examples/example-ssl.c:17:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int port = atoi(argv[2]);
data/redis-6.0.9/deps/hiredis/examples/example-ssl.c:77:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/redis-6.0.9/deps/hiredis/examples/example.c:21:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int port = (argc > 2) ? atoi(argv[2]) : 6379;
data/redis-6.0.9/deps/hiredis/examples/example.c:71:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/redis-6.0.9/deps/hiredis/hiredis.c:136:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r->vtype,str,3);
data/redis-6.0.9/deps/hiredis/hiredis.c:138:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf,str+4,len-4);
data/redis-6.0.9/deps/hiredis/hiredis.c:147:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf,str,len);
data/redis-6.0.9/deps/hiredis/hiredis.c:228:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(r->str, str, len);
data/redis-6.0.9/deps/hiredis/hiredis.c:366: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 _format[16];
data/redis-6.0.9/deps/hiredis/hiredis.c:445:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(_format,c,_l);
data/redis-6.0.9/deps/hiredis/hiredis.c:489:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    pos = sprintf(cmd,"*%d\r\n",argc);
data/redis-6.0.9/deps/hiredis/hiredis.c:491:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        pos += sprintf(cmd+pos,"$%zu\r\n",sdslen(curargv[j]));
data/redis-6.0.9/deps/hiredis/hiredis.c:492: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(cmd+pos,curargv[j],sdslen(curargv[j]));
data/redis-6.0.9/deps/hiredis/hiredis.c:634:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    pos = sprintf(cmd,"*%d\r\n",argc);
data/redis-6.0.9/deps/hiredis/hiredis.c:637:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        pos += sprintf(cmd+pos,"$%zu\r\n",len);
data/redis-6.0.9/deps/hiredis/hiredis.c:638: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(cmd+pos,argv[j],len);
data/redis-6.0.9/deps/hiredis/hiredis.c:661: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(c->errstr,str,len);
data/redis-6.0.9/deps/hiredis/hiredis.c:874:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024*16];
data/redis-6.0.9/deps/hiredis/hiredis.h:105:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vtype[4]; /* Used for REDIS_REPLY_VERB, contains the null
data/redis-6.0.9/deps/hiredis/hiredis.h:211:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[128]; /* String representation of error when applicable */
data/redis-6.0.9/deps/hiredis/net.c:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128] = { 0 };
data/redis-6.0.9/deps/hiredis/net.c:340:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _port[6];  /* strlen("65535"); */
data/redis-6.0.9/deps/hiredis/net.c:369: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(c->timeout, timeout, sizeof(struct timeval));
data/redis-6.0.9/deps/hiredis/net.c:418: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 buf[128];
data/redis-6.0.9/deps/hiredis/net.c:441: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 buf[128];
data/redis-6.0.9/deps/hiredis/net.c:451: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(c->saddr, p->ai_addr, p->ai_addrlen);
data/redis-6.0.9/deps/hiredis/net.c:489:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[128];
data/redis-6.0.9/deps/hiredis/net.c:536: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(c->timeout, timeout, sizeof(struct timeval));
data/redis-6.0.9/deps/hiredis/read.c:69: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(r->errstr,str,len);
data/redis-6.0.9/deps/hiredis/read.c:98:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cbuf[8], sbuf[128];
data/redis-6.0.9/deps/hiredis/read.c:285: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 buf[326], *eptr;
data/redis-6.0.9/deps/hiredis/read.c:294:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buf,p,len);
data/redis-6.0.9/deps/hiredis/read.h:93:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[128]; /* String representation of error when applicable */
data/redis-6.0.9/deps/hiredis/sds.c:132: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(s, init, initlen);
data/redis-6.0.9/deps/hiredis/sds.c:232:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char*)newsh+hdrlen, s, len+1);
data/redis-6.0.9/deps/hiredis/sds.c:264:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char*)newsh+hdrlen, s, len+1);
data/redis-6.0.9/deps/hiredis/sds.c:384:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(s+curlen, t, len);
data/redis-6.0.9/deps/hiredis/sds.c:413: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(s, t, len);
data/redis-6.0.9/deps/hiredis/sds.c:497:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SDS_LLSTR_SIZE];
data/redis-6.0.9/deps/hiredis/sds.c:506:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char staticbuf[1024], *buf = staticbuf, *t;
data/redis-6.0.9/deps/hiredis/sds.c:614:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(s+i,str,l);
data/redis-6.0.9/deps/hiredis/sds.c:625: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 buf[SDS_LLSTR_SIZE];
data/redis-6.0.9/deps/hiredis/sds.c:631:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(s+i,buf,l);
data/redis-6.0.9/deps/hiredis/sds.c:643: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 buf[SDS_LLSTR_SIZE];
data/redis-6.0.9/deps/hiredis/sds.c:649:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(s+i,buf,l);
data/redis-6.0.9/deps/hiredis/ssl.c:196: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 err[512];
data/redis-6.0.9/deps/hiredis/test.c:251:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[3];
data/redis-6.0.9/deps/hiredis/test.c:931:28:  [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).
            cfg.tcp.port = atoi(argv[0]);
data/redis-6.0.9/deps/hiredis/test.c:942:28:  [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).
            cfg.ssl.port = atoi(argv[0]);
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/arena_stats.h:101: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.
			assert(((char *)arena_stats)[i] == 0);
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/emitter.h:155:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt[FMT_SIZE];
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/emitter.h:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SIZE];
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hash.h:30:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&ret, (uint8_t *)(p + i), sizeof(uint32_t));
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hash.h:43:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&ret, (uint8_t *)(p + i), sizeof(uint64_t));
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hooks.h:9:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open JEMALLOC_HOOK(open, hooks_libc_hook)
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hooks.h:9:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open JEMALLOC_HOOK(open, hooks_libc_hook)
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:167:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, ptr, copysize);
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/log.h:38:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char log_var_names[JEMALLOC_LOG_VAR_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/log.h:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[JEMALLOC_LOG_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/prof_externs.h:17:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char	opt_prof_prefix[
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/stats.h:24:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char opt_stats_print_opts[stats_print_tot_num_options+1];
data/redis-6.0.9/deps/jemalloc/src/arena.c:584: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.
			assert(((char *)decay)[i] == 0);
data/redis-6.0.9/deps/jemalloc/src/arena.c:1667:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret, ptr, copysize);
data/redis-6.0.9/deps/jemalloc/src/ctl.c:1324:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(oldp, (void *)&(v), copylen);		\
data/redis-6.0.9/deps/jemalloc/src/ctl.c:1657:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *)
data/redis-6.0.9/deps/jemalloc/src/ctl.c:1659:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CTL_RO_NL_GEN(opt_dss, opt_dss, const char *)
data/redis-6.0.9/deps/jemalloc/src/ctl.c:1668:65:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CTL_RO_NL_GEN(opt_stats_print_opts, opt_stats_print_opts, const char *)
data/redis-6.0.9/deps/jemalloc/src/ctl.c:1669:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CTL_RO_NL_CGEN(config_fill, opt_junk, opt_junk, const char *)
data/redis-6.0.9/deps/jemalloc/src/ctl.c:2653:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CTL_RO_GEN(stats_arenas_i_dss, arenas_i(mib[2])->dss, const char *)
data/redis-6.0.9/deps/jemalloc/src/jemalloc.c:874:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX + 1];
data/redis-6.0.9/deps/jemalloc/src/large.c:299:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret, extent_addr_get(extent), copysize);
data/redis-6.0.9/deps/jemalloc/src/log.c:6: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 log_var_names[JEMALLOC_LOG_VAR_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:321:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s, uppercase ? "0X" : "0x", 2);
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:340:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&str[i], s, cpylen);				\
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:522:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[D2S_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:532:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[O2S_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:541:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[U2S_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:550:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[X2S_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:559:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2];
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:579:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[X2S_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:625:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[MALLOC_PRINTF_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/pages.c:138:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[BUFERROR_BUF];
data/redis-6.0.9/deps/jemalloc/src/pages.c:438:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1];
data/redis-6.0.9/deps/jemalloc/src/pages.c:463: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).
		fd = open("/proc/sys/vm/overcommit_memory", O_RDONLY | O_CLOEXEC);
data/redis-6.0.9/deps/jemalloc/src/pages.c:465: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).
		fd = open("/proc/sys/vm/overcommit_memory", O_RDONLY);
data/redis-6.0.9/deps/jemalloc/src/pages.c:528:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[sizeof(sys_state_madvise)];
data/redis-6.0.9/deps/jemalloc/src/pages.c:534:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open("/sys/kernel/mm/transparent_hugepage/enabled", O_RDONLY);
data/redis-6.0.9/deps/jemalloc/src/prof.c: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		opt_prof_prefix[
data/redis-6.0.9/deps/jemalloc/src/prof.c:120: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		prof_dump_buf[
data/redis-6.0.9/deps/jemalloc/src/prof.c:572:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(gctx->vec, bt->vec, bt->len * sizeof(void *));
data/redis-6.0.9/deps/jemalloc/src/prof.c:1032: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(&prof_dump_buf[prof_dump_buf_end], &s[i], n);
data/redis-6.0.9/deps/jemalloc/src/prof.c:1045:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PROF_PRINTF_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/prof.c:1069: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(&tctx->dump_cnts, &tctx->cnts, sizeof(prof_cnt_t));
data/redis-6.0.9/deps/jemalloc/src/prof.c:1407:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX + 1];
data/redis-6.0.9/deps/jemalloc/src/prof.c:1414: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).
	mfd = open(filename, O_RDONLY | O_CLOEXEC);
data/redis-6.0.9/deps/jemalloc/src/prof.c:1416: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).
	mfd = open(filename, O_RDONLY);
data/redis-6.0.9/deps/jemalloc/src/prof.c:1743:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[DUMP_FILENAME_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/prof.c:1802:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char filename[PATH_MAX + 1];
data/redis-6.0.9/deps/jemalloc/src/prof.c:1819:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename_buf[DUMP_FILENAME_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/prof.c:1859:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char filename[DUMP_FILENAME_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/src/prof.c:2152:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret, thread_name, size);
data/redis-6.0.9/deps/jemalloc/src/prof.c:2263:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(opt_prof_prefix, PROF_PREFIX_DEFAULT,
data/redis-6.0.9/deps/jemalloc/src/stats.c:11: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.
const char *global_mutex_names[mutex_prof_num_global_mutexes] = {
data/redis-6.0.9/deps/jemalloc/src/stats.c:17: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.
const char *arena_mutex_names[mutex_prof_num_arena_mutexes] = {
data/redis-6.0.9/deps/jemalloc/src/stats.c:51: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 opt_stats_print_opts[stats_print_tot_num_options+1] = "";
data/redis-6.0.9/deps/jemalloc/src/stats.c:57:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
get_rate_str(uint64_t dividend, uint64_t divisor, char str[6]) {
data/redis-6.0.9/deps/jemalloc/src/stats.c:88:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
mutex_stats_init_cols(emitter_row_t *row, const char *table_name,
data/redis-6.0.9/deps/jemalloc/src/stats.c:122:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
mutex_stats_read_global(const char *name, emitter_col_t *col_name,
data/redis-6.0.9/deps/jemalloc/src/stats.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[MUTEX_CTL_STR_MAX_LENGTH];
data/redis-6.0.9/deps/jemalloc/src/stats.c:146:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *name, emitter_col_t *col_name,
data/redis-6.0.9/deps/jemalloc/src/stats.c:149:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[MUTEX_CTL_STR_MAX_LENGTH];
data/redis-6.0.9/deps/jemalloc/src/stats.c:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[MUTEX_CTL_STR_MAX_LENGTH];
data/redis-6.0.9/deps/jemalloc/src/stats.c:362:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char util[6];
data/redis-6.0.9/deps/jemalloc/src/stats.c:1206:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char arena_ind_str[20];
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:7:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char prefix[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:8:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char message[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:217:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char prefix[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h: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 message[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:233:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char prefix[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:234:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char message[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:250:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char prefix[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:251:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char message[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:263:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char prefix[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:264:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char message[ASSERT_BUFSIZE];				\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:276:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[ASSERT_BUFSIZE];					\
data/redis-6.0.9/deps/jemalloc/test/include/test/test.h:277:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[ASSERT_BUFSIZE];					\
data/redis-6.0.9/deps/jemalloc/test/integration/aligned_alloc.c:101:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char buf[BUFERROR_BUF];
data/redis-6.0.9/deps/jemalloc/test/integration/posix_memalign.c:95:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char buf[BUFERROR_BUF];
data/redis-6.0.9/deps/jemalloc/test/integration/thread_arena.c:20:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFERROR_BUF];
data/redis-6.0.9/deps/jemalloc/test/integration/thread_arena.c:29:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BUFERROR_BUF];
data/redis-6.0.9/deps/jemalloc/test/integration/thread_arena.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFERROR_BUF];
data/redis-6.0.9/deps/jemalloc/test/stress/microbench.c:22:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ratio_buf[6];
data/redis-6.0.9/deps/jemalloc/test/unit/arena_reset.c:308:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hooks_orig, &hooks, sizeof(extent_hooks_t));
data/redis-6.0.9/deps/jemalloc/test/unit/arena_reset.c:309:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hooks, &hooks_unmap, sizeof(extent_hooks_t));
data/redis-6.0.9/deps/jemalloc/test/unit/arena_reset.c:333:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hooks, &hooks_orig, sizeof(extent_hooks_t));
data/redis-6.0.9/deps/jemalloc/test/unit/base.c:72:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hooks_orig, &hooks, sizeof(extent_hooks_t));
data/redis-6.0.9/deps/jemalloc/test/unit/base.c:73:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hooks, &hooks_null, sizeof(extent_hooks_t));
data/redis-6.0.9/deps/jemalloc/test/unit/base.c:102:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hooks, &hooks_orig, sizeof(extent_hooks_t));
data/redis-6.0.9/deps/jemalloc/test/unit/base.c:117:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hooks_orig, &hooks, sizeof(extent_hooks_t));
data/redis-6.0.9/deps/jemalloc/test/unit/base.c:118:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hooks, &hooks_not_null, sizeof(extent_hooks_t));
data/redis-6.0.9/deps/jemalloc/test/unit/base.c:224:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hooks, &hooks_orig, sizeof(extent_hooks_t));
data/redis-6.0.9/deps/jemalloc/test/unit/emitter.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[MALLOC_PRINTF_BUFSIZE];
data/redis-6.0.9/deps/jemalloc/test/unit/hash.c:83:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&hashes[i*hashbytes], &out, hashbytes);
data/redis-6.0.9/deps/jemalloc/test/unit/hash.c:88:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&hashes[i*hashbytes], out, hashbytes);
data/redis-6.0.9/deps/jemalloc/test/unit/hash.c:93:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&hashes[i*hashbytes], out, hashbytes);
data/redis-6.0.9/deps/jemalloc/test/unit/hash.c:103:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(final, &out, sizeof(out));
data/redis-6.0.9/deps/jemalloc/test/unit/hash.c:108: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(final, out, sizeof(out));
data/redis-6.0.9/deps/jemalloc/test/unit/hash.c:113: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(final, out, sizeof(out));
data/redis-6.0.9/deps/jemalloc/test/unit/log.c:53:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(log_var_names, "l1");
data/redis-6.0.9/deps/jemalloc/test/unit/log.c:62:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(log_var_names, "l1.a");
data/redis-6.0.9/deps/jemalloc/test/unit/log.c:71:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(log_var_names, "l1.a|abc|l2|def");
data/redis-6.0.9/deps/jemalloc/test/unit/log.c:88:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(log_var_names, "l0|l1|abc|l2.b|def");
data/redis-6.0.9/deps/jemalloc/test/unit/log.c:138:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(log_var_names, "abc|.|def");
data/redis-6.0.9/deps/jemalloc/test/unit/malloc_io.c:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFLEN];
data/redis-6.0.9/deps/jemalloc/test/unit/malloc_io.c:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFLEN];
data/redis-6.0.9/deps/jemalloc/test/unit/prof_accum.c:12:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/null", O_WRONLY);
data/redis-6.0.9/deps/jemalloc/test/unit/prof_gdump.c:11:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/null", O_WRONLY);
data/redis-6.0.9/deps/jemalloc/test/unit/prof_idump.c:11:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/null", O_WRONLY);
data/redis-6.0.9/deps/jemalloc/test/unit/prof_reset.c:7:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/null", O_WRONLY);
data/redis-6.0.9/deps/jemalloc/test/unit/prof_reset.c:90:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&cnt_all_copy, cnt_all, sizeof(prof_cnt_t));
data/redis-6.0.9/deps/jemalloc/test/unit/prof_thread_name.c:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char thread_name[16] = "";
data/redis-6.0.9/deps/jemalloc/test/unit/stats.c:257:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[128];
data/redis-6.0.9/deps/jemalloc/test/unit/stats_print.c:101:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&buf[parser->len], str, len + 1);
data/redis-6.0.9/deps/linenoise/example.c:67: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).
            int len = atoi(line+11);
data/redis-6.0.9/deps/linenoise/linenoise.c:186:26:  [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).
            lndebug_fp = fopen("/tmp/lndebug.txt","a"); \
data/redis-6.0.9/deps/linenoise/linenoise.c:277:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/redis-6.0.9/deps/linenoise/linenoise.c:318: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 seq[32];
data/redis-6.0.9/deps/linenoise/linenoise.c:449:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(copy,str,len+1);
data/redis-6.0.9/deps/linenoise/linenoise.c:479:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new+ab->len,s,len);
data/redis-6.0.9/deps/linenoise/linenoise.c:491:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char seq[64];
data/redis-6.0.9/deps/linenoise/linenoise.c:519:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char seq[64];
data/redis-6.0.9/deps/linenoise/linenoise.c:564:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char seq[64];
data/redis-6.0.9/deps/linenoise/linenoise.c:824: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 seq[3];
data/redis-6.0.9/deps/linenoise/linenoise.c:982:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char quit[4];
data/redis-6.0.9/deps/linenoise/linenoise.c:1065:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LINENOISE_MAX_LINE];
data/redis-6.0.9/deps/linenoise/linenoise.c:1177: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(new,history+(history_len-tocopy), sizeof(char*)*tocopy);
data/redis-6.0.9/deps/linenoise/linenoise.c:1194:10:  [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).
    fp = fopen(filename,"w");
data/redis-6.0.9/deps/linenoise/linenoise.c:1210:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename,"r");
data/redis-6.0.9/deps/linenoise/linenoise.c:1211:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LINENOISE_MAX_LINE];
data/redis-6.0.9/deps/lua/src/fpconv.c:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[8];
data/redis-6.0.9/deps/lua/src/fpconv.c:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char localbuf[FPCONV_G_FMT_BUFSIZE];
data/redis-6.0.9/deps/lua/src/fpconv.c:136: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(buf, nptr, buflen);
data/redis-6.0.9/deps/lua/src/fpconv.c:176:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FPCONV_G_FMT_BUFSIZE];
data/redis-6.0.9/deps/lua/src/fpconv.c:177:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fmt[6];
data/redis-6.0.9/deps/lua/src/lauxlib.c:459: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(B->p, s, vl);  /* put it there */
data/redis-6.0.9/deps/lua/src/lauxlib.c:525:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[LUAL_BUFFERSIZE];
data/redis-6.0.9/deps/lua/src/lauxlib.c:564: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).
    lf.f = fopen(filename, "r");
data/redis-6.0.9/deps/lua/src/lauxlib.h:133:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LUAL_BUFFERSIZE];
data/redis-6.0.9/deps/lua/src/ldblib.c:285:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[5];
data/redis-6.0.9/deps/lua/src/ldblib.c:304:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[250];
data/redis-6.0.9/deps/lua/src/ldebug.c:610:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[LUA_IDSIZE];  /* add file:line information */
data/redis-6.0.9/deps/lua/src/ldump.c:145:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char h[LUAC_HEADERSIZE];
data/redis-6.0.9/deps/lua/src/liolib.c:165:9:  [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).
  *pf = fopen(filename, mode);
data/redis-6.0.9/deps/lua/src/liolib.c:185:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  *pf = tmpfile();
data/redis-6.0.9/deps/lua/src/liolib.c:205:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      *pf = fopen(filename, mode);
data/redis-6.0.9/deps/lua/src/liolib.c:257:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    *pf = fopen(filename, "r");
data/redis-6.0.9/deps/lua/src/llex.c: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 buff[MAXSRC];
data/redis-6.0.9/deps/lua/src/loadlib.c:98:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[MAX_PATH + 1];
data/redis-6.0.9/deps/lua/src/loadlib.c:114:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[128];
data/redis-6.0.9/deps/lua/src/loadlib.c:333:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(filename, "r");  /* try to open file */
data/redis-6.0.9/deps/lua/src/lobject.c:127: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 buff[2];
data/redis-6.0.9/deps/lua/src/lobject.c:144: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 buff[4*sizeof(void *) + 8]; /* should be enough space for a `%p' */
data/redis-6.0.9/deps/lua/src/lobject.c:145:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buff, "%p", va_arg(argp, void *));
data/redis-6.0.9/deps/lua/src/lobject.c:154: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 buff[3];
data/redis-6.0.9/deps/lua/src/lobject.c:196:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(out, "...");
data/redis-6.0.9/deps/lua/src/lobject.c:204:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(out, "[string \"");
data/redis-6.0.9/deps/lua/src/lobject.c:207:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(out, "...");
data/redis-6.0.9/deps/lua/src/lobject.c:211:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(out, "\"]");
data/redis-6.0.9/deps/lua/src/lopcodes.c:16: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.
const char *const luaP_opnames[NUM_OPCODES+1] = {
data/redis-6.0.9/deps/lua/src/lopcodes.h:261: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.
LUAI_DATA const char *const luaP_opnames[NUM_OPCODES+1];  /* opcode names */
data/redis-6.0.9/deps/lua/src/loslib.c:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[LUA_TMPNAMBUFSIZE];
data/redis-6.0.9/deps/lua/src/loslib.c:149:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cc[3];
data/redis-6.0.9/deps/lua/src/loslib.c:158:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[200];  /* should be big enough for any conversion result */
data/redis-6.0.9/deps/lua/src/lstring.c:62: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(ts+1, str, l*sizeof(char));
data/redis-6.0.9/deps/lua/src/lstrlib.c:770: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 form[MAX_FORMAT];  /* to store the format (`%...') */
data/redis-6.0.9/deps/lua/src/lstrlib.c:771: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 buff[MAX_ITEM];  /* to store the formatted item */
data/redis-6.0.9/deps/lua/src/lua.c:178:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[LUA_MAXINPUT];
data/redis-6.0.9/deps/lua/src/lua.h:356:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char short_src[LUA_IDSIZE]; /* (S) */
data/redis-6.0.9/deps/lua/src/lua_bit.c:132:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[8];
data/redis-6.0.9/deps/lua/src/lua_cjson.c:116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char escape2char[256];  /* Decoding */
data/redis-6.0.9/deps/lua/src/lua_cjson.c:153: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 *char2escape[256] = {
data/redis-6.0.9/deps/lua/src/lua_cjson.c:223:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/redis-6.0.9/deps/lua/src/lua_cjson.c:821:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char utf8[4];       /* Surrogate pairs require 4 UTF-8 bytes */
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:125:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf->b+buf->len,s,len);
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:175:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hdr[5];
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:204:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char b[9];
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:210:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(b+1,&f,4);
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:215: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(b+1,&d,8);
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:222:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char b[9];
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:294:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char b[5];
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:317:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char b[5];
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:476:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char b[1];
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:681: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(&f,c->p+1,4);
data/redis-6.0.9/deps/lua/src/lua_cmsgpack.c:692: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(&d,c->p+1,8);
data/redis-6.0.9/deps/lua/src/lua_struct.c:173:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[MAXINTSIZE];
data/redis-6.0.9/deps/lua/src/lua_struct.c:325: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(&f, data+pos, size);
data/redis-6.0.9/deps/lua/src/lua_struct.c:332: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(&d, data+pos, size);
data/redis-6.0.9/deps/lua/src/luac.c:175:38:  [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* D= (output==NULL) ? stdout : fopen(output,"wb");
data/redis-6.0.9/deps/lua/src/luaconf.h:650:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(b, "/tmp/lua_XXXXXX"); \
data/redis-6.0.9/deps/lua/src/luaconf.h:651:6:  [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).
	e = mkstemp(b); \
data/redis-6.0.9/deps/lua/src/lundump.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char h[LUAC_HEADERSIZE];
data/redis-6.0.9/deps/lua/src/lundump.c:186:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char s[LUAC_HEADERSIZE];
data/redis-6.0.9/deps/lua/src/lundump.c:217:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 memcpy(h,LUA_SIGNATURE,sizeof(LUA_SIGNATURE)-1);
data/redis-6.0.9/deps/lua/src/lvm.c:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char s[LUAI_MAXNUMBER2STR];
data/redis-6.0.9/deps/lua/src/lvm.c:306:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer+tl, svalue(top-i), l);
data/redis-6.0.9/deps/lua/src/lzio.c:64: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(b, z->p, m);
data/redis-6.0.9/deps/lua/src/strbuf.h: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(s->buf + s->length, c, len);
data/redis-6.0.9/deps/lua/src/strbuf.h:136: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(s->buf + s->length, c, len);
data/redis-6.0.9/src/acl.c:118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bufa[CONFIG_AUTHPASS_MAX_LEN], bufb[CONFIG_AUTHPASS_MAX_LEN];
data/redis-6.0.9/src/acl.c:137: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(bufa,a,alen);
data/redis-6.0.9/src/acl.c:138:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(bufb,b,blen);
data/redis-6.0.9/src/acl.c:154:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hash[SHA256_BLOCK_SIZE];
data/redis-6.0.9/src/acl.c:155:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex[HASH_PASSWORD_LEN];
data/redis-6.0.9/src/acl.c:260:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char username[64];
data/redis-6.0.9/src/acl.c:485: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(tempuser->allowed_commands,
data/redis-6.0.9/src/acl.c:1275:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/acl.c:1278: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).
    if ((fp = fopen(filename,"r")) == NULL) {
data/redis-6.0.9/src/acl.c:1455: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 ((fd = open(tmpfilename,O_WRONLY|O_CREAT,0644)) == -1) {
data/redis-6.0.9/src/acl.c:1852: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 pass[GENPASS_MAX_BITS/8*2]; /* Hex representation. */
data/redis-6.0.9/src/ae_select.c:81:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&state->_rfds,&state->rfds,sizeof(fd_set));
data/redis-6.0.9/src/ae_select.c:82: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(&state->_wfds,&state->wfds,sizeof(fd_set));
data/redis-6.0.9/src/anet.c:286:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char portstr[6];  /* strlen("65535") + 1; */
data/redis-6.0.9/src/anet.c:482:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _port[6];  /* strlen("65535") */
data/redis-6.0.9/src/anet.c:637:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[INET6_ADDRSTRLEN];
data/redis-6.0.9/src/anet.c:667:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[INET6_ADDRSTRLEN];
data/redis-6.0.9/src/aof.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[AOF_RW_BUF_BLOCK_SIZE];
data/redis-6.0.9/src/aof.c:135:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(block->buf+block->used, s, thislen);
data/redis-6.0.9/src/aof.c:254: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).
    newfd = open(server.aof_filename,O_WRONLY|O_APPEND|O_CREAT,0644);
data/redis-6.0.9/src/aof.c:523:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/redis-6.0.9/src/aof.c:591: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 seldb[64];
data/redis-6.0.9/src/aof.c:714:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename,"r");
data/redis-6.0.9/src/aof.c:746:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sig[5]; /* "REDIS" */
data/redis-6.0.9/src/aof.c:770:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[128];
data/redis-6.0.9/src/aof.c:789:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        argc = atoi(buf+1);
data/redis-6.0.9/src/aof.c:1334:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[65536]; /* Default pipe buffer size on most Linux systems. */
data/redis-6.0.9/src/aof.c:1430:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpfile[256];
data/redis-6.0.9/src/aof.c:1430:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char tmpfile[256];
data/redis-6.0.9/src/aof.c:1435:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    snprintf(tmpfile,256,"temp-rewriteaof-%d.aof", (int) getpid());
data/redis-6.0.9/src/aof.c:1436:10:  [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).
    fp = fopen(tmpfile,"w");
data/redis-6.0.9/src/aof.c:1436:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fp = fopen(tmpfile,"w");
data/redis-6.0.9/src/aof.c:1513:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (rename(tmpfile,filename) == -1) {
data/redis-6.0.9/src/aof.c:1515:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        unlink(tmpfile);
data/redis-6.0.9/src/aof.c:1526:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/redis-6.0.9/src/aof.c:1628: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 tmpfile[256];
data/redis-6.0.9/src/aof.c:1628:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        char tmpfile[256];
data/redis-6.0.9/src/aof.c:1633:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) getpid());
data/redis-6.0.9/src/aof.c:1634:35:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (rewriteAppendOnlyFile(tmpfile) == C_OK) {
data/redis-6.0.9/src/aof.c:1681:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpfile[256];
data/redis-6.0.9/src/aof.c:1681:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char tmpfile[256];
data/redis-6.0.9/src/aof.c:1683:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) childpid);
data/redis-6.0.9/src/aof.c:1684:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    bg_unlink(tmpfile);
data/redis-6.0.9/src/aof.c:1686:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    snprintf(tmpfile,256,"temp-rewriteaof-%d.aof", (int) childpid);
data/redis-6.0.9/src/aof.c:1687:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    bg_unlink(tmpfile);
data/redis-6.0.9/src/aof.c:1714: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 tmpfile[256];
data/redis-6.0.9/src/aof.c:1714:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        char tmpfile[256];
data/redis-6.0.9/src/aof.c:1724:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof",
data/redis-6.0.9/src/aof.c:1726: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).
        newfd = open(tmpfile,O_WRONLY|O_APPEND);
data/redis-6.0.9/src/aof.c:1726:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        newfd = open(tmpfile,O_WRONLY|O_APPEND);
data/redis-6.0.9/src/aof.c:1778:21:  [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).
            oldfd = open(server.aof_filename,O_RDONLY|O_NONBLOCK);
data/redis-6.0.9/src/aof.c:1787:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if (rename(tmpfile,server.aof_filename) == -1) {
data/redis-6.0.9/src/aof.c:1790:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                tmpfile,
data/redis-6.0.9/src/bitops.c:44:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const unsigned char bitsinbyte[256] = {0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8};
data/redis-6.0.9/src/bitops.c:568:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char llbuf[32];
data/redis-6.0.9/src/bitops.c:676: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(lp,src,sizeof(unsigned long*)*numkeys);
data/redis-6.0.9/src/bitops.c:677: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(res,src[0],minlen);
data/redis-6.0.9/src/bitops.c:776:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char llbuf[LONG_STR_SIZE];
data/redis-6.0.9/src/bitops.c:825:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char llbuf[LONG_STR_SIZE];
data/redis-6.0.9/src/bitops.c:1106:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char buf[9];
data/redis-6.0.9/src/bitops.c:1109: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 llbuf[LONG_STR_SIZE];
data/redis-6.0.9/src/cluster.c:91:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename,"r");
data/redis-6.0.9/src/cluster.c:177: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(n->ip,argv[1],strlen(argv[1])+1);
data/redis-6.0.9/src/cluster.c:184: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).
        n->port = atoi(port);
data/redis-6.0.9/src/cluster.c:188:27:  [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).
        n->cport = busp ? atoi(busp) : n->port + CLUSTER_PORT_INCR;
data/redis-6.0.9/src/cluster.c:235: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(argv[4])) n->ping_sent = mstime();
data/redis-6.0.9/src/cluster.c:236: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(argv[5])) n->pong_received = mstime();
data/redis-6.0.9/src/cluster.c:255:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                slot = atoi(argv[j]+1);
data/redis-6.0.9/src/cluster.c:274: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).
                start = atoi(argv[j]);
data/redis-6.0.9/src/cluster.c:275:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                stop = atoi(p+1);
data/redis-6.0.9/src/cluster.c:277: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).
                start = stop = atoi(argv[j]);
data/redis-6.0.9/src/cluster.c:342: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 ((fd = open(server.cluster_configfile,O_WRONLY|O_CREAT,0644))
data/redis-6.0.9/src/cluster.c:398:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename,O_WRONLY|O_CREAT,0644);
data/redis-6.0.9/src/cluster.c:664:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cip[NET_IP_STR_LEN];
data/redis-6.0.9/src/cluster.c:769: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(node->name, nodename, CLUSTER_NAMELEN);
data/redis-6.0.9/src/cluster.c:1030:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(node->name, newname, CLUSTER_NAMELEN);
data/redis-6.0.9/src/cluster.c:1358:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char norm_ip[NET_IP_STR_LEN];
data/redis-6.0.9/src/cluster.c:1491:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(node->ip,g->ip,NET_IP_STR_LEN);
data/redis-6.0.9/src/cluster.c:1512:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(node->ip,g->ip,NET_IP_STR_LEN);
data/redis-6.0.9/src/cluster.c:1529:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf,announced_ip,NET_IP_STR_LEN);
data/redis-6.0.9/src/cluster.c:1551:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[NET_IP_STR_LEN] = {0};
data/redis-6.0.9/src/cluster.c:1568:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(node->ip,ip,sizeof(ip));
data/redis-6.0.9/src/cluster.c:1844: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 ip[NET_IP_STR_LEN];
data/redis-6.0.9/src/cluster.c:1849:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(myself->ip,ip,NET_IP_STR_LEN);
data/redis-6.0.9/src/cluster.c:2399: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(hdr->sender,myself->name,CLUSTER_NAMELEN);
data/redis-6.0.9/src/cluster.c:2421: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(hdr->slaveof,myself->slaveof->name, CLUSTER_NAMELEN);
data/redis-6.0.9/src/cluster.c:2472: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(gossip->nodename,n->name,CLUSTER_NAMELEN);
data/redis-6.0.9/src/cluster.c:2475: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(gossip->ip,n->ip,sizeof(n->ip));
data/redis-6.0.9/src/cluster.c:2677: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(payload,hdr,sizeof(*hdr));
data/redis-6.0.9/src/cluster.c:2680: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(hdr->data.publish.msg.bulk_data,channel->ptr,sdslen(channel->ptr));
data/redis-6.0.9/src/cluster.c:2681: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(hdr->data.publish.msg.bulk_data+sdslen(channel->ptr),
data/redis-6.0.9/src/cluster.c:2704: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(hdr->data.fail.about.nodename,nodename,CLUSTER_NAMELEN);
data/redis-6.0.9/src/cluster.c:2717: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(hdr->data.update.nodecfg.nodename,node->name,CLUSTER_NAMELEN);
data/redis-6.0.9/src/cluster.c:2719: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(hdr->data.update.nodecfg.slots,node->slots,sizeof(node->slots));
data/redis-6.0.9/src/cluster.c:2747: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(heapbuf,hdr,sizeof(*hdr));
data/redis-6.0.9/src/cluster.c:2750: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(hdr->data.module.msg.bulk_data,payload,len);
data/redis-6.0.9/src/cluster.c:4900:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[2];
data/redis-6.0.9/src/cluster.c:5127:52:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (connBlockingConnect(conn, c->argv[1]->ptr, atoi(c->argv[2]->ptr), timeout)
data/redis-6.0.9/src/cluster.c:5380:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf0[1024]; /* Auth reply. */
data/redis-6.0.9/src/cluster.c:5381:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf1[1024]; /* Select reply. */
data/redis-6.0.9/src/cluster.c:5382:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf2[1024]; /* Restore reply. */
data/redis-6.0.9/src/cluster.h:114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[CLUSTER_NAMELEN]; /* Node name, hex string, sha1-size */
data/redis-6.0.9/src/cluster.h:117:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char slots[CLUSTER_SLOTS/8]; /* slots handled by this node */
data/redis-6.0.9/src/cluster.h:133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[NET_IP_STR_LEN];  /* Latest known IP address of this node */
data/redis-6.0.9/src/cluster.h:186:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nodename[CLUSTER_NAMELEN];
data/redis-6.0.9/src/cluster.h:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[NET_IP_STR_LEN];  /* IP address last time it was seen */
data/redis-6.0.9/src/cluster.h:197:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nodename[CLUSTER_NAMELEN];
data/redis-6.0.9/src/cluster.h:203:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char bulk_data[8]; /* 8 bytes just as placeholder. */
data/redis-6.0.9/src/cluster.h:208:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nodename[CLUSTER_NAMELEN]; /* Name of the slots owner. */
data/redis-6.0.9/src/cluster.h:209:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char slots[CLUSTER_SLOTS/8]; /* Slots bitmap. */
data/redis-6.0.9/src/cluster.h:216:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char bulk_data[3]; /* 3 bytes just as placeholder. */
data/redis-6.0.9/src/cluster.h:250:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sig[4];        /* Signature "RCmb" (Redis Cluster message bus). */
data/redis-6.0.9/src/cluster.h:262:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sender[CLUSTER_NAMELEN]; /* Name of the sender node */
data/redis-6.0.9/src/cluster.h:263:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char myslots[CLUSTER_SLOTS/8];
data/redis-6.0.9/src/cluster.h:264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char slaveof[CLUSTER_NAMELEN];
data/redis-6.0.9/src/cluster.h:265:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char myip[NET_IP_STR_LEN];    /* Sender IP, if not all zeroed. */
data/redis-6.0.9/src/cluster.h:266:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char notused1[34];  /* 34 bytes reserved for future usage. */
data/redis-6.0.9/src/cluster.h:270:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mflags[3]; /* Message flags: CLUSTERMSG_FLAG[012]_... */
data/redis-6.0.9/src/config.c:429:31:  [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 seconds = atoi(argv[1]);
data/redis-6.0.9/src/config.c:430:31:  [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 changes = atoi(argv[2]);
data/redis-6.0.9/src/config.c:452:25:  [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).
                logfp = fopen(server.logfile,"a");
data/redis-6.0.9/src/config.c:544:28:  [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).
            soft_seconds = atoi(argv[4]);
data/redis-6.0.9/src/config.c:565: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 buf[1024];
data/redis-6.0.9/src/config.c:620:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[CONFIG_MAX_LINE+1];
data/redis-6.0.9/src/config.c:629:23:  [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,"r")) == NULL) {
data/redis-6.0.9/src/config.c:894:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/config.c:922:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[1024];
data/redis-6.0.9/src/config.c:966:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[32];
data/redis-6.0.9/src/config.c:977:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[256];
data/redis-6.0.9/src/config.c:1114:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(path,"r");
data/redis-6.0.9/src/config.c:1117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[CONFIG_MAX_LINE+1];
data/redis-6.0.9/src/config.c:1253:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/redis-6.0.9/src/config.c:1378:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/redis-6.0.9/src/config.c:1430: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 hard[64], soft[64];
data/redis-6.0.9/src/config.c:1579:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_conffile[PATH_MAX];
data/redis-6.0.9/src/config.c:1595:10:  [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).
    fd = mkstemp(tmp_conffile);
data/redis-6.0.9/src/config.c:1693: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 loadbuf[LOADBUF_SIZE];
data/redis-6.0.9/src/config.c:1987:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/config.c:2191:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 msg[128];
data/redis-6.0.9/src/config.c:2192:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(msg, "The operating system is not able to handle the specified number of clients, try with %d", server.maxclients);
data/redis-6.0.9/src/db.c:850: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 buf[LONG_STR_SIZE];
data/redis-6.0.9/src/db.c:1349:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(result->keys, result->keysbuf, result->numkeys * sizeof(int));
data/redis-6.0.9/src/db.c:1430:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(argv[2]->ptr);
data/redis-6.0.9/src/db.c:1461:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    num = atoi(argv[2]->ptr);
data/redis-6.0.9/src/db.c:1682:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[64];
data/redis-6.0.9/src/db.c:1689: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(indexed+2,key,keylen);
data/redis-6.0.9/src/db.c:1719:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char indexed[2];
data/redis-6.0.9/src/db.c:1738:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char indexed[2];
data/redis-6.0.9/src/debug.c:70:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hash[20], *s = ptr;
data/redis-6.0.9/src/debug.c:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/debug.c:152:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char eledigest[20];
data/redis-6.0.9/src/debug.c:206:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char eledigest[20];
data/redis-6.0.9/src/debug.c:263:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[20];
data/redis-6.0.9/src/debug.c:513: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 extra[138] = {0};
data/redis-6.0.9/src/debug.c:594:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[128];
data/redis-6.0.9/src/debug.c:616:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(val->ptr, buf, valsize<=buflen? valsize: buflen);
data/redis-6.0.9/src/debug.c:625:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char digest[20];
data/redis-6.0.9/src/debug.c:636:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char digest[20];
data/redis-6.0.9/src/debug.c:710: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.active_expire_enabled = atoi(c->argv[2]->ptr);
data/redis-6.0.9/src/debug.c:715:34:  [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.aof_flush_sleep = atoi(c->argv[2]->ptr);
data/redis-6.0.9/src/debug.c:720:48:  [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.lua_always_replicate_commands = atoi(c->argv[2]->ptr);
data/redis-6.0.9/src/debug.c:743:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[4096];
data/redis-6.0.9/src/debug.c:789:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[4096];
data/redis-6.0.9/src/debug.c:839:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char conninfo[CONN_INFO_LEN];
data/redis-6.0.9/src/debug.c:847:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[128];
data/redis-6.0.9/src/debug.c:903:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fmtmsg[256];
data/redis-6.0.9/src/debug.c:1435:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open(server.logfile, O_APPEND|O_CREAT|O_WRONLY, 0644);
data/redis-6.0.9/src/debug.c:1518:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[1024];
data/redis-6.0.9/src/debug.c:1519:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char logbuf[1024];
data/redis-6.0.9/src/debug.c:1528:10:  [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).
    fp = fopen("/proc/self/maps","r");
data/redis-6.0.9/src/debug.c:1742:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[65], *b;
data/redis-6.0.9/src/debugmacro.h:36:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *fp = fopen("/tmp/log.txt","a");                                \
data/redis-6.0.9/src/defrag.c:70:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newptr, ptr, size);
data/redis-6.0.9/src/defrag.c:644: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.
    static unsigned char last[sizeof(streamID)];
data/redis-6.0.9/src/defrag.c:682:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(last,ri.key,ri.key_len);
data/redis-6.0.9/src/endianconv.c:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/redis-6.0.9/src/endianconv.c:114:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf,"ciaoroma");
data/redis-6.0.9/src/endianconv.c:118:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf,"ciaoroma");
data/redis-6.0.9/src/endianconv.c:122:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf,"ciaoroma");
data/redis-6.0.9/src/evict.c:250: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(pool[k].cached,key,klen+1);
data/redis-6.0.9/src/geo.c:180:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dbuf[128];
data/redis-6.0.9/src/geo.c:737:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[12];
data/redis-6.0.9/src/hyperloglog.c:183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char magic[4];      /* "HYLL" */
data/redis-6.0.9/src/hyperloglog.c:408: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(&k,data,sizeof(uint64_t));
data/redis-6.0.9/src/hyperloglog.c:835:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     memcpy(p,seq,seqlen);
data/redis-6.0.9/src/hyperloglog.c:1141: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(hdr->magic,"HYLL",4);
data/redis-6.0.9/src/hyperloglog.c:1568: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 *encodingstr[2] = {"dense","sparse"};
data/redis-6.0.9/src/latency.c:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/latency.c:67:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen("/sys/kernel/mm/transparent_hugepage/enabled","r");
data/redis-6.0.9/src/latency.c:526:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/redis-6.0.9/src/listpack.c:355:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf+1,s,len);
data/redis-6.0.9/src/listpack.c:359:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf+2,s,len);
data/redis-6.0.9/src/listpack.c:366:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf+5,s,len);
data/redis-6.0.9/src/listpack.c:596:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char intenc[LP_MAX_INT_ENCODING_LEN];
data/redis-6.0.9/src/listpack.c:597:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char backlen[LP_MAX_BACKLEN_SIZE];
data/redis-6.0.9/src/listpack.c:690: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(dst,intenc,enclen);
data/redis-6.0.9/src/listpack.c:695: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(dst,backlen,backlen_size);
data/redis-6.0.9/src/listpack.c:720: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(lp,oldlp,new_listpack_bytes);
data/redis-6.0.9/src/localtime.c:117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/lolwut.c:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char verstr[64];
data/redis-6.0.9/src/lolwut5.c:124: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 unicode[3];
data/redis-6.0.9/src/lzf_d.c:157:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy (op, ref, len);
data/redis-6.0.9/src/memtest.c:305: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(backup,p,len); /* Backup. */
data/redis-6.0.9/src/memtest.c:328:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p,backup,len); /* Restore. */
data/redis-6.0.9/src/module.c:1066:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LONG_STR_SIZE];
data/redis-6.0.9/src/module.c:1077:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/module.c:1091:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LONG_DOUBLE_CHARS];
data/redis-6.0.9/src/module.c:3245:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/redis-6.0.9/src/module.c:4046:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LONG_DOUBLE_CHARS];
data/redis-6.0.9/src/module.c:4145:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LONG_STR_SIZE];
data/redis-6.0.9/src/module.c:4312:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[LOG_MAX_LEN];
data/redis-6.0.9/src/module.c:4748:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1];
data/redis-6.0.9/src/module.c:4910: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(ctx,&empty,sizeof(empty));
data/redis-6.0.9/src/module.c:4936: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(new_ctx,&empty,sizeof(empty));
data/redis-6.0.9/src/module.c:5145:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[NET_IP_STR_LEN];
data/redis-6.0.9/src/module.c:5147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char master_id[40]; /* Only if flags & REDISMODULE_NODE_MASTER is true. */
data/redis-6.0.9/src/module.c:5264: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(ids[j],node->name,REDISMODULE_NODE_ID_LEN);
data/redis-6.0.9/src/module.c:5336: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(master_id,node->slaveof->name,REDISMODULE_NODE_ID_LEN);
data/redis-6.0.9/src/module.c:8052: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(res, result.keys, size);
data/redis-6.0.9/src/modules/helloworld.c:537: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(buf+padlen,str,strlen);
data/redis-6.0.9/src/multi.c:75: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(mc->argv,c->argv,sizeof(robj*)*c->argc);
data/redis-6.0.9/src/networking.c:76: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(buf, o, sizeof(clientReplyBlock) + old->size);
data/redis-6.0.9/src/networking.c:275:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(c->buf+c->bufpos,s,len);
data/redis-6.0.9/src/networking.c:296: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(tail->buf + tail->used, s, copy);
data/redis-6.0.9/src/networking.c:309: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(tail->buf, s, len);
data/redis-6.0.9/src/networking.c:332:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[32];
data/redis-6.0.9/src/networking.c:526:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lenstr[128];
data/redis-6.0.9/src/networking.c:527:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    size_t lenstr_len = sprintf(lenstr, "%c%ld\r\n", prefix, length);
data/redis-6.0.9/src/networking.c:548: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(next->buf, lenstr, lenstr_len);
data/redis-6.0.9/src/networking.c:557:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf->buf, lenstr, lenstr_len);
data/redis-6.0.9/src/networking.c:602: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 dbuf[MAX_LONG_DOUBLE_CHARS+3],
data/redis-6.0.9/src/networking.c:625:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[MAX_LONG_DOUBLE_CHARS];
data/redis-6.0.9/src/networking.c:636:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/networking.c:769:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/redis-6.0.9/src/networking.c:789:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[32];
data/redis-6.0.9/src/networking.c:857:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dst->buf,src->buf,src->bufpos);
data/redis-6.0.9/src/networking.c:888: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 cip[NET_IP_STR_LEN+1] = { 0 };
data/redis-6.0.9/src/networking.c:931:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char conninfo[100];
data/redis-6.0.9/src/networking.c:991: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 conninfo[100];
data/redis-6.0.9/src/networking.c:1003:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cip[NET_IP_STR_LEN];
data/redis-6.0.9/src/networking.c:1023:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cip[NET_IP_STR_LEN];
data/redis-6.0.9/src/networking.c:1634:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[256];
data/redis-6.0.9/src/networking.c:2074:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char peerid[NET_PEER_ID_LEN];
data/redis-6.0.9/src/networking.c:2086:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char flags[16], events[3], conninfo[CONN_INFO_LEN], *p;
data/redis-6.0.9/src/networking.c:3002:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char thdname[16];
data/redis-6.0.9/src/notify.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[24];
data/redis-6.0.9/src/object.c:109:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(sh->buf,ptr,len);
data/redis-6.0.9/src/object.c:185:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LONG_DOUBLE_CHARS];
data/redis-6.0.9/src/object.c:533:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[32];
data/redis-6.0.9/src/object.c:556:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bufa[128], bufb[128], *astr, *bstr;
data/redis-6.0.9/src/object.c:1352: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 dbname[32];
data/redis-6.0.9/src/quicklist.c: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 longstr[32] = {0};
data/redis-6.0.9/src/quicklist.c:822: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(new_node->zl, node->zl, zl_sz);
data/redis-6.0.9/src/quicklist.c:1216: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(node->zl, current->zl, lzf_sz);
data/redis-6.0.9/src/quicklist.c:1219: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(node->zl, current->zl, current->sz);
data/redis-6.0.9/src/quicklist.c:1308:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char longstr[32] = {0};
data/redis-6.0.9/src/quicklist.c:1393: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(vstr, data, sz);
data/redis-6.0.9/src/quicklist.c:1704: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.
    static char result[64] = {0};
data/redis-6.0.9/src/quicklist.c:2341: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 num[32];
data/redis-6.0.9/src/quicklist.c:2490:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 (!quicklistCompare(entry.zi, (unsigned char *)vals[i],
data/redis-6.0.9/src/quicklist.c:2505: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 num[32];
data/redis-6.0.9/src/quicklist.c:2532: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 num[32];
data/redis-6.0.9/src/quicklist.c:2564: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 num[32];
data/redis-6.0.9/src/quicklist.c:2609: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 num[32];
data/redis-6.0.9/src/quicklist.c:2638: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 num[32];
data/redis-6.0.9/src/quicklist.c:2660: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 num[64];
data/redis-6.0.9/src/rax.c:112: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(ts->stack,ts->static_items,sizeof(void*)*ts->maxitems);
data/redis-6.0.9/src/rax.c:232: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(ndata,&data,sizeof(data));
data/redis-6.0.9/src/rax.c:383:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(childfield,&child,sizeof(child));
data/redis-6.0.9/src/rax.c:423: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(n->data,s,len);
data/redis-6.0.9/src/rax.c: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(childfield,child,sizeof(*child));
data/redis-6.0.9/src/rax.c:530:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (h) memcpy(parentlink,&h,sizeof(h));
data/redis-6.0.9/src/rax.c:738: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(parentlink,&splitnode,sizeof(splitnode));
data/redis-6.0.9/src/rax.c:742: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(trimmed->data,h->data,j);
data/redis-6.0.9/src/rax.c:751: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(cp,&splitnode,sizeof(splitnode));
data/redis-6.0.9/src/rax.c:752: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(parentlink,&trimmed,sizeof(trimmed));
data/redis-6.0.9/src/rax.c:765: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(postfix->data,h->data+j+1,postfixlen);
data/redis-6.0.9/src/rax.c:767: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(cp,&next,sizeof(next));
data/redis-6.0.9/src/rax.c:776: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(splitchild,&postfix,sizeof(postfix));
data/redis-6.0.9/src/rax.c:816: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(postfix->data,h->data+j,postfixlen);
data/redis-6.0.9/src/rax.c:819: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(cp,&next,sizeof(next));
data/redis-6.0.9/src/rax.c:827: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(trimmed->data,h->data,j);
data/redis-6.0.9/src/rax.c:828: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(parentlink,&trimmed,sizeof(trimmed));
data/redis-6.0.9/src/rax.c:837: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(cp,&postfix,sizeof(postfix));
data/redis-6.0.9/src/rax.c:862: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(parentlink,&h,sizeof(h));
data/redis-6.0.9/src/rax.c:871: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(parentlink,&h,sizeof(h));
data/redis-6.0.9/src/rax.c:883: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(parentlink,&h,sizeof(h));
data/redis-6.0.9/src/rax.c:1073:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(parentlink,&new,sizeof(new));
data/redis-6.0.9/src/rax.c:1190:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(new->data+comprsize,h->data,h->size);
data/redis-6.0.9/src/rax.c:1203: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(cp,&h,sizeof(h));
data/redis-6.0.9/src/rax.c:1208:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(parentlink,&new,sizeof(new));
data/redis-6.0.9/src/rax.c:1283:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if (old == NULL) memcpy(it->key,it->key_static_string,it->key_len);
data/redis-6.0.9/src/rax.c:1342:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(cp,&it->node,sizeof(it->node));
data/redis-6.0.9/src/rax.c:1398:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(cp,&it->node,sizeof(it->node));
data/redis-6.0.9/src/rax.h:182:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char key_static_string[RAX_ITER_STATIC_LEN];
data/redis-6.0.9/src/rdb.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[1024];
data/redis-6.0.9/src/rdb.c:74: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 *argv[2] = {"",rdbFileBeingLoaded};
data/redis-6.0.9/src/rdb.c:150:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[2];
data/redis-6.0.9/src/rdb.c:193:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[2];
data/redis-6.0.9/src/rdb.c:272:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char enc[4];
data/redis-6.0.9/src/rdb.c:293:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[LONG_STR_SIZE], *p;
data/redis-6.0.9/src/rdb.c:297: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(p,buf,len);
data/redis-6.0.9/src/rdb.c:311:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *endptr, buf[32];
data/redis-6.0.9/src/rdb.c:419:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[5];
data/redis-6.0.9/src/rdb.c:447:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[32];
data/redis-6.0.9/src/rdb.c:551:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[128];
data/redis-6.0.9/src/rdb.c:586:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/redis-6.0.9/src/rdb.c:1116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LONG_STR_SIZE];
data/redis-6.0.9/src/rdb.c:1197:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char magic[10];
data/redis-6.0.9/src/rdb.c:1293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char eofmark[RDB_EOF_MARK_SIZE];
data/redis-6.0.9/src/rdb.c:1315:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpfile[256];
data/redis-6.0.9/src/rdb.c:1315:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char tmpfile[256];
data/redis-6.0.9/src/rdb.c:1320:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    snprintf(tmpfile,256,"temp-%d.rdb", (int) getpid());
data/redis-6.0.9/src/rdb.c:1321:10:  [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).
    fp = fopen(tmpfile,"w");
data/redis-6.0.9/src/rdb.c:1321:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fp = fopen(tmpfile,"w");
data/redis-6.0.9/src/rdb.c:1353:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (rename(tmpfile,filename) == -1) {
data/redis-6.0.9/src/rdb.c:1358:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            tmpfile,
data/redis-6.0.9/src/rdb.c:1363:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        unlink(tmpfile);
data/redis-6.0.9/src/rdb.c:1378:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/redis-6.0.9/src/rdb.c:1426:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpfile[256];
data/redis-6.0.9/src/rdb.c:1426:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char tmpfile[256];
data/redis-6.0.9/src/rdb.c:1427:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/redis-6.0.9/src/rdb.c:1431:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(tmpfile, "temp-");
data/redis-6.0.9/src/rdb.c:1431:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    strcpy(tmpfile, "temp-");
data/redis-6.0.9/src/rdb.c:1433:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(tmpfile+5+pid_len, ".rdb");
data/redis-6.0.9/src/rdb.c:1438: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).
        int fd = open(tmpfile, O_RDONLY|O_NONBLOCK);
data/redis-6.0.9/src/rdb.c:1438:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        int fd = open(tmpfile, O_RDONLY|O_NONBLOCK);
data/redis-6.0.9/src/rdb.c:1440:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        unlink(tmpfile);
data/redis-6.0.9/src/rdb.c:1442:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        bg_unlink(tmpfile);
data/redis-6.0.9/src/rdb.c:1880:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char rawid[sizeof(streamID)];
data/redis-6.0.9/src/rdb.c:1936:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 rawid[sizeof(streamID)];
data/redis-6.0.9/src/rdb.c:1966:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name[10];
data/redis-6.0.9/src/rdb.c:2116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/rdb.c:2127:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    rdbver = atoi(buf+5);
data/redis-6.0.9/src/rdb.c:2216:48:  [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 (rsi) rsi->repl_stream_db = atoi(auxval->ptr);
data/redis-6.0.9/src/rdb.c:2219:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(rsi->repl_id,auxval->ptr,CONFIG_RUN_ID_SIZE+1);
data/redis-6.0.9/src/rdb.c:2269: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 name[10];
data/redis-6.0.9/src/rdb.c:2419: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).
    if ((fp = fopen(filename,"r")) == NULL) return C_ERR;
data/redis-6.0.9/src/redis-benchmark.c:1087:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            port = atoi(addr);
data/redis-6.0.9/src/redis-benchmark.c:1153:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    start = atoi(slotsdef);
data/redis-6.0.9/src/redis-benchmark.c:1154:28:  [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).
                    stop = atoi(p + 1);
data/redis-6.0.9/src/redis-benchmark.c:1160: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).
                    int slot = atoi(slotsdef);
data/redis-6.0.9/src/redis-benchmark.c:1319: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).
            config.numclients = atoi(argv[++i]);
data/redis-6.0.9/src/redis-benchmark.c:1322:31:  [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).
            config.requests = atoi(argv[++i]);
data/redis-6.0.9/src/redis-benchmark.c:1325: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).
            config.keepalive = atoi(argv[++i]);
data/redis-6.0.9/src/redis-benchmark.c:1331:31:  [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).
            config.hostport = atoi(argv[++i]);
data/redis-6.0.9/src/redis-benchmark.c:1343:31:  [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).
            config.datasize = atoi(argv[++i]);
data/redis-6.0.9/src/redis-benchmark.c:1348:31:  [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).
            config.pipeline = atoi(argv[++i]);
data/redis-6.0.9/src/redis-benchmark.c:1358:45:  [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).
            config.randomkeys_keyspacelen = atoi(next);
data/redis-6.0.9/src/redis-benchmark.c:1384:28:  [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).
            config.dbnum = atoi(argv[++i]);
data/redis-6.0.9/src/redis-benchmark.c:1388: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).
            config.precision = atoi(argv[++i]);
data/redis-6.0.9/src/redis-benchmark.c:1393:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
             config.num_threads = atoi(argv[++i]);
data/redis-6.0.9/src/redis-benchmark.c:1505:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/redis-6.0.9/src/redis-benchmark.c:1510: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(buf+1,name,l);
data/redis-6.0.9/src/redis-benchmark.c:1793: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.
            const char *cmd_argv[21];
data/redis-6.0.9/src/redis-check-aof.c:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char __buf[1024]; \
data/redis-6.0.9/src/redis-check-aof.c:40:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char error[1044];
data/redis-6.0.9/src/redis-check-aof.c:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128], *eptr;
data/redis-6.0.9/src/redis-check-aof.c:165:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename,"r+");
data/redis-6.0.9/src/redis-check-aof.c:186: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 sig[5];
data/redis-6.0.9/src/redis-check-aof.c:208:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[2];
data/redis-6.0.9/src/redis-check-rdb.c:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char error[1024];
data/redis-6.0.9/src/redis-check-rdb.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[1024];
data/redis-6.0.9/src/redis-check-rdb.c:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[1024];
data/redis-6.0.9/src/redis-check-rdb.c:184:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/redis-check-rdb.c:189:29:  [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 == NULL && (fp = fopen(rdbfilename,"r")) == NULL) return 1;
data/redis-6.0.9/src/redis-check-rdb.c:200:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    rdbver = atoi(buf+5);
data/redis-6.0.9/src/redis-check-rdb.c:285: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 name[10];
data/redis-6.0.9/src/redis-cli.c:241:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prompt[128];
data/redis-6.0.9/src/redis-cli.c:296: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 addr[256];
data/redis-6.0.9/src/redis-cli.c:424:31:  [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).
            config.hostport = atoi(port + 1);
data/redis-6.0.9/src/redis-cli.c:433: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).
    config.dbnum = atoi(curr);
data/redis-6.0.9/src/redis-cli.c:980: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 _prefixlen[16];
data/redis-6.0.9/src/redis-cli.c:981: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 _prefixfmt[16];
data/redis-6.0.9/src/redis-cli.c:1244:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        slot = atoi(s+1);
data/redis-6.0.9/src/redis-cli.c:1249:27:  [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).
        config.hostport = atoi(s+1);
data/redis-6.0.9/src/redis-cli.c:1379: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).
                config.dbnum = atoi(argv[1]);
data/redis-6.0.9/src/redis-cli.c:1460:31:  [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).
            config.hostport = atoi(argv[++i]);
data/redis-6.0.9/src/redis-cli.c:1469:28:  [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).
            config.dbnum = atoi(argv[++i]);
data/redis-6.0.9/src/redis-cli.c:1513:49:  [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).
            config.intrinsic_latency_duration = atoi(argv[++i]);
data/redis-6.0.9/src/redis-cli.c:1520:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            config.pipe_timeout = atoi(argv[++i]);
data/redis-6.0.9/src/redis-cli.c:1528: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).
            config.memkeys_samples = atoi(argv[++i]);
data/redis-6.0.9/src/redis-cli.c:1567:55:  [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).
            config.cluster_manager_command.replicas = atoi(argv[++i]);
data/redis-6.0.9/src/redis-cli.c:1597:52:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            config.cluster_manager_command.slots = atoi(argv[++i]);
data/redis-6.0.9/src/redis-cli.c:1599:54:  [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).
            config.cluster_manager_command.timeout = atoi(argv[++i]);
data/redis-6.0.9/src/redis-cli.c:1601:55:  [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).
            config.cluster_manager_command.pipeline = atoi(argv[++i]);
data/redis-6.0.9/src/redis-cli.c:1700:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/redis-cli.c:1838:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4];
data/redis-6.0.9/src/redis-cli.c:1927:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(rcfile,"r");
data/redis-6.0.9/src/redis-cli.c:1928:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/redis-cli.c:2046:39:  [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).
                    config.hostport = atoi(argv[2]);
data/redis-6.0.9/src/redis-cli.c:2102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/redis-cli.c:2124:14:  [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).
        fp = fopen(config.eval,"r");
data/redis-6.0.9/src/redis-cli.c:2394:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *bus_port_ptr = atoi(c + 1);
data/redis-6.0.9/src/redis-cli.c:2400:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *port_ptr = atoi(++c);
data/redis-6.0.9/src/redis-cli.c:2420:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        port = atoi(argv[1]);
data/redis-6.0.9/src/redis-cli.c:3130: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 name[9];
data/redis-6.0.9/src/redis-cli.c:3131: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(name, node->name, 8);
data/redis-6.0.9/src/redis-cli.c:3460:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char portstr[255];
data/redis-6.0.9/src/redis-cli.c:3461:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char timeoutstr[255];
data/redis-6.0.9/src/redis-cli.c:3943: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).
                        start = atoi(slotsdef);
data/redis-6.0.9/src/redis-cli.c:3944: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).
                        stop = atoi(p + 1);
data/redis-6.0.9/src/redis-cli.c:3948: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).
                        node->slots[atoi(slotsdef)] = 1;
data/redis-6.0.9/src/redis-cli.c:3972:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int port = atoi(++c);
data/redis-6.0.9/src/redis-cli.c:4184: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(cfg, nodename, name_len);
data/redis-6.0.9/src/redis-cli.c:4190:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(sp, slots[i], slen);
data/redis-6.0.9/src/redis-cli.c:4362: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).
        int slot = atoi(ln->value);
data/redis-6.0.9/src/redis-cli.c:4539:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int s = atoi(slot);
data/redis-6.0.9/src/redis-cli.c:4566:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int s = atoi(slot);
data/redis-6.0.9/src/redis-cli.c:4581:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                n->slots[atoi(slot)] = 1;
data/redis-6.0.9/src/redis-cli.c:4601:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int s = atoi(slot);
data/redis-6.0.9/src/redis-cli.c:4617:31:  [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).
                target->slots[atoi(slot)] = 1;
data/redis-6.0.9/src/redis-cli.c:4721: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).
                if (atoi(migrating_slot) == slot) {
data/redis-6.0.9/src/redis-cli.c:4734: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).
                if (atoi(importing_slot) == slot) {
data/redis-6.0.9/src/redis-cli.c:4898: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).
            if (atoi(migrating_slot) == slot) {
data/redis-6.0.9/src/redis-cli.c:5116:52:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                result = clusterManagerFixOpenSlot(atoi(slot));
data/redis-6.0.9/src/redis-cli.c:5124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char slots[CLUSTER_MANAGER_SLOTS];
data/redis-6.0.9/src/redis-cli.c:5395: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).
        int port = atoi(++c);
data/redis-6.0.9/src/redis-cli.c:5871:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[6];
data/redis-6.0.9/src/redis-cli.c:5880: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).
            slots = atoi(buf);
data/redis-6.0.9/src/redis-cli.c:5883:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[255];
data/redis-6.0.9/src/redis-cli.c:6007:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[4];
data/redis-6.0.9/src/redis-cli.c:6233: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).
    int timeout = atoi(argv[1]);
data/redis-6.0.9/src/redis-cli.c:6362:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdfmt[50] = "MIGRATE %s %d %s %d %d";
data/redis-6.0.9/src/redis-cli.c:6364:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(cmdfmt, " %s");
data/redis-6.0.9/src/redis-cli.c:6366:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(cmdfmt, " %s");
data/redis-6.0.9/src/redis-cli.c:6385: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).
            cursor = atoi(src_reply->element[0]->str);
data/redis-6.0.9/src/redis-cli.c:6507: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 *out = fopen(jsonpath, "w+");
data/redis-6.0.9/src/redis-cli.c:6553: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 buf[255];
data/redis-6.0.9/src/redis-cli.c:6554:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buf, p, deflen);
data/redis-6.0.9/src/redis-cli.c:6900:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4096], *p;
data/redis-6.0.9/src/redis-cli.c:6926:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(out_eof, buf+5, RDB_EOF_MARK_SIZE);
data/redis-6.0.9/src/redis-cli.c:6933: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.
    static char eofmark[RDB_EOF_MARK_SIZE];
data/redis-6.0.9/src/redis-cli.c:6934: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.
    static char lastbytes[RDB_EOF_MARK_SIZE];
data/redis-6.0.9/src/redis-cli.c:6937:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/redis-cli.c:6966:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(lastbytes,buf+nread-RDB_EOF_MARK_SIZE,RDB_EOF_MARK_SIZE);
data/redis-6.0.9/src/redis-cli.c:6970:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(lastbytes+rem,buf,nread);
data/redis-6.0.9/src/redis-cli.c:7010: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.
    static char eofmark[RDB_EOF_MARK_SIZE];
data/redis-6.0.9/src/redis-cli.c:7011: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.
    static char lastbytes[RDB_EOF_MARK_SIZE];
data/redis-6.0.9/src/redis-cli.c:7014:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4096];
data/redis-6.0.9/src/redis-cli.c:7031: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).
        fd = open(filename, O_CREAT|O_WRONLY, 0644);
data/redis-6.0.9/src/redis-cli.c:7058:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(lastbytes,buf+nread-RDB_EOF_MARK_SIZE,RDB_EOF_MARK_SIZE);
data/redis-6.0.9/src/redis-cli.c:7062:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(lastbytes+rem,buf,nread);
data/redis-6.0.9/src/redis-cli.c:7094:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char obuf[1024*16]; /* Output buffer */
data/redis-6.0.9/src/redis-cli.c:7095:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char aneterr[ANET_ERR_LEN];
data/redis-6.0.9/src/redis-cli.c:7099:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char magic[20]; /* Special reply we recognize. */
data/redis-6.0.9/src/redis-cli.c:7208:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(echo+21,magic,20);
data/redis-6.0.9/src/redis-cli.c:7209:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(obuf,echo,sizeof(echo)-1);
data/redis-6.0.9/src/redis-cli.c:7728: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(result,p,(n1-p));
data/redis-6.0.9/src/redis-cli.c:7757:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%lldB",n);
data/redis-6.0.9/src/redis-cli.c:7761:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%.2fK",d);
data/redis-6.0.9/src/redis-cli.c:7764:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%.2fM",d);
data/redis-6.0.9/src/redis-cli.c:7767:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%.2fG",d);
data/redis-6.0.9/src/redis-cli.c:7777:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/redis-6.0.9/src/redis-cli.c:7797:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(buf,"db%d:keys",j);
data/redis-6.0.9/src/redis-cli.c:7802:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf,"%ld",aux);
data/redis-6.0.9/src/redis-cli.c:7812:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf,"%ld",aux);
data/redis-6.0.9/src/redis-cli.c:7817:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf,"%ld",aux);
data/redis-6.0.9/src/redis-cli.c:7822:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf,"%ld (+%ld)",aux,requests == 0 ? 0 : aux-requests);
data/redis-6.0.9/src/redis-cli.c:7828:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf,"%ld",aux);
data/redis-6.0.9/src/redis-cli.c:7922:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/redis-6.0.9/src/redis-cli.c:7936: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 val[6];
data/redis-6.0.9/src/redis-cli.c:7993:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char s[256], i, j, t;
data/redis-6.0.9/src/redismodule.h:347:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char addr[46];          /* IPv4 or IPv6 address. */
data/redis-6.0.9/src/release.c:59: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.
    static char buf[32];
data/redis-6.0.9/src/replication.c:60: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.
    static char buf[NET_PEER_ID_LEN];
data/redis-6.0.9/src/replication.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[NET_IP_STR_LEN];
data/redis-6.0.9/src/replication.c:69:37:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if (c->slave_ip[0] != '\0') memcpy(ip,c->slave_ip,sizeof(c->slave_ip));
data/redis-6.0.9/src/replication.c:89:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename,O_RDONLY|O_NONBLOCK);
data/redis-6.0.9/src/replication.c:171:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(server.repl_backlog+server.repl_backlog_idx,p,thislen);
data/redis-6.0.9/src/replication.c:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char llstr[LONG_STR_SIZE];
data/redis-6.0.9/src/replication.c:212:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char llstr[LONG_STR_SIZE];
data/redis-6.0.9/src/replication.c:263: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 aux[LONG_STR_SIZE+3];
data/redis-6.0.9/src/replication.c:488:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/replication.c:519:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/replication.c:885:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(c->slave_ip,ip,sdslen(ip)+1);
data/redis-6.0.9/src/replication.c:1013:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PROTO_IOBUF_LEN];
data/redis-6.0.9/src/replication.c:1287:40:  [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 ((slave->repldbfd = open(server.rdb_filename,O_RDONLY)) == -1 ||
data/redis-6.0.9/src/replication.c:1334: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(server.replid2,server.replid,sizeof(server.replid));
data/redis-6.0.9/src/replication.c:1393: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(server.master->replid, server.master_replid,
data/redis-6.0.9/src/replication.c:1483:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PROTO_IOBUF_LEN];
data/redis-6.0.9/src/replication.c:1493: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.
    static char eofmark[CONFIG_RUN_ID_SIZE];
data/redis-6.0.9/src/replication.c:1494: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.
    static char lastbytes[CONFIG_RUN_ID_SIZE];
data/redis-6.0.9/src/replication.c:1535: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(eofmark,buf+5,CONFIG_RUN_ID_SIZE);
data/redis-6.0.9/src/replication.c:1585:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(lastbytes,buf+nread-CONFIG_RUN_ID_SIZE,
data/redis-6.0.9/src/replication.c:1590:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(lastbytes+rem,buf,nread);
data/redis-6.0.9/src/replication.c:1767:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        int old_rdb_fd = open(server.rdb_filename,O_RDONLY|O_NONBLOCK);
data/redis-6.0.9/src/replication.c:1899:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[256];
data/redis-6.0.9/src/replication.c:1969:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char psync_offset[32];
data/redis-6.0.9/src/replication.c:1988: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(psync_offset,"-1",3);
data/redis-6.0.9/src/replication.c:2033: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(server.master_replid, replid, offset-replid-1);
data/redis-6.0.9/src/replication.c:2060: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 new[CONFIG_RUN_ID_SIZE+1];
data/redis-6.0.9/src/replication.c:2061: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(new,start,CONFIG_RUN_ID_SIZE);
data/redis-6.0.9/src/replication.c:2076:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(server.cached_master->replid,new,sizeof(server.replid));
data/redis-6.0.9/src/replication.c:2128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpfile[256], *err = NULL;
data/redis-6.0.9/src/replication.c:2128:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char tmpfile[256], *err = NULL;
data/redis-6.0.9/src/replication.c:2371:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            snprintf(tmpfile,256,
data/redis-6.0.9/src/replication.c:2373:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            dfd = open(tmpfile,O_CREAT|O_WRONLY|O_EXCL,0644);
data/redis-6.0.9/src/replication.c:2373:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            dfd = open(tmpfile,O_CREAT|O_WRONLY|O_EXCL,0644);
data/redis-6.0.9/src/replication.c:2381:48:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        server.repl_transfer_tmpfile = zstrdup(tmpfile);
data/redis-6.0.9/src/replication.c:2389: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 conninfo[CONN_INFO_LEN];
data/redis-6.0.9/src/replication.c:2671: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 ip[NET_IP_STR_LEN], *slaveip = slave->slave_ip;
data/redis-6.0.9/src/replication.c:2809: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(server.master->replid, server.replid, sizeof(server.replid));
data/redis-6.0.9/src/rio.c: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(buf,r->io.buffer.ptr+r->io.buffer.pos,len);
data/redis-6.0.9/src/rio.c:218: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(buf, (char*)r->io.conn.buf + r->io.conn.pos, len);
data/redis-6.0.9/src/rio.c:408:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cbuf[128];
data/redis-6.0.9/src/rio.c:431:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lbuf[32];
data/redis-6.0.9/src/rio.c:440:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dbuf[128];
data/redis-6.0.9/src/scripting.c:94:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hash[20];
data/redis-6.0.9/src/scripting.c:246:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LONG_DOUBLE_CHARS+1];
data/redis-6.0.9/src/scripting.c:251:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf,reply+1,len);
data/redis-6.0.9/src/scripting.c:519: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 dbuf[64];
data/redis-6.0.9/src/scripting.c:540: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(s,obj_s,obj_len+1);
data/redis-6.0.9/src/scripting.c:822:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char digest[41];
data/redis-6.0.9/src/scripting.c:1048:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *s[32];
data/redis-6.0.9/src/scripting.c:1360:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char funcname[43];
data/redis-6.0.9/src/scripting.c:1461:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char funcname[43];
data/redis-6.0.9/src/scripting.c:2049:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *argcp = atoi(plen);
data/redis-6.0.9/src/scripting.c:2060: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).
        int slen = atoi(plen); /* Length of this arg. */
data/redis-6.0.9/src/scripting.c:2541: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).
        int newval = atoi(argv[1]);
data/redis-6.0.9/src/scripting.c:2564:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[1024];
data/redis-6.0.9/src/scripting.c:2647:27:  [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 num = atoi(argv[1]);
data/redis-6.0.9/src/scripting.c:2650: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).
            if (argc > 2) ctx = atoi(argv[2]);
data/redis-6.0.9/src/sds.c:142: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(s, init, initlen);
data/redis-6.0.9/src/sds.c:239:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char*)newsh+hdrlen, s, len+1);
data/redis-6.0.9/src/sds.c:282:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char*)newsh+hdrlen, s, len+1);
data/redis-6.0.9/src/sds.c:402:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(s+curlen, t, len);
data/redis-6.0.9/src/sds.c:431: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(s, t, len);
data/redis-6.0.9/src/sds.c:515:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SDS_LLSTR_SIZE];
data/redis-6.0.9/src/sds.c:524:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char staticbuf[1024], *buf = staticbuf, *t;
data/redis-6.0.9/src/sds.c:636:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(s+i,str,l);
data/redis-6.0.9/src/sds.c:647: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 buf[SDS_LLSTR_SIZE];
data/redis-6.0.9/src/sds.c:652:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(s+i,buf,l);
data/redis-6.0.9/src/sds.c:664: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 buf[SDS_LLSTR_SIZE];
data/redis-6.0.9/src/sds.c:669:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(s+i,buf,l);
data/redis-6.0.9/src/sentinel.c:243:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char myid[CONFIG_RUN_ID_SIZE+1]; /* This sentinel ID. */
data/redis-6.0.9/src/sentinel.c: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 ip[NET_IP_STR_LEN];
data/redis-6.0.9/src/sentinel.c:622:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[LOG_MAX_LEN];
data/redis-6.0.9/src/sentinel.c:706:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *argv[SENTINEL_SCRIPT_MAX_ARGS+1];
data/redis-6.0.9/src/sentinel.c:726: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(sj->argv,argv,sizeof(char*)*(argc+1));
data/redis-6.0.9/src/sentinel.c:952:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fromport[32], toport[32];
data/redis-6.0.9/src/sentinel.c:1187:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char slavename[NET_PEER_ID_LEN], *sdsname;
data/redis-6.0.9/src/sentinel.c:1313:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[NET_PEER_ID_LEN];
data/redis-6.0.9/src/sentinel.c:1634: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).
        int quorum = atoi(argv[4]);
data/redis-6.0.9/src/sentinel.c:1638:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                        atoi(argv[3]),quorum,NULL) == NULL)
data/redis-6.0.9/src/sentinel.c:1650: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).
        ri->down_after_period = atoi(argv[2]);
data/redis-6.0.9/src/sentinel.c:1658: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).
        ri->failover_timeout = atoi(argv[2]);
data/redis-6.0.9/src/sentinel.c:1665:30:  [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).
        ri->parallel_syncs = atoi(argv[2]);
data/redis-6.0.9/src/sentinel.c:1699: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(sentinel.myid,argv[1],CONFIG_RUN_ID_SIZE);
data/redis-6.0.9/src/sentinel.c:1724: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).
                    atoi(argv[3]), ri->quorum, ri)) == NULL)
data/redis-6.0.9/src/sentinel.c:1737: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).
                        atoi(argv[3]), ri->quorum, ri)) == NULL)
data/redis-6.0.9/src/sentinel.c:1761:34:  [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).
        sentinel.announce_port = atoi(argv[1]);
data/redis-6.0.9/src/sentinel.c:1961: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 ((fd = open(server.configfile,O_RDONLY)) == -1) goto werr;
data/redis-6.0.9/src/sentinel.c:2020:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[64];
data/redis-6.0.9/src/sentinel.c:2203:56:  [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 (sentinelRedisInstanceLookupSlave(ri,ip,atoi(port)) == NULL) {
data/redis-6.0.9/src/sentinel.c:2205:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            atoi(port), ri->quorum, ri)) != NULL)
data/redis-6.0.9/src/sentinel.c:2238:41:  [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 slave_master_port = atoi(l+12);
data/redis-6.0.9/src/sentinel.c:2256: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).
                ri->slave_priority = atoi(l+15);
data/redis-6.0.9/src/sentinel.c:2493:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        port = atoi(token[1]);
data/redis-6.0.9/src/sentinel.c:2494: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).
        master_port = atoi(token[6]);
data/redis-6.0.9/src/sentinel.c:2622:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip[NET_IP_STR_LEN];
data/redis-6.0.9/src/sentinel.c:2623:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char payload[NET_IP_STR_LEN+1024];
data/redis-6.0.9/src/sentinel.c:3179: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 ip[NET_IP_STR_LEN];
data/redis-6.0.9/src/sentinel.c:3800: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 port[32];
data/redis-6.0.9/src/sentinel.c:3982:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char portstr[32];
data/redis-6.0.9/src/sentinel.c:3991: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(portstr,"ONE",4);
data/redis-6.0.9/src/sentinel.c:4085: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 ctimebuf[26];
data/redis-6.0.9/src/server.c:1029:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/redis-6.0.9/src/server.c:1036:35:  [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).
    fp = log_to_stdout ? stdout : fopen(server.logfile,"a");
data/redis-6.0.9/src/server.c:1073:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[LOG_MAX_LEN];
data/redis-6.0.9/src/server.c:1093:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/redis-6.0.9/src/server.c:1098:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                         open(server.logfile, O_APPEND|O_CREAT|O_WRONLY, 0644);
data/redis-6.0.9/src/server.c:1244:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[32];
data/redis-6.0.9/src/server.c:2294: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 dictid_str[64];
data/redis-6.0.9/src/server.c:2537:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/redis-6.0.9/src/server.c:2538:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open("/proc/self/oom_score_adj", O_RDONLY);
data/redis-6.0.9/src/server.c:2542: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).
        server.oom_score_adj_base = atoi(buf);
data/redis-6.0.9/src/server.c:2565:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/redis-6.0.9/src/server.c:2573:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open("/proc/self/oom_score_adj", O_WRONLY);
data/redis-6.0.9/src/server.c:2675:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen("/proc/sys/net/core/somaxconn","r");
data/redis-6.0.9/src/server.c:2676:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/redis-6.0.9/src/server.c:2679:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int somaxconn = atoi(buf);
data/redis-6.0.9/src/server.c:3006:25:  [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).
        server.aof_fd = open(server.aof_filename,
data/redis-6.0.9/src/server.c:4094:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%lluB",n);
data/redis-6.0.9/src/server.c:4097:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%.2fK",d);
data/redis-6.0.9/src/server.c:4100:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%.2fM",d);
data/redis-6.0.9/src/server.c:4103:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%.2fG",d);
data/redis-6.0.9/src/server.c:4106:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%.2fT",d);
data/redis-6.0.9/src/server.c:4109:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%.2fP",d);
data/redis-6.0.9/src/server.c:4112:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(s,"%lluB",n);
data/redis-6.0.9/src/server.c:4227: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 hmem[64];
data/redis-6.0.9/src/server.c:4228: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 peak_hmem[64];
data/redis-6.0.9/src/server.c:4229: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 total_system_hmem[64];
data/redis-6.0.9/src/server.c:4230: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 used_memory_lua_hmem[64];
data/redis-6.0.9/src/server.c:4231: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 used_memory_scripts_hmem[64];
data/redis-6.0.9/src/server.c:4232: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 used_memory_rss_hmem[64];
data/redis-6.0.9/src/server.c:4233: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 maxmemory_hmem[64];
data/redis-6.0.9/src/server.c:4592: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 ip[NET_IP_STR_LEN], *slaveip = slave->slave_ip;
data/redis-6.0.9/src/server.c:4750:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen("/proc/sys/vm/overcommit_memory","r");
data/redis-6.0.9/src/server.c:4751:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/redis-6.0.9/src/server.c:4760: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).
    return atoi(buf);
data/redis-6.0.9/src/server.c:4779:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(server.pidfile,"w");
data/redis-6.0.9/src/server.c:4795: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 ((fd = open("/dev/null", O_RDWR, 0)) != -1) {
data/redis-6.0.9/src/server.c:4807:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        atoi(redisGitDirty()) > 0,
data/redis-6.0.9/src/server.c:5222: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).
                memtest(atoi(argv[2]),50);
data/redis-6.0.9/src/server.h:535:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[10]; /* 9 bytes name + null term. Charset: A-Z a-z 0-9 _- */
data/redis-6.0.9/src/server.h:590:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char o[20];    /* Ordered elements. */
data/redis-6.0.9/src/server.h:591:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char x[20];    /* Xored elements. */
data/redis-6.0.9/src/server.h:832:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char replid[CONFIG_RUN_ID_SIZE+1]; /* Master replication ID (if master). */
data/redis-6.0.9/src/server.h:834:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char slave_ip[NET_IP_STR_LEN]; /* Optionally given by REPLCONF ip-address */
data/redis-6.0.9/src/server.h:871:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PROTO_REPLY_CHUNK_BYTES];
data/redis-6.0.9/src/server.h:1003:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char repl_id[CONFIG_RUN_ID_SIZE+1];     /* Replication ID. */
data/redis-6.0.9/src/server.h:1079:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char runid[CONFIG_RUN_ID_SIZE+1];  /* ID always different at every exec. */
data/redis-6.0.9/src/server.h:1096:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *bindaddr[CONFIG_BINDADDR_MAX]; /* Addresses we should bind to */
data/redis-6.0.9/src/server.h:1118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char neterr[ANET_ERR_LEN];   /* Error buffer for anet.c */
data/redis-6.0.9/src/server.h:1293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char replid[CONFIG_RUN_ID_SIZE+1];  /* My current replication ID. */
data/redis-6.0.9/src/server.h:1294:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char replid2[CONFIG_RUN_ID_SIZE+1]; /* replid inherited from master*/
data/redis-6.0.9/src/server.h: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 master_replid[CONFIG_RUN_ID_SIZE+1];  /* Master PSYNC runid. */
data/redis-6.0.9/src/setproctitle.c:221:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[SPT_MAXTITLE + 1]; /* use buffer in case argv[0] is passed */
data/redis-6.0.9/src/setproctitle.c:248:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(SPT.base, buf, len);
data/redis-6.0.9/src/sha1.c:56:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void SHA1Transform(uint32_t state[5], const unsigned char buffer[64])
data/redis-6.0.9/src/sha1.c:60:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char c[64];
data/redis-6.0.9/src/sha1.c: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(block, buffer, 64);
data/redis-6.0.9/src/sha1.c:141: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(&context->buffer[j], data, (i = 64-j));
data/redis-6.0.9/src/sha1.c:149:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&context->buffer[j], &data[i], len - i);
data/redis-6.0.9/src/sha1.c:155:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void SHA1Final(unsigned char digest[20], SHA1_CTX* context)
data/redis-6.0.9/src/sha1.c:158:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char finalcount[8];
data/redis-6.0.9/src/sha1.c:207:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hash[20], buf[BUFSIZE];
data/redis-6.0.9/src/sha1.h:13:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[64];
data/redis-6.0.9/src/sha1.h:16:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]);
data/redis-6.0.9/src/sha1.h:19:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
data/redis-6.0.9/src/sort.c:103: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(k,spat,prefixlen);
data/redis-6.0.9/src/sort.c:104: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(k+prefixlen,ssub,sublen);
data/redis-6.0.9/src/sort.c:105:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k+prefixlen+sublen,p+1,postfixlen);
data/redis-6.0.9/src/stream.h:46:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char field_buf[LP_INTBUF_SIZE];
data/redis-6.0.9/src/stream.h:47:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char value_buf[LP_INTBUF_SIZE];
data/redis-6.0.9/src/t_hash.c: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 buf[MAX_LONG_DOUBLE_CHARS];
data/redis-6.0.9/src/t_stream.c:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LONG_STR_SIZE];
data/redis-6.0.9/src/t_stream.c:119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LONG_STR_SIZE];
data/redis-6.0.9/src/t_stream.c:146:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[LP_INTBUF_SIZE];
data/redis-6.0.9/src/t_stream.c:160:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf,e,sizeof(e));
data/redis-6.0.9/src/t_stream.c:319:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char buf[LP_INTBUF_SIZE];
data/redis-6.0.9/src/t_stream.c:635:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char buf[sizeof(streamID)];
data/redis-6.0.9/src/t_stream.c:1000:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char buf[sizeof(streamID)];
data/redis-6.0.9/src/t_stream.c:1065:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char startkey[sizeof(streamID)];
data/redis-6.0.9/src/t_stream.c:1066:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char endkey[sizeof(streamID)];
data/redis-6.0.9/src/t_stream.c:1133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/t_stream.c:1135: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(buf,o->ptr,sdslen(o->ptr)+1);
data/redis-6.0.9/src/t_stream.c:1961:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[sizeof(streamID)];
data/redis-6.0.9/src/t_stream.c:2091:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char startkey[sizeof(streamID)];
data/redis-6.0.9/src/t_stream.c:2092:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char endkey[sizeof(streamID)];
data/redis-6.0.9/src/t_stream.c:2301:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[sizeof(streamID)];
data/redis-6.0.9/src/t_string.c:242:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char*)o->ptr+offset,value,sdslen(value));
data/redis-6.0.9/src/t_string.c:254:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *str, llbuf[32];
data/redis-6.0.9/src/t_zset.c:727:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/t_zset.c:734:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf,vstr,vlen);
data/redis-6.0.9/src/t_zset.c:765:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char vbuf[32];
data/redis-6.0.9/src/t_zset.c:1032:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char scorebuf[128];
data/redis-6.0.9/src/t_zset.c:1781: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 *event[3] = {"zremrangebyrank","zremrangebyscore","zremrangebylex"};
data/redis-6.0.9/src/t_zset.c:1854:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char _buf[32]; /* Private buffer. */
data/redis-6.0.9/src/t_zset.c:3217: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 *events[2] = {"zpopmin","zpopmax"};
data/redis-6.0.9/src/timeout.c:98:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf,&timeout,sizeof(timeout));
data/redis-6.0.9/src/timeout.c:99:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf+8,&c,sizeof(c));
data/redis-6.0.9/src/timeout.c:106:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(toptr,buf,sizeof(*toptr));
data/redis-6.0.9/src/timeout.c:108:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cptr,buf+8,sizeof(*cptr));
data/redis-6.0.9/src/timeout.c:117:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[CLIENT_ST_KEYLEN];
data/redis-6.0.9/src/timeout.c:129:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[CLIENT_ST_KEYLEN];
data/redis-6.0.9/src/tls.c:158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[256];
data/redis-6.0.9/src/tls.c:248:24:  [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 *dhfile = fopen(ctx_config->dh_params_file, "r");
data/redis-6.0.9/src/tracking.c:459:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/redis-6.0.9/src/util.c:174:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[32];
data/redis-6.0.9/src/util.c:175:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pat[32];
data/redis-6.0.9/src/util.c:197:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/redis-6.0.9/src/util.c:234: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(buf,p,digits);
data/redis-6.0.9/src/util.c:293:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char digits[201] =
data/redis-6.0.9/src/util.c:468:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LONG_DOUBLE_CHARS];
data/redis-6.0.9/src/util.c:473: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(buf,s,slen);
data/redis-6.0.9/src/util.c:570: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(buf,"inf",3);
data/redis-6.0.9/src/util.c:573: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(buf,"-inf",4);
data/redis-6.0.9/src/util.c:623: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.
    static unsigned char seed[64]; /* 512 bit internal block size. */
data/redis-6.0.9/src/util.c:631:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *fp = fopen("/dev/urandom","r");
data/redis-6.0.9/src/util.c:649:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char digest[SHA256_BLOCK_SIZE];
data/redis-6.0.9/src/util.c:650:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char kxor[64];
data/redis-6.0.9/src/util.c:678: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(p,digest,copylen);
data/redis-6.0.9/src/util.c:704:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/redis-6.0.9/src/util.c:778:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/redis-6.0.9/src/util.c:782:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"+1");
data/redis-6.0.9/src/util.c:786:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf," 1");
data/redis-6.0.9/src/util.c:790:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"1 ");
data/redis-6.0.9/src/util.c:794:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"01");
data/redis-6.0.9/src/util.c:797:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"-1");
data/redis-6.0.9/src/util.c:809:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"99");
data/redis-6.0.9/src/util.c:813:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"-99");
data/redis-6.0.9/src/util.c:817:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"-9223372036854775808");
data/redis-6.0.9/src/util.c:821:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"-9223372036854775809"); /* overflow */
data/redis-6.0.9/src/util.c:824:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"9223372036854775807");
data/redis-6.0.9/src/util.c:828:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"9223372036854775808"); /* overflow */
data/redis-6.0.9/src/util.c:833:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/redis-6.0.9/src/util.c:837:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"+1");
data/redis-6.0.9/src/util.c:841:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"01");
data/redis-6.0.9/src/util.c:844:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"-1");
data/redis-6.0.9/src/util.c:856:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"99");
data/redis-6.0.9/src/util.c:860:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"-99");
data/redis-6.0.9/src/util.c:865:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"-2147483648");
data/redis-6.0.9/src/util.c:869:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"-2147483649"); /* overflow */
data/redis-6.0.9/src/util.c:872:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"2147483647");
data/redis-6.0.9/src/util.c:876:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf,"2147483648"); /* overflow */
data/redis-6.0.9/src/util.c:882:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/redis-6.0.9/src/ziplist.c:362: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(p,buf,len);
data/redis-6.0.9/src/ziplist.c:400: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(p+1,&len,sizeof(len));
data/redis-6.0.9/src/ziplist.c:444: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(&(prevlen), ((char*)(ptr)) + 1, 4);                             \
data/redis-6.0.9/src/ziplist.c:515: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(p,&i16,sizeof(i16));
data/redis-6.0.9/src/ziplist.c:520: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(p,((uint8_t*)&i32)+1,sizeof(i32)-sizeof(uint8_t));
data/redis-6.0.9/src/ziplist.c:523: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(p,&i32,sizeof(i32));
data/redis-6.0.9/src/ziplist.c:527: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(p,&i64,sizeof(i64));
data/redis-6.0.9/src/ziplist.c:553: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(((uint8_t*)&i32)+1,p,sizeof(i32)-sizeof(uint8_t));
data/redis-6.0.9/src/ziplist.c:833: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(p,s,slen);
data/redis-6.0.9/src/ziplist.c:911: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(target + target_bytes - ZIPLIST_END_SIZE,
data/redis-6.0.9/src/ziplist.c:922: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(target, source, source_bytes - ZIPLIST_END_SIZE);
data/redis-6.0.9/src/ziplist.c:1266:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/redis-6.0.9/src/ziplist.c:1268:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "100");
data/redis-6.0.9/src/ziplist.c:1270:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "128000");
data/redis-6.0.9/src/ziplist.c:1272:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "-100");
data/redis-6.0.9/src/ziplist.c:1274:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "4294967296");
data/redis-6.0.9/src/ziplist.c:1276:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "non integer");
data/redis-6.0.9/src/ziplist.c:1278:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "much much longer non integer");
data/redis-6.0.9/src/ziplist.c:1292:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char posstr[2][5] = { "HEAD", "TAIL" };
data/redis-6.0.9/src/ziplist.c:1390:15:  [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(atoi(argv[1]));
data/redis-6.0.9/src/ziplist.c:1667: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 v1[257] = {0}, v2[257] = {0};
data/redis-6.0.9/src/ziplist.c:1687: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 v[3][257] = {{0}};
data/redis-6.0.9/src/ziplist.c:1702:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            zl = ziplistPush(zl, (unsigned char *) v[i], strlen(v[i]), ZIPLIST_TAIL);
data/redis-6.0.9/src/ziplist.c:1727:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[32];
data/redis-6.0.9/src/ziplist.c:1730:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            len = sprintf(buf,"%d",i);
data/redis-6.0.9/src/ziplist.c:1851:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[1024];
data/redis-6.0.9/src/ziplist.c:1875:34:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        buflen = sprintf(buf,"%lld",(0LL + rand()) >> 20);
data/redis-6.0.9/src/ziplist.c:1878:34:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        buflen = sprintf(buf,"%lld",(0LL + rand()));
data/redis-6.0.9/src/ziplist.c:1881:34:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        buflen = sprintf(buf,"%lld",(0LL + rand()) << 20);
data/redis-6.0.9/src/ziplist.c:1910:30:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    buflen = sprintf(buf,"%lld",sval);
data/redis-6.0.9/src/ziplist.c:1913:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(buf,sstr,buflen);
data/redis-6.0.9/src/zipmap.c:109:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&len,p+1,sizeof(unsigned int));
data/redis-6.0.9/src/zipmap.c:125: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(p+1,&len,sizeof(len));
data/redis-6.0.9/src/zipmap.c:270: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(p,key,klen);
data/redis-6.0.9/src/zipmap.c:275:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p,val,vlen);
data/redis-6.0.9/src/zipmap.c:435:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[512];
data/redis-6.0.9/src/zmalloc.c:223:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p,s,l);
data/redis-6.0.9/src/zmalloc.c:256:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4096];
data/redis-6.0.9/src/zmalloc.c:257:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[256];
data/redis-6.0.9/src/zmalloc.c:262: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 ((fd = open(filename,O_RDONLY)) == -1) return 0;
data/redis-6.0.9/src/zmalloc.c:388:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[32];
data/redis-6.0.9/src/zmalloc.c:392:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tmp, "arena.%d.purge", narenas);
data/redis-6.0.9/src/zmalloc.c:438:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[1024];
data/redis-6.0.9/src/zmalloc.c:444:14:  [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).
        fp = fopen("/proc/self/smaps","r");
data/redis-6.0.9/src/zmalloc.c:446: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 filename[128];
data/redis-6.0.9/src/zmalloc.c:448:14:  [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).
        fp = fopen(filename,"r");
data/redis-6.0.9/tests/modules/getkeys.c:79: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 err[100];
data/redis-6.0.9/tests/modules/misc.c:54: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 err[4096];
data/redis-6.0.9/tests/modules/misc.c:69: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 err[4096];
data/redis-6.0.9/tests/modules/misc.c:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4] = "123";
data/redis-6.0.9/tests/modules/misc.c:244:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char flags[512];
data/redis-6.0.9/tests/modules/misc.c:276:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char level[50];
data/redis-6.0.9/utils/corrupt_rdb.c:25:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    cycles = atoi(argv[2]);
data/redis-6.0.9/utils/corrupt_rdb.c:26:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename,O_RDWR);
data/redis-6.0.9/utils/corrupt_rdb.c:34:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[32];
data/redis-6.0.9/utils/tracking_collisions.c:40:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hash[20];
data/redis-6.0.9/utils/tracking_collisions.c:58: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 keyname[128];
data/redis-6.0.9/deps/hiredis/adapters/qt.h:99:64:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            connect(m_read, SIGNAL(activated(int)), this, SLOT(read()));
data/redis-6.0.9/deps/hiredis/adapters/qt.h:126:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        void read() { redisAsyncHandleRead(m_ctx); }
data/redis-6.0.9/deps/hiredis/examples/example-ae.c:57:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/redis-6.0.9/deps/hiredis/examples/example-ivykis.c:50:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/redis-6.0.9/deps/hiredis/examples/example-libev.c:48:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/redis-6.0.9/deps/hiredis/examples/example-libevent-ssl.c:46:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t nvalue = strlen(value);
data/redis-6.0.9/deps/hiredis/examples/example-libevent.c:60:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/redis-6.0.9/deps/hiredis/examples/example-libuv.c:49:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/redis-6.0.9/deps/hiredis/examples/example-macosx.c:59:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/redis-6.0.9/deps/hiredis/hiredis.c:348: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 = strlen(arg);
data/redis-6.0.9/deps/hiredis/hiredis.c:574: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).
        len = argvlen ? argvlen[j] : strlen(argv[j]);
data/redis-6.0.9/deps/hiredis/hiredis.c:591: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).
        len = argvlen ? argvlen[j] : strlen(argv[j]);
data/redis-6.0.9/deps/hiredis/hiredis.c:625: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).
        len = argvlen ? argvlen[j] : strlen(argv[j]);
data/redis-6.0.9/deps/hiredis/hiredis.c:636: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).
        len = argvlen ? argvlen[j] : strlen(argv[j]);
data/redis-6.0.9/deps/hiredis/hiredis.c:659:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(str);
data/redis-6.0.9/deps/hiredis/hiredis.c:722:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memset(c->errstr, '\0', strlen(c->errstr));
data/redis-6.0.9/deps/hiredis/hiredis.c:881:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nread = c->funcs->read(c, buf, sizeof(buf));
data/redis-6.0.9/deps/hiredis/hiredis.h:202:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int (*read)(struct redisContext *, char *, size_t);
data/redis-6.0.9/deps/hiredis/net.c:549:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sa->sun_path, path, sizeof(sa->sun_path) - 1);
data/redis-6.0.9/deps/hiredis/read.c:67:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/redis-6.0.9/deps/hiredis/sds.c:145: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).
    size_t initlen = (init == NULL) ? 0 : strlen(init);
data/redis-6.0.9/deps/hiredis/sds.c:175: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).
    int reallen = strlen(s);
data/redis-6.0.9/deps/hiredis/sds.c:395:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return sdscatlen(s, t, strlen(t));
data/redis-6.0.9/deps/hiredis/sds.c:422:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return sdscpylen(s, t, strlen(t));
data/redis-6.0.9/deps/hiredis/sds.c:507:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t buflen = strlen(fmt)*2;
data/redis-6.0.9/deps/hiredis/sds.c:609:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = (next == 's') ? strlen(str) : sdslen(str);
data/redis-6.0.9/deps/hiredis/test.c:618: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).
    redisAppendFormattedCommand(c, cmd, strlen(cmd));
data/redis-6.0.9/deps/hiredis/test.c:659:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        major = strtol(p+strlen(field),&eptr,10);
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hooks.h:10:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read JEMALLOC_HOOK(read, hooks_libc_hook)
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/hooks.h:10:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read JEMALLOC_HOOK(read, hooks_libc_hook)
data/redis-6.0.9/deps/jemalloc/include/jemalloc/internal/malloc_io.h:93:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t result = read(fd, buf,
data/redis-6.0.9/deps/jemalloc/msvc/test_threads/test_threads.cpp:37:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/redis-6.0.9/deps/jemalloc/msvc/test_threads/test_threads.cpp:86:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();
data/redis-6.0.9/deps/jemalloc/src/ckh.c:543: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).
	hash(key, strlen((const char *)key), 0x94122f33U, r_hash);
data/redis-6.0.9/deps/jemalloc/src/ctl.c:1101: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(child->name) == elen &&
data/redis-6.0.9/deps/jemalloc/src/jemalloc.c:154:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  pragma section(".CRT$XCU", read)
data/redis-6.0.9/deps/jemalloc/src/jemalloc.c:741: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 opts_len = strlen(opt_stats_print_opts);
data/redis-6.0.9/deps/jemalloc/src/jemalloc.c:761:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert(opts_len == strlen(opt_stats_print_opts));
data/redis-6.0.9/deps/jemalloc/src/jemalloc.c:1046:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(o, v, cpylen);			\
data/redis-6.0.9/deps/jemalloc/src/jemalloc.c:1200:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(log_var_names, v, cpylen);
data/redis-6.0.9/deps/jemalloc/src/log.c:46: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).
	const char *log_var_end = log_var->name + strlen(log_var->name);
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:73: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).
	malloc_write_fd(STDERR_FILENO, s, strlen(s));
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:104:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, b, buflen);
data/redis-6.0.9/deps/jemalloc/src/malloc_io.c:573: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).
				slen = (prec < 0) ? strlen(s) : (size_t)prec;
data/redis-6.0.9/deps/jemalloc/src/prof.c:1016: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).
	slen = strlen(s);
data/redis-6.0.9/deps/jemalloc/src/prof.c:2142: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).
	size = strlen(thread_name) + 1;
data/redis-6.0.9/deps/jemalloc/src/prof.c:2188:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(s) > 0) {
data/redis-6.0.9/deps/jemalloc/src/tsd.c:303:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#ifdef read
data/redis-6.0.9/deps/jemalloc/src/tsd.c:304:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  undef read
data/redis-6.0.9/deps/jemalloc/src/tsd.c:315:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  pragma section(".CRT$XLY",long,read)
data/redis-6.0.9/deps/jemalloc/src/zone.c:29:10:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	void *(*memalign)(struct _malloc_zone_t *, size_t, size_t);
data/redis-6.0.9/deps/jemalloc/test/unit/emitter.c:61: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).
	assert_zu_eq(written, strlen(str), "Buffer overflow!");
data/redis-6.0.9/deps/jemalloc/test/unit/mallctl.c:12: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).
	assert_d_eq(mallctl("version", NULL, NULL, "0.0.0", strlen("0.0.0")),
data/redis-6.0.9/deps/jemalloc/test/unit/mallctl.c:53:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen("0.0.0")), EPERM, "mallctl() should return EPERM on "
data/redis-6.0.9/deps/jemalloc/test/unit/malloc_io.c:117: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).
	assert_zu_eq(result, strlen(expected_str_untruncated),		\
data/redis-6.0.9/deps/jemalloc/test/unit/malloc_io.c:146: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).
	assert_zu_eq(result, strlen(expected_str), "Unexpected result");\
data/redis-6.0.9/deps/jemalloc/test/unit/stats_print.c:94:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(str);
data/redis-6.0.9/deps/linenoise/linenoise.c:286:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(ifd,buf+i,1) != 1) break;
data/redis-6.0.9/deps/linenoise/linenoise.c:320:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (write(ofd,seq,strlen(seq)) == -1) {
data/redis-6.0.9/deps/linenoise/linenoise.c:380: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).
                ls->len = ls->pos = strlen(lc.cvec[i]);
data/redis-6.0.9/deps/linenoise/linenoise.c:390:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            nread = read(ls->ifd,&c,1);
data/redis-6.0.9/deps/linenoise/linenoise.c:444: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 len = strlen(str);
data/redis-6.0.9/deps/linenoise/linenoise.c:496: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).
            int hintlen = strlen(hint);
data/redis-6.0.9/deps/linenoise/linenoise.c:504:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            abAppend(ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:520:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t plen = strlen(l->prompt);
data/redis-6.0.9/deps/linenoise/linenoise.c:539: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).
    abAppend(&ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:541: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).
    abAppend(&ab,l->prompt,strlen(l->prompt));
data/redis-6.0.9/deps/linenoise/linenoise.c:551: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).
    abAppend(&ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:554: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).
    abAppend(&ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:565:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int plen = strlen(l->prompt);
data/redis-6.0.9/deps/linenoise/linenoise.c:583:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        abAppend(&ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:590:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        abAppend(&ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:596: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).
    abAppend(&ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:599: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).
    abAppend(&ab,l->prompt,strlen(l->prompt));
data/redis-6.0.9/deps/linenoise/linenoise.c:619:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        abAppend(&ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:632:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        abAppend(&ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:642: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).
    abAppend(&ab,seq,strlen(seq));
data/redis-6.0.9/deps/linenoise/linenoise.c:741:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(l->buf,history[history_len - 1 - l->history_index],l->buflen);
data/redis-6.0.9/deps/linenoise/linenoise.c:743: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).
        l->len = l->pos = strlen(l->buf);
data/redis-6.0.9/deps/linenoise/linenoise.c:805:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l.plen = strlen(prompt);
data/redis-6.0.9/deps/linenoise/linenoise.c:826:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(l.ifd,&c,1);
data/redis-6.0.9/deps/linenoise/linenoise.c:896:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read(l.ifd,seq,1) == -1) break;
data/redis-6.0.9/deps/linenoise/linenoise.c:897:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read(l.ifd,seq+1,1) == -1) break;
data/redis-6.0.9/deps/linenoise/linenoise.c:903:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (read(l.ifd,seq+2,1) == -1) break;
data/redis-6.0.9/deps/linenoise/linenoise.c:992:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(STDIN_FILENO,&c,1);
data/redis-6.0.9/deps/linenoise/linenoise.c:1043:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int c = fgetc(stdin);
data/redis-6.0.9/deps/linenoise/linenoise.c:1078:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(buf);
data/redis-6.0.9/deps/linenoise/linenoise.c:1190:24:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mode_t old_umask = umask(S_IXUSR|S_IRWXG|S_IRWXO);
data/redis-6.0.9/deps/linenoise/linenoise.c:1195:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(old_umask);
data/redis-6.0.9/deps/lua/src/lapi.c:458: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).
    lua_pushlstring(L, s, strlen(s));
data/redis-6.0.9/deps/lua/src/lauxlib.c:169:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      *len = (def ? strlen(def) : 0);
data/redis-6.0.9/deps/lua/src/lauxlib.c:343:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t l = strlen(p);
data/redis-6.0.9/deps/lua/src/lauxlib.c:363:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (e == NULL) e = fname + strlen(fname);
data/redis-6.0.9/deps/lua/src/lauxlib.c:443: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).
  luaL_addlstring(B, s, strlen(s));
data/redis-6.0.9/deps/lua/src/lauxlib.c:567:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(lf.f);
data/redis-6.0.9/deps/lua/src/lauxlib.c:570:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(lf.f)) != EOF && c != '\n') ;  /* skip first line */
data/redis-6.0.9/deps/lua/src/lauxlib.c:571:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (c == '\n') c = getc(lf.f);
data/redis-6.0.9/deps/lua/src/lauxlib.c:577:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ;
data/redis-6.0.9/deps/lua/src/lauxlib.c:619:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return luaL_loadbuffer(L, s, strlen(s), s);
data/redis-6.0.9/deps/lua/src/ldblib.c:309:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") ||
data/redis-6.0.9/deps/lua/src/liolib.c:287:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int c = getc(f);
data/redis-6.0.9/deps/lua/src/liolib.c:304: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).
    l = strlen(p);
data/redis-6.0.9/deps/lua/src/llex.c:69:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lua_assert(strlen(luaX_tokens[i])+1 <= TOKEN_LEN);
data/redis-6.0.9/deps/lua/src/loadlib.c:345:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (l == NULL) l = path + strlen(path);
data/redis-6.0.9/deps/lua/src/lobject.c:184:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(out, source+1, bufflen);  /* remove first char */
data/redis-6.0.9/deps/lua/src/lobject.c:192:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      l = strlen(source);
data/redis-6.0.9/deps/lua/src/lobject.c:193:7:  [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(out, "");
data/redis-6.0.9/deps/lua/src/lobject.c:206:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(out, source, len);
data/redis-6.0.9/deps/lua/src/lstring.h:20: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).
#define luaS_new(L, s)	(luaS_newlstr(L, s, strlen(s)))
data/redis-6.0.9/deps/lua/src/lstrlib.c:740:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(form, strfrmt, p - strfrmt + 1);
data/redis-6.0.9/deps/lua/src/lstrlib.c:748:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t l = strlen(form);
data/redis-6.0.9/deps/lua/src/lstrlib.c:819: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).
      luaL_addlstring(&b, buff, strlen(buff));
data/redis-6.0.9/deps/lua/src/lua.c:141: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).
  int status = luaL_loadbuffer(L, s, strlen(s), name) || docall(L, 0, 1);
data/redis-6.0.9/deps/lua/src/lua.c:184:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(b);
data/redis-6.0.9/deps/lua/src/lvm.c:212: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 len = strlen(l);  /* index of first `\0' in both strings */
data/redis-6.0.9/src/acl.c:123: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).
    unsigned int alen = strlen(a);
data/redis-6.0.9/src/acl.c:124: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).
    unsigned int blen = strlen(b);
data/redis-6.0.9/src/acl.c:263: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).
        user *fakeuser = ACLCreateUser(username,strlen(username));
data/redis-6.0.9/src/acl.c:266:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               strlen(username),NULL);
data/redis-6.0.9/src/acl.c:757:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (oplen == -1) oplen = strlen(op);
data/redis-6.0.9/src/acl.c:872: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).
            if (strlen(sub) == 0) {
data/redis-6.0.9/src/acl.c:1045:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    raxInsert(map,(unsigned char*)lowername,strlen(lowername),
data/redis-6.0.9/src/acl.c:1294: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).
    lines = sdssplitlen(acls,strlen(acls),"\n",1,&totlines);
data/redis-6.0.9/src/anet.c:395:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sa.sun_path,path,sizeof(sa.sun_path)-1);
data/redis-6.0.9/src/anet.c:430:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(fd,buf,count-totlen);
data/redis-6.0.9/src/anet.c:537:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sa.sun_path,path,sizeof(sa.sun_path)-1);
data/redis-6.0.9/src/anet.c:607:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        if (ip) strncpy(ip,"/unixsocket",ip_len);
data/redis-6.0.9/src/aof.c:390:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(server.aof_flush_sleep);
data/redis-6.0.9/src/aof.c:595: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).
            (unsigned long)strlen(seldb),seldb);
data/redis-6.0.9/src/aof.c:863:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(server.key_load_delay);
data/redis-6.0.9/src/aof.c:1338:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read(server.aof_pipe_read_data_from_parent,buf,sizeof(buf))) > 0) {
data/redis-6.0.9/src/aof.c:1544:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd,&byte,1) == 1 && byte == '!') {
data/redis-6.0.9/src/bitops.c:463:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((string2ll(p+1,strlen(p+1),&llbits)) == 0 ||
data/redis-6.0.9/src/bitops.c:774: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).
    long start, end, strlen;
data/redis-6.0.9/src/bitops.c:781: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).
    p = getObjectReadOnlyString(o,&strlen,llbuf);
data/redis-6.0.9/src/bitops.c:798:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (end >= strlen) end = strlen-1;
data/redis-6.0.9/src/bitops.c:823: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).
    long bit, start, end, strlen;
data/redis-6.0.9/src/bitops.c:845: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).
    p = getObjectReadOnlyString(o,&strlen,llbuf);
data/redis-6.0.9/src/bitops.c:863:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (end >= strlen) end = strlen-1;
data/redis-6.0.9/src/bitops.c:1112: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).
                src = getObjectReadOnlyString(o,&strlen,llbuf);
data/redis-6.0.9/src/bitops.c:1122: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 (src == NULL || i+byte >= (size_t)strlen) break;
data/redis-6.0.9/src/blocked.c:306: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).
            argv[0] = createStringObject(cmd->name,strlen(cmd->name));
data/redis-6.0.9/src/childinfo.c:76:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(server.child_info_pipe[0],&server.child_info_data,wlen) == wlen &&
data/redis-6.0.9/src/cluster.c:177: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).
        memcpy(n->ip,argv[1],strlen(argv[1])+1);
data/redis-6.0.9/src/cluster.c:2406:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(hdr->myip,server.cluster_announce_ip,NET_IP_STR_LEN);
data/redis-6.0.9/src/cluster.c:3480:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(myself->ip,server.cluster_announce_ip,NET_IP_STR_LEN);
data/redis-6.0.9/src/config.c:357:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lines = sdssplitlen(config,strlen(config),"\n",1,&totlines);
data/redis-6.0.9/src/config.c:480: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).
            if (strlen(argv[1]) > CONFIG_AUTHPASS_MAX_LEN) {
data/redis-6.0.9/src/config.c:1171: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).
            alt = sdscatlen(alt,p+5,strlen(p+5));
data/redis-6.0.9/src/config.c:1288: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).
    line = sdscatrepr(line, value, strlen(value));
data/redis-6.0.9/src/config.c:1825: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).
                                strlen(enumNode->name));
data/redis-6.0.9/src/config.c:1831:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(loadbuf, enumerr, LOADBUF_SIZE);
data/redis-6.0.9/src/connection.c:183:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret = read(conn->fd, buf, buf_len);
data/redis-6.0.9/src/connection.h:60:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int (*read)(struct connection *conn, void *buf, size_t buf_len);
data/redis-6.0.9/src/connection.h:152:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return conn->type->read(conn, buf, buf_len);
data/redis-6.0.9/src/debug.c:176:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    mixDigest(eledigest,buf,strlen(buf));
data/redis-6.0.9/src/debug.c:180: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).
                mixDigest(eledigest,buf,strlen(buf));
data/redis-6.0.9/src/debug.c:196: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).
                mixDigest(eledigest,buf,strlen(buf));
data/redis-6.0.9/src/debug.c:605:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            key = createStringObject(buf,strlen(buf));
data/redis-6.0.9/src/debug.c:612: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).
                val = createStringObject(buf,strlen(buf));
data/redis-6.0.9/src/debug.c:614:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                int buflen = strlen(buf);
data/redis-6.0.9/src/debug.c:791: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).
            addReplyVerbatim(c,buf,strlen(buf),"txt");
data/redis-6.0.9/src/debug.c:1459:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(fd,msg1,strlen(msg1)) == -1) {/* Avoid warning. */};
data/redis-6.0.9/src/debug.c:1462:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(fd,msg2,strlen(msg2)) == -1) {/* Avoid warning. */};
data/redis-6.0.9/src/debug.c:1557:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(fd,logbuf,strlen(logbuf)) == -1) { /* Nothing to do. */ }
data/redis-6.0.9/src/dict.c:1126: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(buf);
data/redis-6.0.9/src/evict.c:620:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(1000);
data/redis-6.0.9/src/latency.c:45: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).
    return dictGenHashFunction(key, strlen(key));
data/redis-6.0.9/src/module.c:735: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).
    sds *tokens = sdssplitlen(s,strlen(s)," ",1,&count);
data/redis-6.0.9/src/module.c:1232:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (len) *len = strlen(errmsg);
data/redis-6.0.9/src/module.c:1377: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).
    addReplyProto(c,prefix,strlen(prefix));
data/redis-6.0.9/src/module.c:1378: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).
    addReplyProto(c,msg,strlen(msg));
data/redis-6.0.9/src/module.c:2904: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).
            field = createRawStringObject(cfield,strlen(cfield));
data/redis-6.0.9/src/module.c:3005: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).
            field = createRawStringObject(cfield,strlen(cfield));
data/redis-6.0.9/src/module.c:3272: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).
    argv_size = strlen(fmt)+1; /* +1 because of the command name. */
data/redis-6.0.9/src/module.c:3276:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    argv[0] = createStringObject(cmdname,strlen(cmdname));
data/redis-6.0.9/src/module.c:3284: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).
            argv[argc++] = createStringObject(cstr,strlen(cstr));
data/redis-6.0.9/src/module.c:3529: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(name) != 9) return 0;
data/redis-6.0.9/src/module.c:4749:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (read(server.module_blocked_pipe[0],buf,1) == 1);
data/redis-6.0.9/src/module.c:5329:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    if (ip) strncpy(ip,node->ip,NET_IP_STR_LEN);
data/redis-6.0.9/src/module.c:6031:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (name != NULL && strlen(name) > 0)
data/redis-6.0.9/src/module.c:6256: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).
    sds val = raxFind(data->rax, (unsigned char *)field, strlen(field));
data/redis-6.0.9/src/module.c:6265: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).
    sds val = raxFind(data->rax, (unsigned char *)field, strlen(field));
data/redis-6.0.9/src/module.c:6275: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).
    sds val = raxFind(data->rax, (unsigned char *)field, strlen(field));
data/redis-6.0.9/src/module.c:6293: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).
    sds val = raxFind(data->rax, (unsigned char *)field, strlen(field));
data/redis-6.0.9/src/module.c:6311: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).
    sds val = raxFind(data->rax, (unsigned char *)field, strlen(field));
data/redis-6.0.9/src/module.c:7481:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return dictGenHashFunction((unsigned char*)key, strlen((char*)key));
data/redis-6.0.9/src/modules/helloworld.c:126:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    RedisModule_ReplyWithLongLong(ctx,strlen);
data/redis-6.0.9/src/modules/helloworld.c:519: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).
    size_t strlen, chlen;
data/redis-6.0.9/src/modules/helloworld.c:520: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).
    const char *str = RedisModule_StringPtrLen(argv[1], &strlen);
data/redis-6.0.9/src/modules/helloworld.c:525: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 >= (size_t)padlen)
data/redis-6.0.9/src/modules/helloworld.c:534: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).
    padlen -= strlen;
data/redis-6.0.9/src/modules/helloworld.c:535: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).
    char *buf = RedisModule_PoolAlloc(ctx,padlen+strlen);
data/redis-6.0.9/src/modules/helloworld.c:537: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).
    memcpy(buf+padlen,str,strlen);
data/redis-6.0.9/src/modules/helloworld.c:539: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).
    RedisModule_ReplyWithStringBuffer(ctx,buf,padlen+strlen);
data/redis-6.0.9/src/multi.c:233: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).
            feedReplicationBacklog(execcmd,strlen(execcmd));
data/redis-6.0.9/src/networking.c:435:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    addReplyErrorLength(c,err,strlen(err));
data/redis-6.0.9/src/networking.c:436: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).
    afterErrorReply(c,err,strlen(err));
data/redis-6.0.9/src/networking.c:469: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).
    addReplyStatusLength(c,status,strlen(status));
data/redis-6.0.9/src/networking.c:763: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).
        addReplyBulkCBuffer(c,s,strlen(s));
data/redis-6.0.9/src/networking.c:913:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (connWrite(c->conn,err,strlen(err)) == -1) {
data/redis-6.0.9/src/networking.c:961:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (connWrite(conn,err,strlen(err)) == -1) {
data/redis-6.0.9/src/notify.c:114: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).
    eventobj = createStringObject(event,strlen(event));
data/redis-6.0.9/src/object.c:536: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).
        dec = createStringObject(buf,strlen(buf));
data/redis-6.0.9/src/quicklist.c:2387: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).
                    quicklistPushTail(ql, words[i], strlen(words[i]));
data/redis-6.0.9/src/rdb.c:320: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(buf) != len || memcmp(buf,s,len)) return 0;
data/redis-6.0.9/src/rdb.c:578: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).
        buf[0] = strlen((char*)buf+1);
data/redis-6.0.9/src/rdb.c:1091:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(server.rdb_key_save_delay);
data/redis-6.0.9/src/rdb.c:1111:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return rdbSaveAuxField(rdb,key,strlen(key),val,strlen(val));
data/redis-6.0.9/src/rdb.c:1111: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 rdbSaveAuxField(rdb,key,strlen(key),val,strlen(val));
data/redis-6.0.9/src/rdb.c:1118:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return rdbSaveAuxField(rdb,key,strlen(key),buf,vlen);
data/redis-6.0.9/src/rdb.c:1432:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmpfile+5, pid, pid_len);
data/redis-6.0.9/src/rdb.c:2368:36:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        if (server.key_load_delay) usleep(server.key_load_delay);
data/redis-6.0.9/src/redis-benchmark.c:419: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).
    int taglen = strlen(tag);
data/redis-6.0.9/src/redis-benchmark.c:790:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(50000);
data/redis-6.0.9/src/redis-benchmark.c:1104:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int remaining = strlen(line);
data/redis-6.0.9/src/redis-benchmark.c:1506: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).
    int l = strlen(name);
data/redis-6.0.9/src/redis-benchmark.c:1652: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).
            title = sdscatlen(title, (char*)argv[i], strlen(argv[i]));
data/redis-6.0.9/src/redis-check-aof.c:135:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (feof(fp) && multi && strlen(error) == 0) {
data/redis-6.0.9/src/redis-check-aof.c:138: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(error) > 0) {
data/redis-6.0.9/src/redis-cli.c:298:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        prompt = sdscatlen(prompt,addr,strlen(addr));
data/redis-6.0.9/src/redis-cli.c:389:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *end = uri + strlen(uri);
data/redis-6.0.9/src/redis-cli.c:393:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncasecmp(tlsscheme, curr, strlen(tlsscheme))) {
data/redis-6.0.9/src/redis-cli.c:400:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if (strncasecmp(scheme, curr, strlen(scheme))) {
data/redis-6.0.9/src/redis-cli.c:404: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).
    curr += strlen(scheme);
data/redis-6.0.9/src/redis-cli.c:687: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).
        matchlen = strlen(buf+startpos);
data/redis-6.0.9/src/redis-cli.c:701: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).
    int i, argc, buflen = strlen(buf);
data/redis-6.0.9/src/redis-cli.c:1161: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).
        out = sdscatrepr(out,r->str,strlen(r->str));
data/redis-6.0.9/src/redis-cli.c:1391:30:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        if (config.interval) usleep(config.interval);
data/redis-6.0.9/src/redis-cli.c:1421:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(1000000);
data/redis-6.0.9/src/redis-cli.c:1704:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int nread = read(fileno(stdin),buf,1024);
data/redis-6.0.9/src/redis-cli.c:1839:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int nread = read(fileno(stdin),buf,4);
data/redis-6.0.9/src/redis-cli.c:1894: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).
        int len = strlen(line);
data/redis-6.0.9/src/redis-cli.c:2169:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(config.prompt,"lua debugger> ",sizeof(config.prompt));
data/redis-6.0.9/src/redis-cli.c:3467: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).
    argv_len[1] = strlen(target->ip);
data/redis-6.0.9/src/redis-cli.c:3469: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).
    argv_len[2] = strlen(portstr);
data/redis-6.0.9/src/redis-cli.c:3475: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).
    argv_len[5] = strlen(timeoutstr);
data/redis-6.0.9/src/redis-cli.c:3487:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            argv_len[offset] = strlen(config.user);
data/redis-6.0.9/src/redis-cli.c:3490:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            argv_len[offset] = strlen(config.auth);
data/redis-6.0.9/src/redis-cli.c:3497:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            argv_len[offset] = strlen(config.auth);
data/redis-6.0.9/src/redis-cli.c:3895: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).
                int remaining = strlen(line);
data/redis-6.0.9/src/redis-cli.c:3986: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).
        while ((flag_len = strlen(flags)) > 0) {
data/redis-6.0.9/src/redis-cli.c:4153: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).
        int remaining = strlen(line);
data/redis-6.0.9/src/redis-cli.c:4189: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).
                int slen = strlen(slots[i]);
data/redis-6.0.9/src/redis-cli.c:5872:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int nread = read(fileno(stdin),buf,6);
data/redis-6.0.9/src/redis-cli.c:5877:30:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                while ((ch = getchar()) != '\n' && ch != EOF) {}
data/redis-6.0.9/src/redis-cli.c:5889:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int nread = read(fileno(stdin),buf,255);
data/redis-6.0.9/src/redis-cli.c:5894:26:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while ((ch = getchar()) != '\n' && ch != EOF) {}
data/redis-6.0.9/src/redis-cli.c:5897: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).
        if (strlen(buf) > 0) to = buf;
data/redis-6.0.9/src/redis-cli.c:5913:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int nread = read(fileno(stdin),buf,255);
data/redis-6.0.9/src/redis-cli.c:5918:30:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                while ((ch = getchar()) != '\n' && ch != EOF) {}
data/redis-6.0.9/src/redis-cli.c:5954:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!all && strlen(from) > 0) {
data/redis-6.0.9/src/redis-cli.c:6008:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int nread = read(fileno(stdin),buf,4);
data/redis-6.0.9/src/redis-cli.c:6436: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).
        argvlen[i] = strlen(argv[i]);
data/redis-6.0.9/src/redis-cli.c:6543:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int namelen = strlen(def->name), padlen = padding - namelen;
data/redis-6.0.9/src/redis-cli.c:6548: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).
            int optslen = strlen(def->options);
data/redis-6.0.9/src/redis-cli.c:6647:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(LATENCY_SAMPLE_RATE * 1000);
data/redis-6.0.9/src/redis-cli.c:6789:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(LATENCY_SAMPLE_RATE * 1000);
data/redis-6.0.9/src/redis-cli.c:6889:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return c->funcs->read(c, buf, len);
data/redis-6.0.9/src/redis-cli.c:6925: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 (strncmp(buf+1,"EOF:",4) == 0 && strlen(buf+5) >= RDB_EOF_MARK_SIZE) {
data/redis-6.0.9/src/redis-cli.c:7191:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    ssize_t nread = read(STDIN_FILENO,obuf,sizeof(obuf));
data/redis-6.0.9/src/redis-cli.c:7402: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).
            size_t lens[] = {strlen(types[i]->sizecmd), keys->element[i]->len};
data/redis-6.0.9/src/redis-cli.c:7536:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(config.interval);
data/redis-6.0.9/src/redis-cli.c:7686:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(config.interval);
data/redis-6.0.9/src/redis-cli.c:7723: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).
    p += strlen(field)+1;
data/redis-6.0.9/src/redis-cli.c:7853:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(config.interval);
data/redis-6.0.9/src/release.c:52:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return crc64(0,(unsigned char*)buildid,strlen(buildid));
data/redis-6.0.9/src/replication.c:1041:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    buflen = read(slave->repldbfd,buf,PROTO_IOBUF_LEN);
data/redis-6.0.9/src/replication.c:1134:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        server.rdb_pipe_bufflen = read(fd, server.rdb_pipe_buff, PROTO_IOBUF_LEN);
data/redis-6.0.9/src/replication.c:1533:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(buf+1,"EOF:",4) == 0 && strlen(buf+5) >= CONFIG_RUN_ID_SIZE) {
data/redis-6.0.9/src/replication.c:1876:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            cmdargs = sdscatprintf(cmdargs,"$%zu\r\n%s\r\n",strlen(arg),arg);
data/redis-6.0.9/src/rio.h:47:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t (*read)(struct _rio *, void *buf, size_t len);
data/redis-6.0.9/src/rio.h:123:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (r->read(r,buf,bytes_to_read) == 0) {
data/redis-6.0.9/src/scripting.c:1075:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (j = 0; s[j] != NULL; j++) code = sdscatlen(code,s[j],strlen(s[j]));
data/redis-6.0.9/src/scripting.c:1227:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        luaL_loadbuffer(lua,compare_func,strlen(compare_func),"@cmp_func_def");
data/redis-6.0.9/src/scripting.c:1248:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        luaL_loadbuffer(lua,errh_func,strlen(errh_func),"@err_handler_def");
data/redis-6.0.9/src/sds.c:155: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).
    size_t initlen = (init == NULL) ? 0 : strlen(init);
data/redis-6.0.9/src/sds.c:185: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 reallen = strlen(s);
data/redis-6.0.9/src/sds.c:413:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return sdscatlen(s, t, strlen(t));
data/redis-6.0.9/src/sds.c:440:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return sdscpylen(s, t, strlen(t));
data/redis-6.0.9/src/sds.c:525:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t buflen = strlen(fmt)*2;
data/redis-6.0.9/src/sds.c:609: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).
    s = sdsMakeRoomFor(s, initlen + strlen(fmt)*2);
data/redis-6.0.9/src/sds.c:632:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = (next == 's') ? strlen(str) : sdslen(str);
data/redis-6.0.9/src/sentinel.c:648: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).
        vsnprintf(msg+strlen(msg), sizeof(msg)-strlen(msg), fmt, ap);
data/redis-6.0.9/src/sentinel.c:648: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).
        vsnprintf(msg+strlen(msg), sizeof(msg)-strlen(msg), fmt, ap);
data/redis-6.0.9/src/sentinel.c:658: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).
        channel = createStringObject(type,strlen(type));
data/redis-6.0.9/src/sentinel.c:659:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        payload = createStringObject(msg,strlen(msg));
data/redis-6.0.9/src/sentinel.c:1697: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).
        if (strlen(argv[1]) != CONFIG_RUN_ID_SIZE)
data/redis-6.0.9/src/sentinel.c:1757: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).
        if (strlen(argv[1]))
data/redis-6.0.9/src/sentinel.c:2155: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).
    lines = sdssplitlen(info,strlen(info),"\r\n",2,&numlines);
data/redis-6.0.9/src/sentinel.c:3303: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).
            addReplyBulkCBuffer(c,ri->name,strlen(ri->name));
data/redis-6.0.9/src/sentinel.c:3515: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).
            if (strlen(value) && access(value,X_OK) == -1) {
data/redis-6.0.9/src/sentinel.c:3522:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ri->notification_script = strlen(value) ? sdsnew(value) : NULL;
data/redis-6.0.9/src/sentinel.c:3535: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).
            if (strlen(value) && access(value,X_OK) == -1) {
data/redis-6.0.9/src/sentinel.c:3543:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ri->client_reconfig_script = strlen(value) ? sdsnew(value) : NULL;
data/redis-6.0.9/src/sentinel.c:3549:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ri->auth_pass = strlen(value) ? sdsnew(value) : NULL;
data/redis-6.0.9/src/sentinel.c:3555:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ri->auth_user = strlen(value) ? sdsnew(value) : NULL;
data/redis-6.0.9/src/server.c:1101:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (write(fd,buf,strlen(buf)) == -1) goto err;
data/redis-6.0.9/src/server.c:1104:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (write(fd,buf,strlen(buf)) == -1) goto err;
data/redis-6.0.9/src/server.c:1106:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (write(fd,msg,strlen(msg)) == -1) goto err;
data/redis-6.0.9/src/server.c:2524:16:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    if (delay) usleep(delay*1000);
data/redis-6.0.9/src/server.c:2541:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, buf, sizeof(buf)) > 0)
data/redis-6.0.9/src/server.c:2574: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).
    if (fd < 0 || write(fd, buf, strlen(buf)) < 0) {
data/redis-6.0.9/src/server.c:5259: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).
                options = sdscatrepr(options,argv[j],strlen(argv[j]));
data/redis-6.0.9/src/setproctitle.c:160:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	nul = &base[strlen(base)];
data/redis-6.0.9/src/setproctitle.c:167: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).
		end = argv[i] + strlen(argv[i]) + 1;
data/redis-6.0.9/src/setproctitle.c: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).
		end = envp[i] + strlen(envp[i]) + 1;
data/redis-6.0.9/src/sparkline.c:144: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).
                    int label_len = strlen(s->label);
data/redis-6.0.9/src/syncio.c:98:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(fd,ptr,size);
data/redis-6.0.9/src/t_string.c:255: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).
    size_t strlen;
data/redis-6.0.9/src/t_string.c:281:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((unsigned long long)end >= strlen) end = strlen-1;
data/redis-6.0.9/src/tls.c:63: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).
    sds *tokens = sdssplitlen(str, strlen(str), " ", 1, &count);
data/redis-6.0.9/src/util.c:169: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).
    return stringmatchlen(pattern,strlen(pattern),string,strlen(string),nocase);
data/redis-6.0.9/src/util.c:169: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).
    return stringmatchlen(pattern,strlen(pattern),string,strlen(string),nocase);
data/redis-6.0.9/src/util.c:181:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for (int j = 0; j < strlen; j++) str[j] = rand() % 128;
data/redis-6.0.9/src/util.c:183: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).
        total_matches += stringmatchlen(pat, patlen, str, strlen, 0);
data/redis-6.0.9/src/util.c:431:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (string2ll(s,strlen(s),&ll)) {
data/redis-6.0.9/src/util.c:783:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/util.c:787:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/util.c:791:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/util.c:795:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/util.c:798:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:801:5:  [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(buf,"0");
data/redis-6.0.9/src/util.c:802:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:805:5:  [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(buf,"1");
data/redis-6.0.9/src/util.c:806:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:810:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:814:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:818:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:822:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/util.c:825:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:829:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2ll(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/util.c:838:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/util.c:842:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/util.c:845:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:848:5:  [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(buf,"0");
data/redis-6.0.9/src/util.c:849:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:852:5:  [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(buf,"1");
data/redis-6.0.9/src/util.c:853:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:857:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:861:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:866:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:870:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/util.c:873:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 1);
data/redis-6.0.9/src/util.c:877:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(string2l(buf,strlen(buf),&v) == 0);
data/redis-6.0.9/src/ziplist.c:1269:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    zl = ziplistPush(zl, (unsigned char*)buf, strlen(buf), ZIPLIST_TAIL);
data/redis-6.0.9/src/ziplist.c:1271:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    zl = ziplistPush(zl, (unsigned char*)buf, strlen(buf), ZIPLIST_TAIL);
data/redis-6.0.9/src/ziplist.c:1273:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    zl = ziplistPush(zl, (unsigned char*)buf, strlen(buf), ZIPLIST_HEAD);
data/redis-6.0.9/src/ziplist.c:1275:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    zl = ziplistPush(zl, (unsigned char*)buf, strlen(buf), ZIPLIST_HEAD);
data/redis-6.0.9/src/ziplist.c:1277:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    zl = ziplistPush(zl, (unsigned char*)buf, strlen(buf), ZIPLIST_TAIL);
data/redis-6.0.9/src/ziplist.c:1279:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    zl = ziplistPush(zl, (unsigned char*)buf, strlen(buf), ZIPLIST_TAIL);
data/redis-6.0.9/src/ziplist.c:1671: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).
        zl = ziplistPush(zl,(unsigned char*)v1,strlen(v1),ZIPLIST_TAIL);
data/redis-6.0.9/src/ziplist.c:1672: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).
        zl = ziplistPush(zl,(unsigned char*)v2,strlen(v2),ZIPLIST_TAIL);
data/redis-6.0.9/src/ziplist.c:1702: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).
            zl = ziplistPush(zl, (unsigned char *) v[i], strlen(v[i]), ZIPLIST_TAIL);
data/redis-6.0.9/src/zmalloc.c:220:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t l = strlen(s)+1;
data/redis-6.0.9/src/zmalloc.c:263:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd,buf,4096) <= 0) {
data/redis-6.0.9/src/zmalloc.c:440:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int flen = strlen(field);
data/redis-6.0.9/tests/modules/fork.c:45:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(500000);
data/redis-6.0.9/tests/modules/hooks.c:49:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EventElement *event = RedisModule_DictGetC(event_log, (void*)keyname, strlen(keyname), NULL);
data/redis-6.0.9/tests/modules/hooks.c:53:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        RedisModule_DictSetC(event_log, (void*)keyname, strlen(keyname), event);
data/redis-6.0.9/tests/modules/hooks.c:56:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    event->last_val_string = RedisModule_CreateString(ctx, data, strlen(data));
data/redis-6.0.9/tests/modules/hooks.c:62:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EventElement *event = RedisModule_DictGetC(event_log, (void*)keyname, strlen(keyname), NULL);
data/redis-6.0.9/tests/modules/hooks.c:66:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        RedisModule_DictSetC(event_log, (void*)keyname, strlen(keyname), event);
data/redis-6.0.9/tests/modules/keyspace_events.c:49: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).
        RedisModule_DictGetC(loaded_event_log, (void*)keyName, strlen(keyName), &nokey);
data/redis-6.0.9/tests/modules/keyspace_events.c:51: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).
            RedisModule_DictSetC(loaded_event_log, (void*)keyName, strlen(keyName), RedisModule_HoldString(ctx, key));
data/redis-6.0.9/tests/modules/keyspace_events.c:66:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    RedisModuleString* keyStr = RedisModule_DictGetC(loaded_event_log, (void*)key, strlen(key), &nokey);
data/redis-6.0.9/tests/modules/misc.c:52: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).
        RedisModule_CreateString(ctx, ldstr, strlen(ldstr));

ANALYSIS SUMMARY:

Hits = 1513
Lines analyzed = 197625 in approximately 5.79 seconds (34127 lines/second)
Physical Source Lines of Code (SLOC) = 138885
Hits@level = [0] 942 [1] 367 [2] 1018 [3]  37 [4]  86 [5]   5
Hits@level+ = [0+] 2455 [1+] 1513 [2+] 1146 [3+] 128 [4+]  91 [5+]   5
Hits/KSLOC@level+ = [0+] 17.6765 [1+] 10.8939 [2+] 8.25143 [3+] 0.921626 [4+] 0.655218 [5+] 0.036001
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.