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/spdlog-1.5.0+ds/bench/async_bench.cpp
Examining data/spdlog-1.5.0+ds/bench/bench.cpp
Examining data/spdlog-1.5.0+ds/bench/formatter-bench.cpp
Examining data/spdlog-1.5.0+ds/bench/latency.cpp
Examining data/spdlog-1.5.0+ds/bench/utils.h
Examining data/spdlog-1.5.0+ds/example/example.cpp
Examining data/spdlog-1.5.0+ds/include/spdlog/async.h
Examining data/spdlog-1.5.0+ds/include/spdlog/async_logger-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/async_logger.h
Examining data/spdlog-1.5.0+ds/include/spdlog/common-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/common.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/backtracer-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/backtracer.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/circular_q.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/console_globals.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/file_helper-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/file_helper.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/fmt_helper.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/log_msg-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/log_msg.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/log_msg_buffer-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/log_msg_buffer.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/mpmc_blocking_q.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/null_mutex.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/os-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/os.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/pattern_formatter-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/pattern_formatter.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/periodic_worker-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/periodic_worker.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/registry-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/registry.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/synchronous_factory.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/thread_pool-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/details/thread_pool.h
Examining data/spdlog-1.5.0+ds/include/spdlog/fmt/bin_to_hex.h
Examining data/spdlog-1.5.0+ds/include/spdlog/fmt/fmt.h
Examining data/spdlog-1.5.0+ds/include/spdlog/fmt/ostr.h
Examining data/spdlog-1.5.0+ds/include/spdlog/formatter.h
Examining data/spdlog-1.5.0+ds/include/spdlog/logger-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/logger.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/android_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/ansicolor_sink-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/ansicolor_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/base_sink-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/base_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/basic_file_sink-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/basic_file_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/daily_file_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/dist_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/dup_filter_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/msvc_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/null_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/ostream_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/ringbuffer_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/rotating_file_sink-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/rotating_file_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/sink-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/stdout_color_sinks-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/stdout_color_sinks.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/stdout_sinks-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/stdout_sinks.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/syslog_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/systemd_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/wincolor_sink-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/sinks/wincolor_sink.h
Examining data/spdlog-1.5.0+ds/include/spdlog/spdlog-inl.h
Examining data/spdlog-1.5.0+ds/include/spdlog/spdlog.h
Examining data/spdlog-1.5.0+ds/include/spdlog/version.h
Examining data/spdlog-1.5.0+ds/include/spdlog/tweakme.h
Examining data/spdlog-1.5.0+ds/src/async.cpp
Examining data/spdlog-1.5.0+ds/src/color_sinks.cpp
Examining data/spdlog-1.5.0+ds/src/file_sinks.cpp
Examining data/spdlog-1.5.0+ds/src/spdlog.cpp
Examining data/spdlog-1.5.0+ds/src/stdout_sinks.cpp
Examining data/spdlog-1.5.0+ds/src/fmt.cpp
Examining data/spdlog-1.5.0+ds/tests/catch.hpp
Examining data/spdlog-1.5.0+ds/tests/includes.h
Examining data/spdlog-1.5.0+ds/tests/main.cpp
Examining data/spdlog-1.5.0+ds/tests/test_async.cpp
Examining data/spdlog-1.5.0+ds/tests/test_backtrace.cpp
Examining data/spdlog-1.5.0+ds/tests/test_create_dir.cpp
Examining data/spdlog-1.5.0+ds/tests/test_daily_logger.cpp
Examining data/spdlog-1.5.0+ds/tests/test_dup_filter.cpp
Examining data/spdlog-1.5.0+ds/tests/test_errors.cpp
Examining data/spdlog-1.5.0+ds/tests/test_file_helper.cpp
Examining data/spdlog-1.5.0+ds/tests/test_file_logging.cpp
Examining data/spdlog-1.5.0+ds/tests/test_fmt_helper.cpp
Examining data/spdlog-1.5.0+ds/tests/test_macros.cpp
Examining data/spdlog-1.5.0+ds/tests/test_misc.cpp
Examining data/spdlog-1.5.0+ds/tests/test_mpmc_q.cpp
Examining data/spdlog-1.5.0+ds/tests/test_pattern_formatter.cpp
Examining data/spdlog-1.5.0+ds/tests/test_registry.cpp
Examining data/spdlog-1.5.0+ds/tests/test_sink.h
Examining data/spdlog-1.5.0+ds/tests/test_stdout_api.cpp
Examining data/spdlog-1.5.0+ds/tests/test_systemd.cpp
Examining data/spdlog-1.5.0+ds/tests/utils.cpp
Examining data/spdlog-1.5.0+ds/tests/utils.h

