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/ripser-1.1.20200206.286d36/ripser.cpp

FINAL RESULTS:

data/ripser-1.1.20200206.286d36/ripser.cpp:836:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
template <typename T> T read(std::istream& input_stream) {
data/ripser-1.1.20200206.286d36/ripser.cpp:839:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (input_stream.read(p, sizeof(T)).gcount() != sizeof(T)) return T();
data/ripser-1.1.20200206.286d36/ripser.cpp:937:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read<int64_t>(input_stream) != 8067171840) {
data/ripser-1.1.20200206.286d36/ripser.cpp:942:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read<int64_t>(input_stream) != 7) {
data/ripser-1.1.20200206.286d36/ripser.cpp:947:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	index_t n = read<int64_t>(input_stream);
data/ripser-1.1.20200206.286d36/ripser.cpp:954:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				distances.push_back(read<double>(input_stream));
data/ripser-1.1.20200206.286d36/ripser.cpp:956:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read<double>(input_stream);
data/ripser-1.1.20200206.286d36/ripser.cpp:963:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (!input_stream.eof()) distances.push_back(read<value_t>(input_stream));

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 1134 in approximately 0.05 seconds (24730 lines/second)
Physical Source Lines of Code (SLOC) = 928
Hits@level = [0]   0 [1]   8 [2]   0 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   8 [1+]   8 [2+]   0 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 8.62069 [1+] 8.62069 [2+]   0 [3+]   0 [4+]   0 [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.