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/jemalloc-5.2.1/include/jemalloc/internal/arena_externs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/arena_inlines_a.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/arena_inlines_b.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/arena_stats.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/arena_structs_a.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/arena_structs_b.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/arena_types.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/assert.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/atomic.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/atomic_c11.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/atomic_gcc_atomic.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/atomic_gcc_sync.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/atomic_msvc.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/background_thread_externs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/background_thread_inlines.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/background_thread_structs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/base_externs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/base_inlines.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/base_structs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/base_types.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/bin.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/bin_stats.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/bin_types.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/bit_util.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/bitmap.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/cache_bin.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/ckh.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/ctl.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/div.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/emitter.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/extent_dss.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/extent_externs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/extent_inlines.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/extent_mmap.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/extent_structs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/extent_types.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/hash.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/hook.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_decls.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_externs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_includes.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_inlines_a.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_inlines_b.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_inlines_c.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_macros.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_types.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/large_externs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/log.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/malloc_io.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/mutex.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/mutex_pool.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/mutex_prof.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/nstime.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/pages.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/ph.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/prng.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/prof_externs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/prof_inlines_a.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/prof_inlines_b.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/prof_structs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/prof_types.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/ql.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/qr.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/quantum.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/rb.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/rtree.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/rtree_tsd.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/safety_check.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/sc.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/seq.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/smoothstep.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/spin.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/stats.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/sz.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tcache_externs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tcache_inlines.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tcache_structs.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tcache_types.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/test_hooks.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/ticker.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tsd.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tsd_generic.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tsd_malloc_thread_cleanup.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tsd_tls.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tsd_types.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/tsd_win.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/util.h
Examining data/jemalloc-5.2.1/include/jemalloc/internal/witness.h
Examining data/jemalloc-5.2.1/include/msvc_compat/C99/stdbool.h
Examining data/jemalloc-5.2.1/include/msvc_compat/C99/stdint.h
Examining data/jemalloc-5.2.1/include/msvc_compat/strings.h
Examining data/jemalloc-5.2.1/include/msvc_compat/windows_extra.h
Examining data/jemalloc-5.2.1/msvc/test_threads/test_threads.cpp
Examining data/jemalloc-5.2.1/msvc/test_threads/test_threads.h
Examining data/jemalloc-5.2.1/msvc/test_threads/test_threads_main.cpp
Examining data/jemalloc-5.2.1/src/arena.c
Examining data/jemalloc-5.2.1/src/background_thread.c
Examining data/jemalloc-5.2.1/src/base.c
Examining data/jemalloc-5.2.1/src/bin.c
Examining data/jemalloc-5.2.1/src/bitmap.c
Examining data/jemalloc-5.2.1/src/ckh.c
Examining data/jemalloc-5.2.1/src/ctl.c
Examining data/jemalloc-5.2.1/src/div.c
Examining data/jemalloc-5.2.1/src/extent.c
Examining data/jemalloc-5.2.1/src/extent_dss.c
Examining data/jemalloc-5.2.1/src/extent_mmap.c
Examining data/jemalloc-5.2.1/src/hash.c
Examining data/jemalloc-5.2.1/src/hook.c
Examining data/jemalloc-5.2.1/src/jemalloc.c
Examining data/jemalloc-5.2.1/src/jemalloc_cpp.cpp
Examining data/jemalloc-5.2.1/src/large.c
Examining data/jemalloc-5.2.1/src/log.c
Examining data/jemalloc-5.2.1/src/malloc_io.c
Examining data/jemalloc-5.2.1/src/mutex.c
Examining data/jemalloc-5.2.1/src/mutex_pool.c
Examining data/jemalloc-5.2.1/src/nstime.c
Examining data/jemalloc-5.2.1/src/pages.c
Examining data/jemalloc-5.2.1/src/prng.c
Examining data/jemalloc-5.2.1/src/prof.c
Examining data/jemalloc-5.2.1/src/rtree.c
Examining data/jemalloc-5.2.1/src/safety_check.c
Examining data/jemalloc-5.2.1/src/sc.c
Examining data/jemalloc-5.2.1/src/stats.c
Examining data/jemalloc-5.2.1/src/sz.c
Examining data/jemalloc-5.2.1/src/tcache.c
Examining data/jemalloc-5.2.1/src/test_hooks.c
Examining data/jemalloc-5.2.1/src/ticker.c
Examining data/jemalloc-5.2.1/src/tsd.c
Examining data/jemalloc-5.2.1/src/witness.c
Examining data/jemalloc-5.2.1/src/zone.c
Examining data/jemalloc-5.2.1/test/include/test/SFMT-alti.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params11213.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params1279.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params132049.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params19937.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params216091.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params2281.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params4253.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params44497.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params607.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-params86243.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT-sse2.h
Examining data/jemalloc-5.2.1/test/include/test/SFMT.h
Examining data/jemalloc-5.2.1/test/include/test/btalloc.h
Examining data/jemalloc-5.2.1/test/include/test/extent_hooks.h
Examining data/jemalloc-5.2.1/test/include/test/math.h
Examining data/jemalloc-5.2.1/test/include/test/mq.h
Examining data/jemalloc-5.2.1/test/include/test/mtx.h
Examining data/jemalloc-5.2.1/test/include/test/test.h
Examining data/jemalloc-5.2.1/test/include/test/thd.h
Examining data/jemalloc-5.2.1/test/include/test/timer.h
Examining data/jemalloc-5.2.1/test/integration/MALLOCX_ARENA.c
Examining data/jemalloc-5.2.1/test/integration/aligned_alloc.c
Examining data/jemalloc-5.2.1/test/integration/allocated.c
Examining data/jemalloc-5.2.1/test/integration/cpp/basic.cpp
Examining data/jemalloc-5.2.1/test/integration/extent.c
Examining data/jemalloc-5.2.1/test/integration/malloc.c
Examining data/jemalloc-5.2.1/test/integration/mallocx.c
Examining data/jemalloc-5.2.1/test/integration/overflow.c
Examining data/jemalloc-5.2.1/test/integration/posix_memalign.c
Examining data/jemalloc-5.2.1/test/integration/rallocx.c
Examining data/jemalloc-5.2.1/test/integration/sdallocx.c
Examining data/jemalloc-5.2.1/test/integration/slab_sizes.c
Examining data/jemalloc-5.2.1/test/integration/smallocx.c
Examining data/jemalloc-5.2.1/test/integration/thread_arena.c
Examining data/jemalloc-5.2.1/test/integration/thread_tcache_enabled.c
Examining data/jemalloc-5.2.1/test/integration/xallocx.c
Examining data/jemalloc-5.2.1/test/src/SFMT.c
Examining data/jemalloc-5.2.1/test/src/btalloc.c
Examining data/jemalloc-5.2.1/test/src/btalloc_0.c
Examining data/jemalloc-5.2.1/test/src/btalloc_1.c
Examining data/jemalloc-5.2.1/test/src/math.c
Examining data/jemalloc-5.2.1/test/src/mq.c
Examining data/jemalloc-5.2.1/test/src/mtx.c
Examining data/jemalloc-5.2.1/test/src/test.c
Examining data/jemalloc-5.2.1/test/src/thd.c
Examining data/jemalloc-5.2.1/test/src/timer.c
Examining data/jemalloc-5.2.1/test/stress/hookbench.c
Examining data/jemalloc-5.2.1/test/stress/microbench.c
Examining data/jemalloc-5.2.1/test/unit/SFMT.c
Examining data/jemalloc-5.2.1/test/unit/a0.c
Examining data/jemalloc-5.2.1/test/unit/arena_reset.c
Examining data/jemalloc-5.2.1/test/unit/arena_reset_prof.c
Examining data/jemalloc-5.2.1/test/unit/atomic.c
Examining data/jemalloc-5.2.1/test/unit/background_thread.c
Examining data/jemalloc-5.2.1/test/unit/background_thread_enable.c
Examining data/jemalloc-5.2.1/test/unit/base.c
Examining data/jemalloc-5.2.1/test/unit/binshard.c
Examining data/jemalloc-5.2.1/test/unit/bit_util.c
Examining data/jemalloc-5.2.1/test/unit/bitmap.c
Examining data/jemalloc-5.2.1/test/unit/ckh.c
Examining data/jemalloc-5.2.1/test/unit/decay.c
Examining data/jemalloc-5.2.1/test/unit/div.c
Examining data/jemalloc-5.2.1/test/unit/emitter.c
Examining data/jemalloc-5.2.1/test/unit/extent_quantize.c
Examining data/jemalloc-5.2.1/test/unit/extent_util.c
Examining data/jemalloc-5.2.1/test/unit/fork.c
Examining data/jemalloc-5.2.1/test/unit/hash.c
Examining data/jemalloc-5.2.1/test/unit/hook.c
Examining data/jemalloc-5.2.1/test/unit/huge.c
Examining data/jemalloc-5.2.1/test/unit/junk.c
Examining data/jemalloc-5.2.1/test/unit/junk_alloc.c
Examining data/jemalloc-5.2.1/test/unit/junk_free.c
Examining data/jemalloc-5.2.1/test/unit/log.c
Examining data/jemalloc-5.2.1/test/unit/mallctl.c
Examining data/jemalloc-5.2.1/test/unit/malloc_io.c
Examining data/jemalloc-5.2.1/test/unit/math.c
Examining data/jemalloc-5.2.1/test/unit/mq.c
Examining data/jemalloc-5.2.1/test/unit/mtx.c
Examining data/jemalloc-5.2.1/test/unit/nstime.c
Examining data/jemalloc-5.2.1/test/unit/pack.c
Examining data/jemalloc-5.2.1/test/unit/pages.c
Examining data/jemalloc-5.2.1/test/unit/ph.c
Examining data/jemalloc-5.2.1/test/unit/prng.c
Examining data/jemalloc-5.2.1/test/unit/prof_accum.c
Examining data/jemalloc-5.2.1/test/unit/prof_active.c
Examining data/jemalloc-5.2.1/test/unit/prof_gdump.c
Examining data/jemalloc-5.2.1/test/unit/prof_idump.c
Examining data/jemalloc-5.2.1/test/unit/prof_log.c
Examining data/jemalloc-5.2.1/test/unit/prof_reset.c
Examining data/jemalloc-5.2.1/test/unit/prof_tctx.c
Examining data/jemalloc-5.2.1/test/unit/prof_thread_name.c
Examining data/jemalloc-5.2.1/test/unit/ql.c
Examining data/jemalloc-5.2.1/test/unit/qr.c
Examining data/jemalloc-5.2.1/test/unit/rb.c
Examining data/jemalloc-5.2.1/test/unit/retained.c
Examining data/jemalloc-5.2.1/test/unit/rtree.c
Examining data/jemalloc-5.2.1/test/unit/safety_check.c
Examining data/jemalloc-5.2.1/test/unit/sc.c
Examining data/jemalloc-5.2.1/test/unit/seq.c
Examining data/jemalloc-5.2.1/test/unit/size_classes.c
Examining data/jemalloc-5.2.1/test/unit/slab.c
Examining data/jemalloc-5.2.1/test/unit/smoothstep.c
Examining data/jemalloc-5.2.1/test/unit/spin.c
Examining data/jemalloc-5.2.1/test/unit/stats.c
Examining data/jemalloc-5.2.1/test/unit/stats_print.c
Examining data/jemalloc-5.2.1/test/unit/test_hooks.c
Examining data/jemalloc-5.2.1/test/unit/ticker.c
Examining data/jemalloc-5.2.1/test/unit/tsd.c
Examining data/jemalloc-5.2.1/test/unit/witness.c
Examining data/jemalloc-5.2.1/test/unit/zero.c
Examining data/jemalloc-5.2.1/debian/tests/ex_stats_print.c