FINAL RESULTS:

data/spdlog-1.5.0+ds/tests/utils.cpp:12:5:  [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.
    system("rmdir /S /Q test_logs");
data/spdlog-1.5.0+ds/tests/utils.cpp:14:15:  [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.
    auto rv = system("rm -rf test_logs");
data/spdlog-1.5.0+ds/include/spdlog/details/os-inl.h:408: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 *env_p = std::getenv("TERM");
data/spdlog-1.5.0+ds/tests/catch.hpp:4317:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/spdlog-1.5.0+ds/tests/catch.hpp:4326:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/spdlog-1.5.0+ds/tests/catch.hpp:10266: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( config.rngSeed() );
data/spdlog-1.5.0+ds/bench/async_bench.cpp:37:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    auto *infile = fopen(filename, "r");
data/spdlog-1.5.0+ds/bench/async_bench.cpp:83:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            howmany = atoi(argv[1]);
data/spdlog-1.5.0+ds/bench/async_bench.cpp:85:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            threads = atoi(argv[2]);
data/spdlog-1.5.0+ds/bench/async_bench.cpp:88:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            queue_size = atoi(argv[3]);
data/spdlog-1.5.0+ds/bench/async_bench.cpp:97:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            iters = atoi(argv[4]);
data/spdlog-1.5.0+ds/bench/bench.cpp:119:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            iters = atoi(argv[1]);
data/spdlog-1.5.0+ds/bench/bench.cpp:121:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            threads = atoi(argv[2]);
data/spdlog-1.5.0+ds/include/spdlog/details/file_helper-inl.h:28:33:  [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).
SPDLOG_INLINE void file_helper::open(const filename_t &fname, bool truncate)
data/spdlog-1.5.0+ds/include/spdlog/details/file_helper-inl.h:55: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).
    this->open(filename_, truncate);
data/spdlog-1.5.0+ds/include/spdlog/details/file_helper.h:25: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).
    void open(const filename_t &fname, bool truncate = false);
data/spdlog-1.5.0+ds/include/spdlog/details/os-inl.h:156:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    *fp = ::fopen((filename.c_str()), mode.c_str());
data/spdlog-1.5.0+ds/include/spdlog/logger-inl.h:247: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 date_buf[64];
data/spdlog-1.5.0+ds/include/spdlog/sinks/basic_file_sink-inl.h:19:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file_helper_.open(filename, truncate);
data/spdlog-1.5.0+ds/include/spdlog/sinks/daily_file_sink.h:64:22:  [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_helper_.open(filename, truncate_);
data/spdlog-1.5.0+ds/include/spdlog/sinks/daily_file_sink.h:87: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).
            file_helper_.open(filename, truncate_);
data/spdlog-1.5.0+ds/include/spdlog/sinks/rotating_file_sink-inl.h:33:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file_helper_.open(calc_filename(base_filename_, 0));
data/spdlog-1.5.0+ds/src/fmt.cpp:51: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 format[max_format_size];
data/spdlog-1.5.0+ds/tests/catch.hpp:2008:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timeStamp[timeStampSize];
data/spdlog-1.5.0+ds/tests/catch.hpp:5079:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        alignas(alignof(T)) char storage[sizeof(T)];
data/spdlog-1.5.0+ds/tests/catch.hpp:5541: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 line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/spdlog-1.5.0+ds/tests/catch.hpp:6103: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).
        void open();
