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/ccache-4.1/src/Args.cpp
Examining data/ccache-4.1/src/Args.hpp
Examining data/ccache-4.1/src/ArgsInfo.hpp
Examining data/ccache-4.1/src/AtomicFile.cpp
Examining data/ccache-4.1/src/AtomicFile.hpp
Examining data/ccache-4.1/src/CacheEntryReader.cpp
Examining data/ccache-4.1/src/CacheEntryReader.hpp
Examining data/ccache-4.1/src/CacheEntryWriter.cpp
Examining data/ccache-4.1/src/CacheEntryWriter.hpp
Examining data/ccache-4.1/src/CacheFile.cpp
Examining data/ccache-4.1/src/CacheFile.hpp
Examining data/ccache-4.1/src/Checksum.hpp
Examining data/ccache-4.1/src/Compression.cpp
Examining data/ccache-4.1/src/Compression.hpp
Examining data/ccache-4.1/src/Compressor.cpp
Examining data/ccache-4.1/src/Compressor.hpp
Examining data/ccache-4.1/src/Config.cpp
Examining data/ccache-4.1/src/Config.hpp
Examining data/ccache-4.1/src/Context.cpp
Examining data/ccache-4.1/src/Context.hpp
Examining data/ccache-4.1/src/Counters.cpp
Examining data/ccache-4.1/src/Counters.hpp
Examining data/ccache-4.1/src/Decompressor.cpp
Examining data/ccache-4.1/src/Decompressor.hpp
Examining data/ccache-4.1/src/Depfile.cpp
Examining data/ccache-4.1/src/Depfile.hpp
Examining data/ccache-4.1/src/Digest.hpp
Examining data/ccache-4.1/src/Fd.hpp
Examining data/ccache-4.1/src/File.hpp
Examining data/ccache-4.1/src/Finalizer.hpp
Examining data/ccache-4.1/src/FormatNonstdStringView.hpp
Examining data/ccache-4.1/src/Hash.cpp
Examining data/ccache-4.1/src/Hash.hpp
Examining data/ccache-4.1/src/InodeCache.cpp
Examining data/ccache-4.1/src/InodeCache.hpp
Examining data/ccache-4.1/src/Lockfile.cpp
Examining data/ccache-4.1/src/Lockfile.hpp
Examining data/ccache-4.1/src/Logging.cpp
Examining data/ccache-4.1/src/Logging.hpp
Examining data/ccache-4.1/src/Manifest.cpp
Examining data/ccache-4.1/src/Manifest.hpp
Examining data/ccache-4.1/src/MiniTrace.cpp
Examining data/ccache-4.1/src/MiniTrace.hpp
Examining data/ccache-4.1/src/NonCopyable.hpp
Examining data/ccache-4.1/src/NullCompressor.cpp
Examining data/ccache-4.1/src/NullCompressor.hpp
Examining data/ccache-4.1/src/NullDecompressor.cpp
Examining data/ccache-4.1/src/NullDecompressor.hpp
Examining data/ccache-4.1/src/ProgressBar.cpp
Examining data/ccache-4.1/src/ProgressBar.hpp
Examining data/ccache-4.1/src/Result.cpp
Examining data/ccache-4.1/src/Result.hpp
Examining data/ccache-4.1/src/ResultDumper.cpp
Examining data/ccache-4.1/src/ResultDumper.hpp
Examining data/ccache-4.1/src/ResultExtractor.cpp
Examining data/ccache-4.1/src/ResultExtractor.hpp
Examining data/ccache-4.1/src/ResultRetriever.cpp
Examining data/ccache-4.1/src/ResultRetriever.hpp
Examining data/ccache-4.1/src/SignalHandler.cpp
Examining data/ccache-4.1/src/SignalHandler.hpp
Examining data/ccache-4.1/src/Stat.cpp
Examining data/ccache-4.1/src/Stat.hpp
Examining data/ccache-4.1/src/Statistics.cpp
Examining data/ccache-4.1/src/Statistics.hpp
Examining data/ccache-4.1/src/StdMakeUnique.hpp
Examining data/ccache-4.1/src/TemporaryFile.cpp
Examining data/ccache-4.1/src/TemporaryFile.hpp
Examining data/ccache-4.1/src/ThreadPool.cpp
Examining data/ccache-4.1/src/ThreadPool.hpp
Examining data/ccache-4.1/src/UmaskScope.hpp
Examining data/ccache-4.1/src/Util.cpp
Examining data/ccache-4.1/src/Util.hpp
Examining data/ccache-4.1/src/Win32Util.cpp
Examining data/ccache-4.1/src/Win32Util.hpp
Examining data/ccache-4.1/src/ZstdCompressor.cpp
Examining data/ccache-4.1/src/ZstdCompressor.hpp
Examining data/ccache-4.1/src/ZstdDecompressor.cpp
Examining data/ccache-4.1/src/ZstdDecompressor.hpp
Examining data/ccache-4.1/src/argprocessing.cpp
Examining data/ccache-4.1/src/argprocessing.hpp
Examining data/ccache-4.1/src/assertions.cpp
Examining data/ccache-4.1/src/assertions.hpp
Examining data/ccache-4.1/src/ccache.cpp
Examining data/ccache-4.1/src/ccache.hpp
Examining data/ccache-4.1/src/cleanup.cpp
Examining data/ccache-4.1/src/cleanup.hpp
Examining data/ccache-4.1/src/compopt.cpp
Examining data/ccache-4.1/src/compopt.hpp
Examining data/ccache-4.1/src/compress.cpp
Examining data/ccache-4.1/src/compress.hpp
Examining data/ccache-4.1/src/exceptions.hpp
Examining data/ccache-4.1/src/execute.cpp
Examining data/ccache-4.1/src/execute.hpp
Examining data/ccache-4.1/src/fmtmacros.hpp
Examining data/ccache-4.1/src/hashutil.cpp
Examining data/ccache-4.1/src/hashutil.hpp
Examining data/ccache-4.1/src/language.cpp
Examining data/ccache-4.1/src/language.hpp
Examining data/ccache-4.1/src/macroskip.hpp
Examining data/ccache-4.1/src/main.cpp
Examining data/ccache-4.1/src/system.hpp
Examining data/ccache-4.1/src/third_party/base32hex.c
Examining data/ccache-4.1/src/third_party/base32hex.h
Examining data/ccache-4.1/src/third_party/blake3/blake3.c
Examining data/ccache-4.1/src/third_party/blake3/blake3.h
Examining data/ccache-4.1/src/third_party/blake3/blake3_avx2.c
Examining data/ccache-4.1/src/third_party/blake3/blake3_avx512.c
Examining data/ccache-4.1/src/third_party/blake3/blake3_cpu_supports_avx2.h
Examining data/ccache-4.1/src/third_party/blake3/blake3_dispatch.c
Examining data/ccache-4.1/src/third_party/blake3/blake3_dispatch_ccache.c
Examining data/ccache-4.1/src/third_party/blake3/blake3_impl.h
Examining data/ccache-4.1/src/third_party/blake3/blake3_neon.c
Examining data/ccache-4.1/src/third_party/blake3/blake3_portable.c
Examining data/ccache-4.1/src/third_party/blake3/blake3_sse2.c
Examining data/ccache-4.1/src/third_party/blake3/blake3_sse41.c
Examining data/ccache-4.1/src/third_party/doctest.h
Examining data/ccache-4.1/src/third_party/fmt/core.h
Examining data/ccache-4.1/src/third_party/fmt/format-inl.h
Examining data/ccache-4.1/src/third_party/fmt/format.h
Examining data/ccache-4.1/src/third_party/format.cpp
Examining data/ccache-4.1/src/third_party/getopt_long.c
Examining data/ccache-4.1/src/third_party/getopt_long.h
Examining data/ccache-4.1/src/third_party/minitrace.c
Examining data/ccache-4.1/src/third_party/minitrace.h
Examining data/ccache-4.1/src/third_party/nonstd/optional.hpp
Examining data/ccache-4.1/src/third_party/nonstd/string_view.hpp
Examining data/ccache-4.1/src/third_party/win32/getopt.c
Examining data/ccache-4.1/src/third_party/win32/getopt.h
Examining data/ccache-4.1/src/third_party/xxh_x86dispatch.c
Examining data/ccache-4.1/src/third_party/xxh_x86dispatch.h
Examining data/ccache-4.1/src/third_party/xxhash.c
Examining data/ccache-4.1/src/third_party/xxhash.h
Examining data/ccache-4.1/unittest/TestUtil.cpp
Examining data/ccache-4.1/unittest/TestUtil.hpp
Examining data/ccache-4.1/unittest/main.cpp
Examining data/ccache-4.1/unittest/test_Args.cpp
Examining data/ccache-4.1/unittest/test_AtomicFile.cpp
Examining data/ccache-4.1/unittest/test_Checksum.cpp
Examining data/ccache-4.1/unittest/test_Compression.cpp
Examining data/ccache-4.1/unittest/test_Config.cpp
Examining data/ccache-4.1/unittest/test_Counters.cpp
Examining data/ccache-4.1/unittest/test_Depfile.cpp
Examining data/ccache-4.1/unittest/test_FormatNonstdStringView.cpp
Examining data/ccache-4.1/unittest/test_Hash.cpp
Examining data/ccache-4.1/unittest/test_InodeCache.cpp
Examining data/ccache-4.1/unittest/test_Lockfile.cpp
Examining data/ccache-4.1/unittest/test_NullCompression.cpp
Examining data/ccache-4.1/unittest/test_Stat.cpp
Examining data/ccache-4.1/unittest/test_Statistics.cpp
Examining data/ccache-4.1/unittest/test_Util.cpp
Examining data/ccache-4.1/unittest/test_Win32Util.cpp
Examining data/ccache-4.1/unittest/test_ZstdCompression.cpp
Examining data/ccache-4.1/unittest/test_argprocessing.cpp
Examining data/ccache-4.1/unittest/test_ccache.cpp
Examining data/ccache-4.1/unittest/test_compopt.cpp
Examining data/ccache-4.1/unittest/test_hashutil.cpp

