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/consensuscore-1.1.1+dfsg/external/cpplog/concurrent_queue.hpp
Examining data/consensuscore-1.1.1+dfsg/external/cpplog/cpplog.hpp
Examining data/consensuscore-1.1.1+dfsg/external/cpplog/outputdebugstream.hpp
Examining data/consensuscore-1.1.1+dfsg/external/cpplog/scribestream.hpp
Examining data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc
Examining data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock/gmock.h
Examining data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock_main.cc
Examining data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Align/AffineAlignment.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Align/AlignConfig.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Align/LinearAlignment.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Align/PairwiseAlignment.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Checksum.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Coverage.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Edna/EdnaConfig.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Edna/EdnaCounts.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Edna/EdnaEvaluator.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Feature.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Features.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Interval.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/LFloat.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Logging.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Matrix/AbstractMatrix.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Matrix/DenseMatrix-inl.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Matrix/DenseMatrix.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Matrix/SparseMatrix-inl.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Matrix/SparseMatrix.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Matrix/SparseVector-inl.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Matrix/SparseVector.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Matrix/VectorL.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Mutation-inl.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Mutation.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Poa/PoaConsensus.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Poa/PoaGraph.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Poa/RangeFinder.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/Diploid.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/MultiReadMutationScorer.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/MutationEnumerator-inl.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/MutationEnumerator.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/MutationScorer.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/QuiverConfig.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/QuiverConsensus.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/QvEvaluator.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/ReadScorer.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/SimpleRecursor.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/SseRecursor.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/detail/Combiner.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/detail/RecursorBase-inl.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/detail/RecursorBase.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/detail/SseMath.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/detail/sse_mathfun.h
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Read.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Sequence.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Statistics/Binomial.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Types.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Utils.hpp
Examining data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Version.hpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Align/AffineAlignment.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Align/AlignConfig.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Align/LinearAlignment.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Align/PairwiseAlignment.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Checksum.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Coverage.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Edna/EdnaCounts.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Feature.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Features.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Logging/Logging.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Matrix/DenseMatrix.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Matrix/SparseMatrix.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Mutation.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Poa/PoaConsensus.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Poa/PoaGraph.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Poa/PoaGraphImpl.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Poa/PoaGraphImpl.hpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Poa/PoaGraphTraversals.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Poa/RangeFinder.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/Diploid.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MultiReadMutationScorer.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MutationEnumerator.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MutationScorer.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/QuiverConfig.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/QuiverConsensus.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/SimpleRecursor.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/SseRecursor.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Quiver/detail/RecursorBase.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Read.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Sequence.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Statistics/Binomial.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Utils.cpp
Examining data/consensuscore-1.1.1+dfsg/src/C++/Version.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/MatrixPrinting.hpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/ParameterSettings.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/ParameterSettings.hpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/Random.hpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/SseTestingUtils.hpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestCoverage.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestDiploidQuiver.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestMatrixFacades.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestMultiReadMutationScorer.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationEnumerator.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestMutations.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestPairwiseAlignment.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestPoaConsensus.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestQvEvaluator.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp
Examining data/consensuscore-1.1.1+dfsg/src/Tests/TestSparseVector.cpp

FINAL RESULTS:

data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:1623:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define vsnprintf _vsnprintf
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:4119:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, args);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:4138:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:4145:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:2868:20:  [4] (buffer) StrNCpy:
  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).