data/spdlog-1.5.0+ds/tests/catch.hpp:9628:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &f, sizeof(f));
data/spdlog-1.5.0+ds/tests/catch.hpp:9637:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &d, sizeof(d));
data/spdlog-1.5.0+ds/tests/catch.hpp:10065: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 m_buffer[L_tmpnam] = { 0 };
data/spdlog-1.5.0+ds/tests/catch.hpp:10152:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[100];
data/spdlog-1.5.0+ds/tests/catch.hpp:10161:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        m_file = std::tmpfile();
data/spdlog-1.5.0+ds/tests/catch.hpp:10185:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[100] = {};
data/spdlog-1.5.0+ds/tests/catch.hpp:10605:30:  [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).
                    tracker->open();
data/spdlog-1.5.0+ds/tests/catch.hpp:11366: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.
        char **utf8Argv = new char *[ argc ];
data/spdlog-1.5.0+ds/tests/catch.hpp:11520:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char data[bufferSize];
data/spdlog-1.5.0+ds/tests/catch.hpp:11569:23:  [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).
                m_ofs.open( filename.c_str() );
data/spdlog-1.5.0+ds/tests/catch.hpp:11818: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( m_data, m_start, m_size );
data/spdlog-1.5.0+ds/tests/catch.hpp:12334:23:  [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 TrackerBase::open() {
data/spdlog-1.5.0+ds/tests/catch.hpp:12434: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).
            open();
data/spdlog-1.5.0+ds/tests/catch.hpp:12719:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char asChar[sizeof (int)];
data/spdlog-1.5.0+ds/tests/catch.hpp:13381:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[maxDoubleSize];
data/spdlog-1.5.0+ds/tests/catch.hpp:13388:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        std::sprintf(buffer, "%.3f", duration);
data/spdlog-1.5.0+ds/tests/catch.hpp:13971: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).
    void open() {
data/spdlog-1.5.0+ds/tests/catch.hpp:14000:12:  [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).
        tp.open();
data/spdlog-1.5.0+ds/tests/catch.hpp:14355:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timeStamp[timeStampSize];
data/spdlog-1.5.0+ds/tests/test_file_helper.cpp:24:12:  [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).
    helper.open(target_filename);
data/spdlog-1.5.0+ds/tests/test_file_helper.cpp:34:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        helper.open(target_filename);
data/spdlog-1.5.0+ds/tests/test_file_helper.cpp:45:12:  [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).
    helper.open(target_filename);
data/spdlog-1.5.0+ds/tests/test_file_helper.cpp:57:12:  [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).
    helper.open(target_filename);
data/spdlog-1.5.0+ds/bench/async_bench.cpp:39:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (EOF != (ch = getc(infile)))
data/spdlog-1.5.0+ds/tests/catch.hpp:3533:29:  [1] (buffer) is_permutation:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                return std::is_permutation(m_target.begin(), m_target.end(), vec.begin());
data/spdlog-1.5.0+ds/tests/catch.hpp:11395:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/spdlog-1.5.0+ds/tests/catch.hpp:11400:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/spdlog-1.5.0+ds/tests/catch.hpp:11692:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
data/spdlog-1.5.0+ds/tests/catch.hpp:11698:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
data/spdlog-1.5.0+ds/tests/catch.hpp:11784:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    : StringRef( rawChars, static_cast<StringRef::size_type>(std::strlen(rawChars) ) )
data/spdlog-1.5.0+ds/tests/test_misc.cpp:17:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return oss.str().substr(0, oss.str().length() - strlen(spdlog::details::os::default_eol));
data/spdlog-1.5.0+ds/tests/test_sink.h:55: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).
        auto eol_len = strlen(details::os::default_eol);
data/spdlog-1.5.0+ds/tests/utils.cpp:65:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return std::equal(ending.rbegin(), ending.rend(), value.rbegin());

ANALYSIS SUMMARY:

Hits = 60
Lines analyzed = 26650 in approximately 0.55 seconds (48554 lines/second)
Physical Source Lines of Code (SLOC) = 20184
Hits@level = [0]   5 [1]  10 [2]  44 [3]   4 [4]   2 [5]   0
Hits@level+ = [0+]  65 [1+]  60 [2+]  50 [3+]   6 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 3.22037 [1+] 2.97265 [2+] 2.47721 [3+] 0.297265 [4+] 0.0990884 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.