FINAL RESULTS:

data/ccache-4.1/src/Util.cpp:297:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
      if (chmod(dest.c_str(), 0444) != 0) {
data/ccache-4.1/src/Util.cpp:1160:17:  [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.
  ssize_t len = readlink(path.c_str(), buffer.get(), buffer_size - 1);
data/ccache-4.1/src/Util.cpp:1207:19:  [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.
    ssize_t len = readlink(path.c_str(), buffer, buffer_size - 1);
data/ccache-4.1/unittest/test_hashutil.cpp:80:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  chmod("stderr.sh", 0555);
data/ccache-4.1/unittest/test_hashutil.cpp:98:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  chmod("foo.sh", 0555);
data/ccache-4.1/src/TemporaryFile.cpp:51:3:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
  mktemp(name_template);
data/ccache-4.1/src/ccache.cpp:297:31:  [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.
                         bool system,
data/ccache-4.1/src/ccache.cpp:312:7:  [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.
  if (system && (ctx.config.sloppiness() & SLOPPY_SYSTEM_HEADERS)) {
data/ccache-4.1/src/ccache.cpp:428:28:  [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.
                      bool system,
data/ccache-4.1/src/ccache.cpp:431:54:  [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.
  if (!do_remember_include_file(ctx, path, cpp_hash, system, depend_mode_hash)
data/ccache-4.1/src/ccache.cpp:585:50:  [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.
      remember_include_file(ctx, inc_path, hash, system, nullptr);
data/ccache-4.1/src/ccache.cpp:2234:5:  [4] (shell) execv:
  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.
    execv(execv_argv[0], const_cast<char* const*>(execv_argv.data()));
data/ccache-4.1/src/execute.cpp:178:10:  [4] (shell) execv:
  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.
    exit(execv(argv[0], const_cast<char* const*>(argv)));
data/ccache-4.1/src/execute.cpp:263:43:  [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 (st1 && st2 && st2.is_regular() && access(fname.c_str(), X_OK) == 0) {
data/ccache-4.1/src/hashutil.cpp:469:11:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    _exit(execvp(argv[0], const_cast<char* const*>(argv.data())));
data/ccache-4.1/src/system.hpp:143:11:  [4] (shell) execv:
  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 execv(a, b) win32execute(a, b, 0, -1, -1)
data/ccache-4.1/src/third_party/doctest.h:3347:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        std::sprintf(buf, fmt, in);                                                                \
data/ccache-4.1/src/third_party/fmt/format-inl.h:61:24:  [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 FMT_SNPRINTF snprintf
data/ccache-4.1/src/third_party/minitrace.c:211:4:  [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(str_pool[i], str);
data/ccache-4.1/src/MiniTrace.cpp:39:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char* tmpdir = getenv("TMPDIR");
data/ccache-4.1/src/Util.cpp:448:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        const char* value = getenv(name.c_str());
data/ccache-4.1/src/Util.cpp:608:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  auto pwd = getenv("PWD");
data/ccache-4.1/src/Util.cpp:678:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char* p = getenv("HOME");
data/ccache-4.1/src/Util.cpp:683:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  p = getenv("APPDATA");
data/ccache-4.1/src/Util.cpp:1178:14:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  resolved = realpath(path.c_str(), buffer);
data/ccache-4.1/src/argprocessing.cpp:93:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char* term_env = getenv("TERM");
data/ccache-4.1/src/argprocessing.cpp:883:34:  [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* dependencies_env = getenv("DEPENDENCIES_OUTPUT");
data/ccache-4.1/src/argprocessing.cpp:886:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    dependencies_env = getenv("SUNPRO_DEPENDENCIES");
data/ccache-4.1/src/ccache.cpp:625: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.
  bool debug_included = getenv("CCACHE_DEBUG_INCLUDED");
data/ccache-4.1/src/ccache.cpp:666: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.
  bool debug_included = getenv("CCACHE_DEBUG_INCLUDED");
data/ccache-4.1/src/ccache.cpp:1281: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.
    const char* value = getenv(name);
data/ccache-4.1/src/ccache.cpp:1294:23:  [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* v = getenv(*p);
data/ccache-4.1/src/ccache.cpp:1377:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* gcc_colors = getenv("GCC_COLORS");
data/ccache-4.1/src/ccache.cpp:1659:23:  [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* v = getenv(*p);
data/ccache-4.1/src/ccache.cpp:1871:42:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char* const env_xdg_cache_home = getenv("XDG_CACHE_HOME");
data/ccache-4.1/src/ccache.cpp:1872:43:  [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* const env_xdg_config_home = getenv("XDG_CONFIG_HOME");
data/ccache-4.1/src/ccache.cpp:1874:39:  [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* env_ccache_configpath = getenv("CCACHE_CONFIGPATH");
data/ccache-4.1/src/ccache.cpp:1879:48:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* const env_ccache_configpath2 = getenv("CCACHE_CONFIGPATH2");
data/ccache-4.1/src/ccache.cpp:1889:40:  [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* const env_ccache_dir = getenv("CCACHE_DIR");
data/ccache-4.1/src/ccache.cpp:1965:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("CCACHE_INTERNAL_TRACE")) {
data/ccache-4.1/src/ccache.cpp:2513:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt_long(argc,
data/ccache-4.1/src/execute.cpp:48:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char* path_env = getenv("PATH");
data/ccache-4.1/src/execute.cpp:53: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.
  if (sh.empty() && getenv("CCACHE_DETECT_SHEBANG")) {
data/ccache-4.1/src/execute.cpp:218: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("PATH");
data/ccache-4.1/src/hashutil.cpp:396:59:  [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.
  std::string path = find_executable_in_path(args[0], "", getenv("PATH"));
data/ccache-4.1/src/third_party/doctest.h:6054:18:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            std::srand(p->rand_seed);
data/ccache-4.1/src/third_party/getopt_long.c:54:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long(int argc, char *const argv[],
data/ccache-4.1/src/third_party/getopt_long.h:26:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long(int argc, char *const argv[],
data/ccache-4.1/src/third_party/minitrace.c:18:34:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
#define pthread_mutex_init(a, b) InitializeCriticalSection(a)
data/ccache-4.1/src/third_party/minitrace.c:19:31:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#define pthread_mutex_lock(a) EnterCriticalSection(a)
data/ccache-4.1/src/third_party/win32/getopt.c:118:45:  [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.
	d->__posixly_correct = posixly_correct | !!getenv("POSIXLY_CORRECT");
data/ccache-4.1/src/third_party/win32/getopt.h:124:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		#define getopt getopt_w
data/ccache-4.1/src/third_party/win32/getopt.h:125:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		#define getopt_long getopt_long_w
data/ccache-4.1/src/third_party/win32/getopt.h:130:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		#define getopt getopt_a
data/ccache-4.1/src/third_party/win32/getopt.h:131:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		#define getopt_long getopt_long_a
data/ccache-4.1/src/CacheEntryWriter.cpp:34: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(header_bytes, magic, 4);
data/ccache-4.1/src/File.hpp:37: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).
  void open(const std::string& path, const char* mode);
data/ccache-4.1/src/File.hpp:50:3:  [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(path, mode);
data/ccache-4.1/src/File.hpp:72: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).
File::open(const std::string& path, const char* mode)
data/ccache-4.1/src/File.hpp:75: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).
  m_file = fopen(path.c_str(), mode);
data/ccache-4.1/src/Hash.cpp:115: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).
  Fd fd(open(path.c_str(), O_RDONLY | O_BINARY));
data/ccache-4.1/src/InodeCache.cpp:132: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).
  Fd fd(open(inode_cache_file.c_str(), O_RDWR));
data/ccache-4.1/src/Logging.cpp:81:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char prefix[200];
data/ccache-4.1/src/Logging.cpp:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char timestamp[100];
data/ccache-4.1/src/Logging.cpp:143: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).
    logfile.open(logfile_path, "a");
data/ccache-4.1/src/MiniTrace.cpp:44:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char dirbuf[PATH_MAX];
data/ccache-4.1/src/Result.cpp:388: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).
  Fd file(open(path.c_str(), O_RDONLY | O_BINARY));
data/ccache-4.1/src/ResultExtractor.cpp:52: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).
      open(m_dest_path.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666));
data/ccache-4.1/src/ResultRetriever.cpp:115: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(dest_path.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666));
data/ccache-4.1/src/Statistics.cpp:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[100] = "?";
data/ccache-4.1/src/Statistics.cpp:290:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char timestamp[100] = "?";
data/ccache-4.1/src/TemporaryFile.cpp:45:1:  [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).
mkstemp(char* name_template)
data/ccache-4.1/src/TemporaryFile.cpp:55: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).
  return open(name_template, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600);
data/ccache-4.1/src/TemporaryFile.cpp:65:11:  [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 = Fd(mkstemp(&path[0]));
data/ccache-4.1/src/Util.cpp:230:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  Fd src_fd(open(src.c_str(), O_RDONLY));
data/ccache-4.1/src/Util.cpp:243: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(dest.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666));
data/ccache-4.1/src/Util.cpp:349:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  Fd src_fd(open(src.c_str(), O_RDONLY));
data/ccache-4.1/src/Util.cpp:362: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(dest.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666));
data/ccache-4.1/src/Util.cpp:588:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PATH_MAX];
data/ccache-4.1/src/Util.cpp:702:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char hostname[260] = "";
data/ccache-4.1/src/Util.cpp:709: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(hostname, "unknown");
data/ccache-4.1/src/Util.cpp:1092:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[READ_BUFFER_SIZE];
data/ccache-4.1/src/Util.cpp:1118: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).
  Fd fd(open(path.c_str(), O_RDONLY | O_BINARY));
data/ccache-4.1/src/ZstdDecompressor.hpp:43:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char m_input_buffer[READ_BUFFER_SIZE];
data/ccache-4.1/src/ccache.cpp:705: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).
      tmp_stdout.fd = Fd(open(
data/ccache-4.1/src/ccache.cpp:712: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).
      tmp_stderr.fd = Fd(open(
data/ccache-4.1/src/ccache.cpp:2524:41:  [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 fd(arg == "-" ? STDIN_FILENO : open(arg.c_str(), O_RDONLY));
data/ccache-4.1/src/compress.cpp:183:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[READ_BUFFER_SIZE];
data/ccache-4.1/src/execute.cpp:57:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[10] = {0};
data/ccache-4.1/src/execute.cpp: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 namebuf[MAX_PATH];
data/ccache-4.1/src/hashutil.cpp:273:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[26];
data/ccache-4.1/src/third_party/base32hex.c:52: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 buf[255];
data/ccache-4.1/src/third_party/blake3/blake3.c:10:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(self->cv, key, BLAKE3_KEY_LEN);
data/ccache-4.1/src/third_party/blake3/blake3.c:20:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(self->cv, key, BLAKE3_KEY_LEN);
data/ccache-4.1/src/third_party/blake3/blake3.c:39: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(dest, input, take);
data/ccache-4.1/src/third_party/blake3/blake3.c:65: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.input_cv, input_cv, 32);
data/ccache-4.1/src/third_party/blake3/blake3.c:66: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.block, block, BLAKE3_BLOCK_LEN);
data/ccache-4.1/src/third_party/blake3/blake3.c:81: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(cv_words, self->input_cv, 32);
data/ccache-4.1/src/third_party/blake3/blake3.c:102:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, wide_buf + offset_within_block, memcpy_len);
data/ccache-4.1/src/third_party/blake3/blake3.c:236: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(&out[parents_array_len * BLAKE3_OUT_LEN],
data/ccache-4.1/src/third_party/blake3/blake3.c:311: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(out, cv_array, 2 * BLAKE3_OUT_LEN);
data/ccache-4.1/src/third_party/blake3/blake3.c:349: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(cv_array, out_array, num_cvs * BLAKE3_OUT_LEN);
data/ccache-4.1/src/third_party/blake3/blake3.c:351: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, cv_array, 2 * BLAKE3_OUT_LEN);
data/ccache-4.1/src/third_party/blake3/blake3.c:356:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(self->key, key, BLAKE3_KEY_LEN);
data/ccache-4.1/src/third_party/blake3/blake3.c:442:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&self->cv_stack[self->cv_stack_len * BLAKE3_OUT_LEN], new_cv,
data/ccache-4.1/src/third_party/blake3/blake3.c:598: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(parent_block, &self->cv_stack[cvs_remaining * 32], 32);
data/ccache-4.1/src/third_party/blake3/blake3_avx512.c:1144: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(cv, key, BLAKE3_KEY_LEN);
data/ccache-4.1/src/third_party/blake3/blake3_avx512.c:1156: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, cv, BLAKE3_OUT_LEN);
data/ccache-4.1/src/third_party/blake3/blake3_neon.c:9: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(&x, src, 16);
data/ccache-4.1/src/third_party/blake3/blake3_neon.c:15: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(dest, &src, 16);
data/ccache-4.1/src/third_party/blake3/blake3_neon.c:303: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(cv, key, BLAKE3_KEY_LEN);
data/ccache-4.1/src/third_party/blake3/blake3_neon.c:318:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(out, cv, BLAKE3_OUT_LEN);
data/ccache-4.1/src/third_party/blake3/blake3_portable.c:130: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(cv, key, BLAKE3_KEY_LEN);
data/ccache-4.1/src/third_party/blake3/blake3_sse2.c:525: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(cv, key, BLAKE3_KEY_LEN);
data/ccache-4.1/src/third_party/blake3/blake3_sse2.c:537: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, cv, BLAKE3_OUT_LEN);
data/ccache-4.1/src/third_party/blake3/blake3_sse41.c:519: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(cv, key, BLAKE3_KEY_LEN);
data/ccache-4.1/src/third_party/blake3/blake3_sse41.c:531: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, cv, BLAKE3_OUT_LEN);
data/ccache-4.1/src/third_party/doctest.h:485: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[len];
data/ccache-4.1/src/third_party/doctest.h:2879:65:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    void my_memcpy(void* dest, const void* src, unsigned num) { memcpy(dest, src, num); }
data/ccache-4.1/src/third_party/doctest.h:3056: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, other.buf, len);
data/ccache-4.1/src/third_party/doctest.h:3062: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(data.ptr, other.data.ptr, data.size + 1);
data/ccache-4.1/src/third_party/doctest.h:3082: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, in, in_size + 1);
data/ccache-4.1/src/third_party/doctest.h:3089: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(data.ptr, in, in_size + 1);
data/ccache-4.1/src/third_party/doctest.h:3114: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 + my_old_size, other.c_str(), other_size + 1);
data/ccache-4.1/src/third_party/doctest.h:3120: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(temp, buf, my_old_size); // skip the +1 ('\0') for speed
data/ccache-4.1/src/third_party/doctest.h:3127: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(data.ptr + my_old_size, other.c_str(), other_size + 1);
data/ccache-4.1/src/third_party/doctest.h:3133: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(data.ptr + my_old_size, other.c_str(), other_size + 1);
data/ccache-4.1/src/third_party/doctest.h:3142: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(temp, data.ptr, my_old_size); // skip the +1 ('\0') for speed
data/ccache-4.1/src/third_party/doctest.h:3149: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(data.ptr + my_old_size, other.c_str(), other_size + 1);
data/ccache-4.1/src/third_party/doctest.h:3160: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, other.buf, len);
data/ccache-4.1/src/third_party/doctest.h:3170: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, other.buf, len);
data/ccache-4.1/src/third_party/doctest.h:3346: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/ccache-4.1/src/third_party/doctest.h:4084:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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             altStackMem[4 * SIGSTKSZ];
data/ccache-4.1/src/third_party/doctest.h:5007: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 timeStamp[timeStampSize];
data/ccache-4.1/src/third_party/doctest.h:5791: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 theInt = std::atoi(parsedValue.c_str()); // NOLINT
data/ccache-4.1/src/third_party/doctest.h:5990: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).
        fstr.open(p->out.c_str(), std::fstream::out);
data/ccache-4.1/src/third_party/fmt/format-inl.h:1157:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[max_format_size];
data/ccache-4.1/src/third_party/fmt/format-inl.h:1346:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 * block_size - 1] = {};
data/ccache-4.1/src/third_party/fmt/format-inl.h:1347: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, to_unsigned(num_chars_left));
data/ccache-4.1/src/third_party/fmt/format.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 data[sizeof(u)];
data/ccache-4.1/src/third_party/fmt/format.h:257:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char value[sizeof(void*)];
data/ccache-4.1/src/third_party/fmt/format.h:770:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 reset_color[5];
data/ccache-4.1/src/third_party/fmt/format.h:771:16:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 wchar_t wreset_color[5];
data/ccache-4.1/src/third_party/fmt/format.h:773:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 left_padding_shifts[5];
data/ccache-4.1/src/third_party/fmt/format.h:774:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 right_padding_shifts[5];
data/ccache-4.1/src/third_party/fmt/format.h:896:49:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void copy2(char* dst, const char* src) { memcpy(dst, src, 2); }
data/ccache-4.1/src/third_party/fmt/format.h:979:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[num_bits<UInt>() / BASE_BITS + 1];
data/ccache-4.1/src/third_party/fmt/format.h:1487:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];
data/ccache-4.1/src/third_party/fmt/format.h:1577:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char digits[40];
data/ccache-4.1/src/third_party/fmt/format.h:3027: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.
  mutable char buffer_[buffer_size];
data/ccache-4.1/src/third_party/fmt/format.h:3440:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[max_size > 5 ? max_size : 5];
data/ccache-4.1/src/third_party/minitrace.c:69: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 *str_pool[100];
data/ccache-4.1/src/third_party/minitrace.c:182: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).
	mtr_init_from_stream(fopen(json_file, "wb"));