inline const char* StrNCpy(char* dest, const char* src, size_t n) {
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:2940:26:  [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 GTEST_SNPRINTF_ _snprintf
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:2942:26:  [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 GTEST_SNPRINTF_ snprintf
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:8322:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(\
data/consensuscore-1.1.1+dfsg/src/Tests/TestPoaConsensus.cpp:42:9:  [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(cmd.c_str());
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:712:37:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void ShuffleRange(internal::Random* random, int begin, int end,
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:733:39:  [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.
inline void Shuffle(internal::Random* random, std::vector<E>* v) {
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:734:16:  [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.
  ShuffleRange(random, 0, static_cast<int>(v->size()), v);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:1202:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  internal::Random* random() { return &random_; }
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:3947:47:  [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.
void TestCase::ShuffleTests(internal::Random* random) {
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:3948:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  Shuffle(random, &test_indices_);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:5777:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      random()->Reseed(random_seed_);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:6087:16:  [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.
  ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:6090:16:  [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.
  ShuffleRange(random(), last_death_test_case_ + 1,
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:6095:34:  [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.
    test_cases_[i]->ShuffleTests(random());
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:2906:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char* const env = getenv(name);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:2909:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  return getenv(name);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:18306:39:  [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.
  void ShuffleTests(internal::Random* random);
data/consensuscore-1.1.1+dfsg/src/Tests/Random.hpp:32:12:  [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.
    boost::random::uniform_int_distribution<> indexDist(0, 3);
data/consensuscore-1.1.1+dfsg/src/Tests/Random.hpp:44:12:  [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.
    boost::random::uniform_int_distribution<> indexDist(0, 127);
data/consensuscore-1.1.1+dfsg/src/Tests/Random.hpp:65:12:  [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.
    boost::random::poisson_distribution<> dist(mean);
data/consensuscore-1.1.1+dfsg/src/Tests/Random.hpp:72:12:  [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.
    boost::random::bernoulli_distribution<> dist(static_cast<double>(p));
data/consensuscore-1.1.1+dfsg/src/Tests/Random.hpp:109:12:  [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.
    boost::random::uniform_int_distribution<> indexDist(0, n - 1);
data/consensuscore-1.1.1+dfsg/external/cpplog/cpplog.hpp:153:19:  [2] (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, localOut, sizeof(::tm));
data/consensuscore-1.1.1+dfsg/external/cpplog/cpplog.hpp:172:19:  [2] (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, localOut, sizeof(::tm));
data/consensuscore-1.1.1+dfsg/external/cpplog/cpplog.hpp:269: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 m_buffer[k_logBufferCapacity+1];
data/consensuscore-1.1.1+dfsg/external/cpplog/cpplog.hpp:454: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_logData->utcTime, &gmt, sizeof(tm));
data/consensuscore-1.1.1+dfsg/external/cpplog/cpplog.hpp:687:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            m_outStream.open(newFileName.c_str(), std::ios_base::out);
data/consensuscore-1.1.1+dfsg/external/cpplog/cpplog.hpp:766:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            m_outStream.open(newFileName.c_str(), std::ios_base::out);
data/consensuscore-1.1.1+dfsg/external/cpplog/cpplog.hpp:783:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            m_outStream.open(host, port, category, timeout);
data/consensuscore-1.1.1+dfsg/external/cpplog/scribestream.hpp:30: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).
    bool open(std::string& host, unsigned short port, std::string& category, int timeout)
data/consensuscore-1.1.1+dfsg/external/cpplog/scribestream.hpp:45: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).
            transport->open();
data/consensuscore-1.1.1+dfsg/external/cpplog/scribestream.hpp:103: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(std::string host, unsigned short port, std::string category, int timeout)
data/consensuscore-1.1.1+dfsg/external/cpplog/scribestream.hpp:106: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).
        buf->open(host, port, category, timeout);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:2328:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:2331:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:2841: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 error_text[kBufSize] = { '\0' };
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:2925: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 str[5];  // Big enough for the largest valid code point.
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:6808: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[256];
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:7224: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 executable_path[_MAX_PATH + 1];  // NOLINT
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:7503: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).
  const int cwd_fd = open(".", O_RDONLY);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:7941: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:7944: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:8321: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).
  const int fd = open("/proc/self/as", O_RDONLY);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:8651: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(buffer, regex, len);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:8728:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_dir_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:8729:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_file_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:8766:29:  [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).
    const int captured_fd = mkstemp(name_template);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:9074: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 text[5] = "";
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:2880:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return fopen(path, mode);
data/consensuscore-1.1.1+dfsg/src/Tests/TestPoaConsensus.cpp:517: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 fname[100];
data/consensuscore-1.1.1+dfsg/src/Tests/TestPoaConsensus.cpp:518:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(fname, "/tmp/gr%03d.dot", run);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:2326: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).
  const int length = strlen(ansi);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:2986: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).
    num_chars = static_cast<int>(wcslen(str));
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:4740: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).
      segment = next_segment + strlen("]]>");
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:4905:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  result.reserve(strlen(str) + 1);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:6148:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const size_t prefix_len = strlen(prefix);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:8385: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).
  const size_t full_regex_len = strlen(regex) + 10;
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:8639: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).
  const size_t len = strlen(regex);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:9328: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).
    PrintCharsAsStringTo(s, strlen(s), os);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gmock-gtest-all.cc:9345:29:  [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).
    PrintCharsAsStringTo(s, wcslen(s), os);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:2869:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  return strncpy(dest, src, n);
data/consensuscore-1.1.1+dfsg/external/gmock-1.7.0/gtest/gtest.h:2891:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return static_cast<int>(read(fd, buf, count));
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Align/AlignConfig.hpp:16:32:  [1] (buffer) mismatch:
  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.
    AlignParams(int match, int mismatch, int insert, int delete_);
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/MultiReadMutationScorer.hpp:95:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ReadState(MappedRead* read, ScorerType* scorer, bool isActive);
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/QvEvaluator.hpp:67:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QvEvaluator(const Read& read, const std::string& tpl, const QvModelParams& params,
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/QvEvaluator.hpp:69:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        : read_(read), params_(params), tpl_(tpl), pinStart_(pinStart), pinEnd_(pinEnd)
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/QvEvaluator.hpp:151:34:  [1] (buffer) mismatch:
  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 MUX4(mask, match, mismatch);
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/ReadScorer.hpp:20:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    float Score(const std::string& tpl, const Read& read) const;
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/ReadScorer.hpp:22:72:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const PairwiseAlignment* Align(const std::string& tpl, const Read& read) const;
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/ReadScorer.hpp:24:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const SparseMatrix* Alpha(const std::string& tpl, const Read& read) const;
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Quiver/ReadScorer.hpp:26:66:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const SparseMatrix* Beta(const std::string& tpl, const Read& read) const;
data/consensuscore-1.1.1+dfsg/include/ConsensusCore/Read.hpp:41:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    MappedRead(const Read& read, StrandEnum strand, int templateStart, int templateEnd,
data/consensuscore-1.1.1+dfsg/src/C++/Align/AlignConfig.cpp:7:41:  [1] (buffer) mismatch:
  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.
AlignParams::AlignParams(int match, int mismatch, int insert, int delete_)
data/consensuscore-1.1.1+dfsg/src/C++/Align/AlignConfig.cpp:8:30:  [1] (buffer) mismatch:
  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.
    : Match(match), Mismatch(mismatch), Insert(insert), Delete(delete_)
data/consensuscore-1.1.1+dfsg/src/C++/Coverage.cpp:28:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for (int read = 0; read < nReads; read++) {
data/consensuscore-1.1.1+dfsg/src/C++/Coverage.cpp:29:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int tStart_ = tStart[read];
data/consensuscore-1.1.1+dfsg/src/C++/Coverage.cpp:30:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int tEnd_ = tEnd[read];
data/consensuscore-1.1.1+dfsg/src/C++/Poa/PoaConsensus.cpp:48:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    foreach (const std::string& read, reads) {
data/consensuscore-1.1.1+dfsg/src/C++/Poa/PoaConsensus.cpp:49:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read.length() == 0) {
data/consensuscore-1.1.1+dfsg/src/C++/Poa/PoaConsensus.cpp:52:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        pg.AddRead(read, config);
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MultiReadMutationScorer.cpp:24:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool ReadScoresMutation(const MappedRead& read, const Mutation& mut)
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MultiReadMutationScorer.cpp:26:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ts = read.TemplateStart;
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MultiReadMutationScorer.cpp:27:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int te = read.TemplateEnd;
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MultiReadMutationScorer.cpp:103:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    foreach (const ReadStateType& read, reads_) {
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MultiReadMutationScorer.cpp:104:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reads_.push_back(ReadStateType(read));
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MultiReadMutationScorer.cpp:409:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ReadState<ScorerType>::ReadState(MappedRead* read, ScorerType* scorer, bool isActive)
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/MultiReadMutationScorer.cpp:410:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    : Read(read), Scorer(scorer), IsActive(isActive)
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:20:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
float ReadScorer::Score(const string& tpl, const Read& read) const
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:24:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QvEvaluator e(read, tpl, _quiverConfig.QvParams);
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:26:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    I = read.Length();
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:34:75:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
const PairwiseAlignment* ReadScorer::Align(const string& tpl, const Read& read) const
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:38:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QvEvaluator e(read, tpl, _quiverConfig.QvParams);
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:40:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    I = read.Length();
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:47:70:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
const SparseMatrix* ReadScorer::Alpha(const string& tpl, const Read& read) const
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:51:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QvEvaluator e(read, tpl, _quiverConfig.QvParams);
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:53:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    I = read.Length();
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:61:69:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
const SparseMatrix* ReadScorer::Beta(const string& tpl, const Read& read) const
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:65:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QvEvaluator e(read, tpl, _quiverConfig.QvParams);
data/consensuscore-1.1.1+dfsg/src/C++/Quiver/ReadScorer.cpp:67:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    I = read.Length();
data/consensuscore-1.1.1+dfsg/src/C++/Read.cpp:35:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
MappedRead::MappedRead(const Read& read, StrandEnum strand, int templateStart, int templateEnd,
data/consensuscore-1.1.1+dfsg/src/C++/Read.cpp:37:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    : Read(read)
data/consensuscore-1.1.1+dfsg/src/Tests/Random.hpp:91:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    Read read(f, "anonymous", "unknown");
data/consensuscore-1.1.1+dfsg/src/Tests/Random.hpp:101:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return QvEvaluator(read, tpl, TestingParams(), pinStart, pinEnd);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:66:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E ev(read, tpl, params, true, true);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:92:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E ev(read, tpl, params, true, true);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:102:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E ev(read, tpl, params, true, true);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:124:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E ev(read, tpl, params, true, true);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:142:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E ev(read, tpl, params, true, true);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:166:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E ev(read, tpl, params, true, true);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:191:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    float scoreTTTT = ez.Score(tplTTTT, read);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:194:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QvEvaluator e(read, tplTT, params);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:202:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_EQ(ez.Score(tplGCTT, read), ms.ScoreMutation(Mutation(INSERTION, 7, 7, "GC")));
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:203:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_EQ(ez.Score(tplAATT, read), ms.ScoreMutation(Mutation(INSERTION, 7, 7, "AA")));
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:204:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_EQ(ez.Score(tplAATT, read), ms.ScoreMutation(Mutation(INSERTION, 6, 6, "AA")));
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:216:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    float scoreTT = ez.Score(tplTT, read);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:219:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QvEvaluator e(read, tplTTTT, params);
data/consensuscore-1.1.1+dfsg/src/Tests/TestMutationScorer.cpp:227:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QvEvaluator e2(read, tplGCTT, params);
data/consensuscore-1.1.1+dfsg/src/Tests/TestPairwiseAlignment.cpp:285:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    a = AlignLinear(ref, read, &score);
data/consensuscore-1.1.1+dfsg/src/Tests/TestPairwiseAlignment.cpp:286:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    peerAlignment = Align(ref, read, &peerScore, config);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:63:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E e(read, tpl, this->testingParams_);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:66:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M alpha(tpl.length() + 1, read.Length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:67:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M beta(tpl.length() + 1, read.Length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:71:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_FLOAT_EQ(0.0f, alpha(read.Length(), tpl.length()));
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:92:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E e(read, tpl, this->testingParams_);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:95:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M alpha(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:96:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M beta(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:100:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_FLOAT_EQ(-10.0f, alpha(read.Length(), tpl.length())) << std::endl
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:116:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E e(read, tpl, this->testingParams_);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:119:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M alpha(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:120:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M beta(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:124:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    EXPECT_FLOAT_EQ(-2.0f, alpha(read.Length(), tpl.length()));
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:158:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E e(read, tpl, this->testingParams_);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:161:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M alpha(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:162:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M beta(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:171:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E e(read, tpl, this->testingParams_);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:174:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M alpha(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:175:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M beta(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:195:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E e(read, tpl, this->testingParams_);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:198:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M alpha(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:199:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M beta(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:207:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M ext(read.Length() + 1, 2);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:212:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            for (int i = 0; i <= read.Length(); i++) {
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:224:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    E e(read, tpl, this->testingParams_);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:227:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M alpha(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:228:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M beta(read.Length() + 1, tpl.length() + 1);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:231:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    M ext(read.Length() + 1, 2);
data/consensuscore-1.1.1+dfsg/src/Tests/TestRecursors.cpp:235:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        for (int i = 0; i <= read.Length(); i++) {

ANALYSIS SUMMARY:

Hits = 152
Lines analyzed = 59672 in approximately 1.49 seconds (39946 lines/second)
Physical Source Lines of Code (SLOC) = 39482
Hits@level = [0]  55 [1]  96 [2]  29 [3]  18 [4]   9 [5]   0
Hits@level+ = [0+] 207 [1+] 152 [2+]  56 [3+]  27 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 5.2429 [1+] 3.84986 [2+] 1.41837 [3+] 0.683856 [4+] 0.227952 [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.