FINAL RESULTS:

data/jemalloc-5.2.1/include/jemalloc/internal/test_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, test_hooks_libc_hook)
data/jemalloc-5.2.1/include/jemalloc/internal/test_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, test_hooks_libc_hook)
data/jemalloc-5.2.1/src/jemalloc.c:980:13:  [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, PATH_MAX);
data/jemalloc-5.2.1/src/prof.c:433: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(new_node->name, name);
data/jemalloc-5.2.1/src/prof.c:2538: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(log_filename, filename);
data/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/test/unit/stats.c:226: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/jemalloc-5.2.1/include/jemalloc/internal/mutex.h:82: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/jemalloc-5.2.1/src/jemalloc.c:721: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/jemalloc-5.2.1/test/src/mtx.c:44:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&mtx->lock);
data/jemalloc-5.2.1/include/jemalloc/internal/arena_stats.h:134: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/jemalloc-5.2.1/include/jemalloc/internal/emitter.h:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt[FMT_SIZE];
data/jemalloc-5.2.1/include/jemalloc/internal/emitter.h:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SIZE];
data/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_inlines_c.h:156: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/include/jemalloc/internal/prof_externs.h:18: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/jemalloc-5.2.1/include/jemalloc/internal/seq.h:25: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, src, sizeof(type));					\
data/jemalloc-5.2.1/include/jemalloc/internal/seq.h:51:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, buf, sizeof(type));					\
data/jemalloc-5.2.1/include/jemalloc/internal/stats.h:25: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/jemalloc-5.2.1/include/jemalloc/internal/test_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, test_hooks_libc_hook)
data/jemalloc-5.2.1/include/jemalloc/internal/test_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, test_hooks_libc_hook)
data/jemalloc-5.2.1/src/arena.c:684: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/jemalloc-5.2.1/src/arena.c:1848: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/jemalloc-5.2.1/src/ctl.c:1443: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/jemalloc-5.2.1/src/ctl.c:1766: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/jemalloc-5.2.1/src/ctl.c:1768: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/jemalloc-5.2.1/src/ctl.c:1778: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/jemalloc-5.2.1/src/ctl.c:1779: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/jemalloc-5.2.1/src/ctl.c:2821: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/jemalloc-5.2.1/src/jemalloc.c:937: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 *
data/jemalloc-5.2.1/src/jemalloc.c:938:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
obtain_malloc_conf(unsigned which_source, char buf[PATH_MAX + 1]) {
data/jemalloc-5.2.1/src/jemalloc.c:1022: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.
    bool initial_call, const char *opts_cache[MALLOC_CONF_NSOURCES],
data/jemalloc-5.2.1/src/jemalloc.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 buf[PATH_MAX + 1]) {
data/jemalloc-5.2.1/src/jemalloc.c:1024:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *opts_explain[MALLOC_CONF_NSOURCES] = {
data/jemalloc-5.2.1/src/jemalloc.c:1441: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.
	const char *opts_cache[MALLOC_CONF_NSOURCES] = {NULL, NULL, NULL, NULL};
data/jemalloc-5.2.1/src/jemalloc.c:1442: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/jemalloc-5.2.1/src/large.c:312: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/src/pages.c:471: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/jemalloc-5.2.1/src/pages.c:496: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/jemalloc-5.2.1/src/pages.c:498: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/jemalloc-5.2.1/src/pages.c:561: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/jemalloc-5.2.1/src/pages.c:567: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/jemalloc-5.2.1/src/prof.c:43: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/jemalloc-5.2.1/src/prof.c:95: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 log_filename[
data/jemalloc-5.2.1/src/prof.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1];
data/jemalloc-5.2.1/src/prof.c:216: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/jemalloc-5.2.1/src/prof.c:396: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(new_node->vec, bt->vec, bt->len * sizeof(void *));
data/jemalloc-5.2.1/src/prof.c:840: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/jemalloc-5.2.1/src/prof.c:1302: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/jemalloc-5.2.1/src/prof.c:1316: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/jemalloc-5.2.1/src/prof.c:1340: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/jemalloc-5.2.1/src/prof.c:1678: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/jemalloc-5.2.1/src/prof.c:1685: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/jemalloc-5.2.1/src/prof.c:1687: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/jemalloc-5.2.1/src/prof.c:2014: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/jemalloc-5.2.1/src/prof.c:2073:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/jemalloc-5.2.1/src/prof.c:2090: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/jemalloc-5.2.1/src/prof.c:2130:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/jemalloc-5.2.1/src/prof.c:2613: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[2 * sizeof(intptr_t) + 3];
data/jemalloc-5.2.1/src/prof.c:2812: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/jemalloc-5.2.1/src/prof.c:2923: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/jemalloc-5.2.1/src/safety_check.c:11: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/src/stats.c:71: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/jemalloc-5.2.1/src/stats.c:102: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/jemalloc-5.2.1/src/stats.c:137: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/jemalloc-5.2.1/src/stats.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 cmd[MUTEX_CTL_STR_MAX_LENGTH];
data/jemalloc-5.2.1/src/stats.c:167: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/jemalloc-5.2.1/src/stats.c:171: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/jemalloc-5.2.1/src/stats.c:200: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/jemalloc-5.2.1/src/stats.c:413:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char util[6];
data/jemalloc-5.2.1/src/stats.c:1377: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/test/integration/aligned_alloc.c:115: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/jemalloc-5.2.1/test/integration/posix_memalign.c:96: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/test/unit/arena_reset.c:313: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/jemalloc-5.2.1/test/unit/arena_reset.c:314: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/jemalloc-5.2.1/test/unit/arena_reset.c:338: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/test/unit/extent_util.c:64: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(out_ref, out, out_sz);
data/jemalloc-5.2.1/test/unit/extent_util.c:237: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(out_ref, out, 3 * sizeof(size_t));
data/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/test/unit/hook.c:69: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(arg_args_raw, args_raw, sizeof(uintptr_t) * nargs);
data/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/test/unit/stats.c:258: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/include/jemalloc/internal/test_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, test_hooks_libc_hook)
data/jemalloc-5.2.1/include/jemalloc/internal/test_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, test_hooks_libc_hook)
data/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/src/ckh.c:544: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/jemalloc-5.2.1/src/ctl.c:1220: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/jemalloc-5.2.1/src/jemalloc.c:160: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/jemalloc-5.2.1/src/jemalloc.c:755: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/jemalloc-5.2.1/src/jemalloc.c:775: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/jemalloc-5.2.1/src/jemalloc.c:912: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 (strncmp(k, experimental, strlen(experimental)) == 0) {
data/jemalloc-5.2.1/src/jemalloc.c:1163: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/jemalloc-5.2.1/src/jemalloc.c:1388: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/src/prof.c:418:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t sz = offsetof(prof_thr_node_t, name) + strlen(name) + 1;
data/jemalloc-5.2.1/src/prof.c:1286: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/jemalloc-5.2.1/src/prof.c:2535: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).
	} else if (strlen(filename) >= buf_size) {
data/jemalloc-5.2.1/src/prof.c:2567:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t bytes = strlen(to_write);
data/jemalloc-5.2.1/src/prof.c:2802: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/jemalloc-5.2.1/src/prof.c:2848: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/jemalloc-5.2.1/src/tsd.c:466:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#ifdef read
data/jemalloc-5.2.1/src/tsd.c:467:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  undef read
data/jemalloc-5.2.1/src/tsd.c:478: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/test/unit/hook.c:290:8:  [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.
	ptr = memalign(1024, 1);
data/jemalloc-5.2.1/test/unit/mallctl.c:13: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/jemalloc-5.2.1/test/unit/mallctl.c:54: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/jemalloc-5.2.1/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/jemalloc-5.2.1/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/jemalloc-5.2.1/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);

ANALYSIS SUMMARY:

Hits = 175
Lines analyzed = 58079 in approximately 1.50 seconds (38829 lines/second)
Physical Source Lines of Code (SLOC) = 44357
Hits@level = [0]   8 [1]  34 [2] 130 [3]   3 [4]   5 [5]   3
Hits@level+ = [0+] 183 [1+] 175 [2+] 141 [3+]  11 [4+]   8 [5+]   3
Hits/KSLOC@level+ = [0+] 4.12562 [1+] 3.94526 [2+] 3.17875 [3+] 0.247988 [4+] 0.180355 [5+] 0.0676331
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.