data/ccache-4.1/src/third_party/minitrace.c:241: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 linebuf[1024];
data/ccache-4.1/src/third_party/minitrace.c:242: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 arg_buf[1024];
data/ccache-4.1/src/third_party/minitrace.c:243: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 id_buf[256];
data/ccache-4.1/src/third_party/minitrace.c:290:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char temp[256];
data/ccache-4.1/src/third_party/minitrace.c:344: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(&x, id, sizeof(double));
data/ccache-4.1/src/third_party/nonstd/optional.hpp:767: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.
    typedef struct { unsigned char data[ sizeof(value_type) ]; } aligned_storage_t;
data/ccache-4.1/src/third_party/xxhash.h:354: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.
typedef struct { unsigned char digest[4]; } XXH32_canonical_t;
data/ccache-4.1/src/third_party/xxhash.h:399: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.
typedef struct { unsigned char digest[sizeof(XXH64_hash_t)]; } XXH64_canonical_t;
data/ccache-4.1/src/third_party/xxhash.h:588: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.
typedef struct { unsigned char digest[sizeof(XXH128_hash_t)]; } XXH128_canonical_t;
data/ccache-4.1/src/third_party/xxhash.h:666:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   XXH_ALIGN_MEMBER(64, unsigned char customSecret[XXH3_SECRET_DEFAULT_SIZE]);
data/ccache-4.1/src/third_party/xxhash.h:667:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   XXH_ALIGN_MEMBER(64, unsigned char buffer[XXH3_INTERNALBUFFER_SIZE]);
data/ccache-4.1/src/third_party/xxhash.h:916:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return memcpy(dest,src,size);
data/ccache-4.1/src/third_party/xxhash.h:1428: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(dstState, srcState, sizeof(*dstState));
data/ccache-4.1/src/third_party/xxhash.h:1440: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(statePtr, &state, sizeof(state) - sizeof(state.reserved));
data/ccache-4.1/src/third_party/xxhash.h:1547: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, &hash, sizeof(*dst));
data/ccache-4.1/src/third_party/xxhash.h:1969: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(dstState, srcState, sizeof(*dstState));
data/ccache-4.1/src/third_party/xxhash.h:1981: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(statePtr, &state, sizeof(state) - sizeof(state.reserved64));
data/ccache-4.1/src/third_party/xxhash.h:2077: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, &hash, sizeof(*dst));
data/ccache-4.1/src/third_party/xxhash.h:2451:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&ret, ptr, sizeof(xxh_u64x2));
data/ccache-4.1/src/third_party/xxhash.h:2986: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, &v64, sizeof(v64));
data/ccache-4.1/src/third_party/xxhash.h:3968: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_state, src_state, sizeof(*dst_state));
data/ccache-4.1/src/third_party/xxhash.h:4112: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(state->buffer + sizeof(state->buffer) - XXH_STRIPE_LEN, input - XXH_STRIPE_LEN, XXH_STRIPE_LEN);
data/ccache-4.1/src/third_party/xxhash.h:4141: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(acc, state->acc, sizeof(state->acc));
data/ccache-4.1/src/third_party/xxhash.h:4158: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(lastStripe, state->buffer + sizeof(state->buffer) - catchupSize, catchupSize);
data/ccache-4.1/src/third_party/xxhash.h:4159: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(lastStripe + catchupSize, state->buffer, state->bufferedSize);
data/ccache-4.1/src/third_party/xxhash.h:4191: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(secretBuffer, XXH3_kSecret, XXH_SECRET_DEFAULT_SIZE);
data/ccache-4.1/src/third_party/xxhash.h:4210: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(seeds, customSeed, toFill);
data/ccache-4.1/src/third_party/xxhash.h:4213: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((char*)seeds + filled, seeds, toFill);
data/ccache-4.1/src/third_party/xxhash.h:4218: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(secretBuffer, &scrambler, sizeof(scrambler));
data/ccache-4.1/src/third_party/xxhash.h:4224: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((char*)secretBuffer + segmentStart, &segment, sizeof(segment));
data/ccache-4.1/src/third_party/xxhash.h:4738: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, &hash.high64, sizeof(hash.high64));
data/ccache-4.1/src/third_party/xxhash.h:4739:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)dst + sizeof(hash.high64), &hash.low64, sizeof(hash.low64));
data/ccache-4.1/unittest/test_NullCompression.cpp:42:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f.open("data.uncompressed", "r");
data/ccache-4.1/unittest/test_NullCompression.cpp:46:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];
data/ccache-4.1/unittest/test_Util.cpp:227:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    Util::fallocate(Fd(open(filename, O_RDWR, S_IRUSR | S_IWUSR)).get(), 5000)
data/ccache-4.1/unittest/test_Util.cpp:232:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    Util::fallocate(Fd(open(filename, O_RDWR, S_IRUSR | S_IWUSR)).get(), 20000)
data/ccache-4.1/unittest/test_ZstdCompression.cpp:42:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f.open("data.zstd", "rb");
data/ccache-4.1/unittest/test_ZstdCompression.cpp:46:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];
data/ccache-4.1/unittest/test_ZstdCompression.cpp:79:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f.open("data.zstd", "rb");
data/ccache-4.1/unittest/test_ZstdCompression.cpp:83:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[sizeof(data)];
data/ccache-4.1/unittest/test_ZstdCompression.cpp:101:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data[100000];
data/ccache-4.1/unittest/test_ZstdCompression.cpp:112:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f.open("data.zstd", "rb");
data/ccache-4.1/unittest/test_ZstdCompression.cpp:116:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[sizeof(data)];
data/ccache-4.1/unittest/test_argprocessing.cpp:42:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char volume[4]; // "C:\"
data/ccache-4.1/src/CacheEntryReader.cpp:71:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
CacheEntryReader::read(void* data, size_t count)
data/ccache-4.1/src/CacheEntryReader.cpp:73:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  m_decompressor->read(data, count);
data/ccache-4.1/src/CacheEntryReader.cpp:83:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read(buffer, sizeof(buffer));
data/ccache-4.1/src/CacheEntryReader.hpp:58:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void read(void* data, size_t count);
data/ccache-4.1/src/CacheEntryReader.hpp:66:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  template<typename T> void read(T& value);
data/ccache-4.1/src/CacheEntryReader.hpp:104:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
CacheEntryReader::read(T& value)
data/ccache-4.1/src/CacheEntryReader.hpp:107:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read(buffer, sizeof(T));
data/ccache-4.1/src/Config.cpp:81:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask,
data/ccache-4.1/src/Config.cpp:121:25:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  {"umask", ConfigItem::umask},
data/ccache-4.1/src/Config.cpp:338:23:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
format_umask(uint32_t umask)
data/ccache-4.1/src/Config.cpp:343:26:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    return FMT("{:03o}", umask);
data/ccache-4.1/src/Config.cpp:627:20:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  case ConfigItem::umask:
data/ccache-4.1/src/Config.cpp:864:20:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  case ConfigItem::umask:
data/ccache-4.1/src/Config.hpp:80:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  uint32_t umask() const;
data/ccache-4.1/src/Config.hpp:403:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
Config::umask() const
data/ccache-4.1/src/Decompressor.hpp:47:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  virtual void read(void* data, size_t count) = 0;
data/ccache-4.1/src/Lockfile.cpp:112:7:  [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(to_sleep);
data/ccache-4.1/src/Lockfile.cpp:184: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(to_sleep);
data/ccache-4.1/src/Manifest.cpp:310:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  reader.read(entry_count);
data/ccache-4.1/src/Manifest.cpp:316:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(length);
data/ccache-4.1/src/Manifest.cpp:318:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(&entry[0], length);
data/ccache-4.1/src/Manifest.cpp:321:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  reader.read(entry_count);
data/ccache-4.1/src/Manifest.cpp:326:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(entry.index);
data/ccache-4.1/src/Manifest.cpp:327:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(entry.digest.bytes(), Digest::size());
data/ccache-4.1/src/Manifest.cpp:328:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(entry.fsize);
data/ccache-4.1/src/Manifest.cpp:329:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(entry.mtime);
data/ccache-4.1/src/Manifest.cpp:330:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(entry.ctime);
data/ccache-4.1/src/Manifest.cpp:333:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  reader.read(entry_count);
data/ccache-4.1/src/Manifest.cpp:339:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(file_info_count);
data/ccache-4.1/src/Manifest.cpp:342:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      reader.read(file_info_index);
data/ccache-4.1/src/Manifest.cpp:345:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader.read(entry.name.bytes(), Digest::size());
data/ccache-4.1/src/NullDecompressor.cpp:28:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
NullDecompressor::read(void* data, size_t count)
data/ccache-4.1/src/NullDecompressor.cpp:38:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc(m_stream) != EOF) {
data/ccache-4.1/src/NullDecompressor.hpp:34:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void read(void* data, size_t count) override;
data/ccache-4.1/src/Result.cpp:205:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Result::Reader::read(Consumer& consumer)
data/ccache-4.1/src/Result.cpp:234:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cache_entry_reader.read(n_entries);
data/ccache-4.1/src/Result.cpp:255:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cache_entry_reader.read(marker);
data/ccache-4.1/src/Result.cpp:267:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cache_entry_reader.read(type);
data/ccache-4.1/src/Result.cpp:271:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cache_entry_reader.read(file_len);
data/ccache-4.1/src/Result.cpp:280:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      cache_entry_reader.read(buf, n);
data/ccache-4.1/src/Result.cpp:397:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t bytes_read = read(*file, buf, n);
data/ccache-4.1/src/Result.hpp:103:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  nonstd::optional<std::string> read(Consumer& consumer);
data/ccache-4.1/src/Statistics.cpp:102:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      counters.increment(Statistics::read(path));
data/ccache-4.1/src/Statistics.cpp:190:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read(const std::string& path)
data/ccache-4.1/src/Statistics.cpp:228:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  auto counters = Statistics::read(path);
data/ccache-4.1/src/Statistics.hpp:74:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Counters read(const std::string& path);
data/ccache-4.1/src/TemporaryFile.cpp:34:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mask = umask(0);
data/ccache-4.1/src/TemporaryFile.cpp:35:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(mask);
data/ccache-4.1/src/UmaskScope.hpp:41:21:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    m_saved_umask = umask(*new_umask);
data/ccache-4.1/src/UmaskScope.hpp:52:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(*m_saved_umask);
data/ccache-4.1/src/Util.cpp:1093:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((n = read(fd, buffer, sizeof(buffer))) != 0) {
data/ccache-4.1/src/Util.cpp:1133:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(*fd, &result[pos], max_read);
data/ccache-4.1/src/Win32Util.cpp:115:1:  [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(int64_t usec)
data/ccache-4.1/src/ZstdDecompressor.cpp:44:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ZstdDecompressor::read(void* data, size_t count)
data/ccache-4.1/src/ZstdDecompressor.hpp:38:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void read(void* data, size_t count) override;
data/ccache-4.1/src/ccache.cpp:1776:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  auto error = result_reader.read(result_retriever);
data/ccache-4.1/src/ccache.cpp:1958:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  if (ctx.config.umask() != std::numeric_limits<uint32_t>::max()) {
data/ccache-4.1/src/ccache.cpp:1959:26:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    ctx.original_umask = umask(ctx.config.umask());
data/ccache-4.1/src/ccache.cpp:1959:43:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    ctx.original_umask = umask(ctx.config.umask());
data/ccache-4.1/src/ccache.cpp:2231:7:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      umask(*original_umask);
data/ccache-4.1/src/ccache.cpp:2542:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      auto error = result_reader.read(result_dumper);
data/ccache-4.1/src/ccache.cpp:2563:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      auto error = result_reader.read(result_extractor);
data/ccache-4.1/src/compopt.cpp:152: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).
  return strncmp(opt1->name, opt2->name, strlen(opt2->name));
data/ccache-4.1/src/compress.cpp:187:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->read(buffer, bytes_to_read);
data/ccache-4.1/src/system.hpp:83:12:  [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.
extern int usleep(useconds_t);
data/ccache-4.1/src/system.hpp:111:6:  [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.
void usleep(int64_t usec);
data/ccache-4.1/src/third_party/base32hex.c:55: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).
    if ((r = base32hex(buf, in, strlen(in))) != explen) {
data/ccache-4.1/src/third_party/blake3/blake3.c:383: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).
  blake3_hasher_init_derive_key_raw(self, context, strlen(context));
data/ccache-4.1/src/third_party/doctest.h:3077: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).
        : String(in, strlen(in)) {}
data/ccache-4.1/src/third_party/doctest.h:5318: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).
            int sizePrefixDisplay = static_cast<int>(strlen(DOCTEST_OPTIONS_PREFIX_DISPLAY));
data/ccache-4.1/src/third_party/doctest.h:5690: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(temp && (value || strlen(temp) == strlen(pattern))) { //!OCLINT prefer early exits and continue
data/ccache-4.1/src/third_party/doctest.h:5690: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).
            if(temp && (value || strlen(temp) == strlen(pattern))) { //!OCLINT prefer early exits and continue
data/ccache-4.1/src/third_party/doctest.h:5703: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).
                        temp += strlen(pattern);
data/ccache-4.1/src/third_party/doctest.h:5704:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        const unsigned len = strlen(temp);
data/ccache-4.1/src/third_party/doctest.h:5726: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).
        if(parseOptionImpl(argc, argv, pattern + strlen(DOCTEST_CONFIG_OPTIONS_PREFIX), value))
data/ccache-4.1/src/third_party/doctest.h:5747: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(strlen(pch))
data/ccache-4.1/src/third_party/fmt/format-inl.h:105: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).
      if (message == buffer_ && strlen(buffer_) == buffer_size_ - 1)
