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/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/h0_lz77.cpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/rle_lz77_v1.cpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/rle_bwt.cpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/debug.cpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/wm_string.cpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/rle_lz77_v2.cpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/bwt.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/gap_bitvector.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/rle_string.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi_check.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/BackwardStringIterator.h
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/PartialSums.h
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/BackwardIterator.h
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/DynamicString.h
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/ContextAutomata.h
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/HuffmanTree.h
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/BackwardFileIterator.h
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wt_string.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/packed_array.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wm_string.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/includes.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/sparse_vector.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/packed_vector.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/hacked_vector.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/succinct_bitvector.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/fm_index.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/lciv.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/algorithms/rle_lz77_v1.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/algorithms/h0_lz77.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/algorithms/rle_lz77_v2.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/algorithms/cw_bwt.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/dynamic.hpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/cw-bwt.cpp
Examining data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/benchmark.cpp

FINAL RESULTS:

data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/gap_bitvector.hpp:81:12:  [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.
      bool access(uint64_t i) const {
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/benchmark.cpp:44:2:  [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.
	srand(time(NULL));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/debug.cpp:17:4:  [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.
   srand(time(NULL));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/ContextAutomata.h:135:3:  [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.
		srand(time(NULL));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/benchmark.cpp:157:12:  [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).
	ulint n = atoi(argv[2]);
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/cw-bwt.cpp:61:36:  [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).
		cwbwt = cw_bwt(path,cw_bwt::path,atoi(argv[3]),true);
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/h0_lz77.cpp:57:48:  [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).
	ulint sa_rate = argc == 3 ? DEFAULT_SA_RATE : atoi(argv[1]);
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/algorithms/cw_bwt.hpp:197: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).
		if ((fp = fopen(path.c_str(), "wb")) == NULL) {
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/BackwardFileIterator.h:34:8:  [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(path.c_str(), "rb");
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/algorithms/cw_bwt.hpp:343:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			s = ca.ASCIItoCode( bwIt->read() );//this symbol has as context the current state of the automaton
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/algorithms/cw_bwt.hpp:495:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			head = ca.ASCIItoCode( bwIt->read() );//this symbol has context corresponding to ca.currentState(). symbol entering from left in context
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp:276:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&encode_size,sizeof(encode_size));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp:277:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&decode_size,sizeof(decode_size));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp:282:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			in.read((char*)&c,sizeof(c));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp:297:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			in.read((char*)&c,sizeof(c));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp:303:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&sigma,sizeof(sigma));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp:305:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&log_sigma,sizeof(log_sigma));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp:307:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&enc_type,sizeof(enc_type));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp:345:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&size,sizeof(size));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/alphabet_encoder.hpp:352:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)w.data(),n_words*sizeof(uint64_t));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/bwt.hpp:412:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&a_size,sizeof(a_size));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/bwt.hpp:413:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&terminator_position,sizeof(terminator_position));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/bwt.hpp:418:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			in.read((char*)&a,sizeof(a));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/BackwardFileIterator.h:84:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	symbol read(){
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/BackwardIterator.h:27:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual symbol read(){return 0;};
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/BackwardStringIterator.h:45:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	symbol read(){
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/ContextAutomata.h:156:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
							sampled_text.push_back( bfr->read() );
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/ContextAutomata.h:171:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bfr->read();//skip character on text
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/ContextAutomata.h:310:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			symbol s = bwIt->read();
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/cw_bwt/ContextAutomata.h:403:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			context = shift(context, ASCIItoCode(bfr->read()) );
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/fm_index.hpp:190:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&sample_rate,sizeof(sample_rate));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/gap_bitvector.hpp:345:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 in.read((char*)&size_,sizeof(size_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/gap_bitvector.hpp:346:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 in.read((char*)&bits_set_,sizeof(bits_set_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/hacked_vector.hpp:395:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)&w_size,sizeof(w_size));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/hacked_vector.hpp:400:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read((char*)words.data(),sizeof(uint64_t)*w_size);
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/hacked_vector.hpp:404:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)&MASK,sizeof(MASK));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/hacked_vector.hpp:406:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)&size_,sizeof(size_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/hacked_vector.hpp:408:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)&width_,sizeof(width_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/hacked_vector.hpp:410:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)&int_per_word_,sizeof(int_per_word_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/lciv.hpp:1167:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read((char*)&subtree_sizes_len,sizeof(subtree_sizes_len));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/lciv.hpp:1169:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read((char*)&children_len,sizeof(children_len));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/lciv.hpp:1171:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read((char*)&leaves_len,sizeof(leaves_len));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/lciv.hpp:1176:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read((char*)subtree_sizes.data(),sizeof(uint64_t)*subtree_sizes_len);
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/lciv.hpp:1178:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read((char*)&has_leaves_,sizeof(has_leaves_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/lciv.hpp:1200:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read((char*)&rank_,sizeof(rank_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/lciv.hpp:1202:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            in.read((char*)&nr_children,sizeof(nr_children));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/packed_vector.hpp:738:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 in.read((char*)&w_size,sizeof(w_size));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/packed_vector.hpp:743:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    in.read((char*)words.data(),sizeof(uint64_t)*w_size);
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/packed_vector.hpp:747:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 in.read((char*)&psum_,sizeof(psum_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/packed_vector.hpp:749:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 in.read((char*)&MASK,sizeof(MASK));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/packed_vector.hpp:751:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 in.read((char*)&size_,sizeof(size_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/packed_vector.hpp:753:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 in.read((char*)&width_,sizeof(width_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/packed_vector.hpp:755:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 in.read((char*)&int_per_word_,sizeof(int_per_word_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/rle_string.hpp:607:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&rpl_size, sizeof(rpl_size));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/rle_string.hpp:612:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			in.read((char*)&key,sizeof(key));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/sparse_vector.hpp:339:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read((char*)&NIL,sizeof(NIL));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp:1338:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&subtree_sizes_len, sizeof(subtree_sizes_len));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp:1340:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&subtree_psums_len, sizeof(subtree_psums_len));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp:1342:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&children_len, sizeof(children_len));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp:1344:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&leaves_len, sizeof(leaves_len));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp:1353:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)subtree_sizes.data(), sizeof(uint64_t) * subtree_sizes.size());
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp:1354:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)subtree_psums.data(), sizeof(uint64_t) * subtree_psums.size());
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp:1356:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&has_leaves_, sizeof(has_leaves_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp:1374:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&rank_, sizeof(rank_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/spsi.hpp:1376:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&nr_children, sizeof(nr_children));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wm_string.hpp:146:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)&n, sizeof(n));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wm_string.hpp:147:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)&sigma, sizeof(sigma));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wm_string.hpp:148:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)&bit_width, sizeof(bit_width));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wm_string.hpp:150:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read((char*)begin_one.data(), sizeof(ulint) * bit_width);
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wt_string.hpp:223:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&n, sizeof(n));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wt_string.hpp:655:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&l_, sizeof(l_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wt_string.hpp:657:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&is_leaf_, sizeof(is_leaf_));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wt_string.hpp:664:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&has_child0, sizeof(has_child0));
data/xxsds-dynamic-1.0~alpha.1+2020072524git5390b6c/include/dynamic/internal/wt_string.hpp:665:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read((char*)&has_child1, sizeof(has_child1));

ANALYSIS SUMMARY:

Hits = 74
Lines analyzed = 15134 in approximately 0.30 seconds (50111 lines/second)
Physical Source Lines of Code (SLOC) = 7760
Hits@level = [0]   2 [1]  65 [2]   5 [3]   3 [4]   1 [5]   0
Hits@level+ = [0+]  76 [1+]  74 [2+]   9 [3+]   4 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 9.79381 [1+] 9.53608 [2+] 1.15979 [3+] 0.515464 [4+] 0.128866 [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.