data/ccache-4.1/src/third_party/fmt/format-inl.h:121: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).
      return result == 0 && strlen(buffer_) == buffer_size_ - 1 ? ERANGE
data/ccache-4.1/src/third_party/getopt_long.c:97: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(longopts[i].name) == namelen
data/ccache-4.1/src/third_party/minitrace.c:172: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).
	fwrite(header, 1, strlen(header), f);
data/ccache-4.1/src/third_party/minitrace.c:210: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).
			str_pool[i] = (char*)malloc(strlen(str) + 1);
data/ccache-4.1/src/third_party/minitrace.c:262:8:  [1] (buffer) strlen:
  Does not handle 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(raw->a_str) > 700) {
data/ccache-4.1/src/third_party/minitrace.c:292: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 = (int)strlen(cat);
data/ccache-4.1/src/third_party/nonstd/string_view.hpp:350: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).
# define nssv_BUILTIN_STRLEN  strlen
data/ccache-4.1/src/third_party/win32/getopt.c:212: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 (namelen == (unsigned int)strlen(p->name))
data/ccache-4.1/src/third_party/win32/getopt.c:249: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).
				d->__nextchar += strlen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:275: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).
						d->__nextchar += strlen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:290: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).
						d->__nextchar += strlen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:295: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).
				d->__nextchar += strlen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:373: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 ((unsigned int) (nameend - d->__nextchar) == strlen(p->name))
data/ccache-4.1/src/third_party/win32/getopt.c:394: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).
					d->__nextchar += strlen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:411: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).
							d->__nextchar += strlen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:425: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).
							d->__nextchar += strlen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:431: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).
					d->__nextchar += strlen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:672:34:  [1] (buffer) wcslen:
  Does not handle 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 (namelen == (unsigned int)wcslen(p->name))
data/ccache-4.1/src/third_party/win32/getopt.c:709:22:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				d->__nextchar += wcslen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:735:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						d->__nextchar += wcslen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:750:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						d->__nextchar += wcslen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:755:22:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				d->__nextchar += wcslen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:833:54:  [1] (buffer) wcslen:
  Does not handle 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 int) (nameend - d->__nextchar) == wcslen(p->name))
data/ccache-4.1/src/third_party/win32/getopt.c:854:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					d->__nextchar += wcslen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:871:25:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							d->__nextchar += wcslen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:885:25:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							d->__nextchar += wcslen(d->__nextchar);
data/ccache-4.1/src/third_party/win32/getopt.c:891:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					d->__nextchar += wcslen(d->__nextchar);
data/ccache-4.1/unittest/test_Config.cpp:76:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  CHECK(config.umask() == std::numeric_limits<uint32_t>::max());
data/ccache-4.1/unittest/test_Config.cpp:174:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  CHECK(config.umask() == 0777);
data/ccache-4.1/unittest/test_Config.cpp:220:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    CHECK(config.umask() == std::numeric_limits<uint32_t>::max());
data/ccache-4.1/unittest/test_NullCompression.cpp:47:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  decompressor->read(buffer, 4);
data/ccache-4.1/unittest/test_NullCompression.cpp:59:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    decompressor->read(buffer, 2);
data/ccache-4.1/unittest/test_NullCompression.cpp:66:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    CHECK_THROWS_WITH(decompressor->read(buffer, 1),
data/ccache-4.1/unittest/test_Statistics.cpp:34:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Counters counters = Statistics::read("test");
data/ccache-4.1/unittest/test_Statistics.cpp:45:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Counters counters = Statistics::read("test");
data/ccache-4.1/unittest/test_Statistics.cpp:56:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Counters counters = Statistics::read("test");
data/ccache-4.1/unittest/test_Statistics.cpp:74:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Counters counters = Statistics::read("test");
data/ccache-4.1/unittest/test_Statistics.cpp:97:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  counters = Statistics::read("test");
data/ccache-4.1/unittest/test_ZstdCompression.cpp:47:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  decompressor->read(buffer, 4);
data/ccache-4.1/unittest/test_ZstdCompression.cpp:54:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  decompressor->read(buffer, 2);
data/ccache-4.1/unittest/test_ZstdCompression.cpp:61:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK_THROWS_WITH(decompressor->read(buffer, 1),
data/ccache-4.1/unittest/test_ZstdCompression.cpp:85:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    decompressor->read(buffer, sizeof(buffer));
data/ccache-4.1/unittest/test_ZstdCompression.cpp:93:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK_THROWS_WITH(decompressor->read(buffer, 1),
data/ccache-4.1/unittest/test_ZstdCompression.cpp:117:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  decompressor->read(buffer, sizeof(buffer));

ANALYSIS SUMMARY:

Hits = 318
Lines analyzed = 51458 in approximately 1.25 seconds (41305 lines/second)
Physical Source Lines of Code (SLOC) = 36728
Hits@level = [0]  51 [1] 121 [2] 142 [3]  36 [4]  14 [5]   5
Hits@level+ = [0+] 369 [1+] 318 [2+] 197 [3+]  55 [4+]  19 [5+]   5
Hits/KSLOC@level+ = [0+] 10.0468 [1+] 8.65824 [2+] 5.36376 [3+] 1.4975 [4+] 0.517316 [5+] 0.136136
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.