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/dawgdic-0.4.5/test/dawg-builder-test.cc
Examining data/dawgdic-0.4.5/test/ranked-completer-test.cc
Examining data/dawgdic-0.4.5/src/dawgdic/bit-pool.h
Examining data/dawgdic-0.4.5/src/dawgdic/guide-unit.h
Examining data/dawgdic-0.4.5/src/dawgdic/dictionary.h
Examining data/dawgdic-0.4.5/src/dawgdic/object-pool.h
Examining data/dawgdic-0.4.5/src/dawgdic/dawg-unit.h
Examining data/dawgdic-0.4.5/src/dawgdic/base-unit.h
Examining data/dawgdic-0.4.5/src/dawgdic/base-types.h
Examining data/dawgdic-0.4.5/src/dawgdic/ranked-guide.h
Examining data/dawgdic-0.4.5/src/dawgdic/ranked-completer-node.h
Examining data/dawgdic-0.4.5/src/dawgdic/guide-builder.h
Examining data/dawgdic-0.4.5/src/dawgdic/dawg.h
Examining data/dawgdic-0.4.5/src/dawgdic/completer.h
Examining data/dawgdic-0.4.5/src/dawgdic/dictionary-unit.h
Examining data/dawgdic-0.4.5/src/dawgdic/dawg-builder.h
Examining data/dawgdic-0.4.5/src/dawgdic/ranked-completer.h
Examining data/dawgdic-0.4.5/src/dawgdic/ranked-guide-unit.h
Examining data/dawgdic-0.4.5/src/dawgdic/ranked-guide-builder.h
Examining data/dawgdic-0.4.5/src/dawgdic/dictionary-extra-unit.h
Examining data/dawgdic-0.4.5/src/dawgdic/ranked-completer-candidate.h
Examining data/dawgdic-0.4.5/src/dawgdic/link-table.h
Examining data/dawgdic-0.4.5/src/dawgdic/dictionary-builder.h
Examining data/dawgdic-0.4.5/src/dawgdic/guide.h
Examining data/dawgdic-0.4.5/src/dawgdic/ranked-guide-link.h
Examining data/dawgdic-0.4.5/src/dawgdic-find.cc
Examining data/dawgdic-0.4.5/src/dawgdic-build.cc

FINAL RESULTS:

data/dawgdic-0.4.5/test/ranked-completer-test.cc:141:8:  [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(std::time(NULL));
data/dawgdic-0.4.5/src/dawgdic-build.cc:246: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).
    lexicon_file.open(lexicon_file_name.c_str(), std::ios::binary);
data/dawgdic-0.4.5/src/dawgdic-build.cc:258: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).
    dic_file.open(dic_file_name.c_str(), std::ios::binary);
data/dawgdic-0.4.5/src/dawgdic-find.cc:166: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).
    dic_file.open(dic_file_name.c_str(), std::ios::binary);
data/dawgdic-0.4.5/src/dawgdic-find.cc:178: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).
    lexicon_file.open(lexicon_file_name.c_str(), std::ios::binary);
data/dawgdic-0.4.5/src/dawgdic/dictionary.h:47:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!input->read(reinterpret_cast<char *>(&base_size), sizeof(BaseType))) {
data/dawgdic-0.4.5/src/dawgdic/dictionary.h:53:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!input->read(reinterpret_cast<char *>(&units_buf[0]),
data/dawgdic-0.4.5/src/dawgdic/guide.h:44:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!input->read(reinterpret_cast<char *>(&base_size), sizeof(BaseType))) {
data/dawgdic-0.4.5/src/dawgdic/guide.h:50:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!input->read(reinterpret_cast<char *>(&units_buf[0]),
data/dawgdic-0.4.5/src/dawgdic/ranked-guide.h:44:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!input->read(reinterpret_cast<char *>(&base_size), sizeof(BaseType))) {
data/dawgdic-0.4.5/src/dawgdic/ranked-guide.h:50:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!input->read(reinterpret_cast<char *>(&units_buf[0]),

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 3458 in approximately 0.10 seconds (34407 lines/second)
Physical Source Lines of Code (SLOC) = 2648
Hits@level = [0]   0 [1]   6 [2]   4 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  11 [1+]  11 [2+]   5 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.15408 [1+] 4.15408 [2+] 1.88822 [3+] 0.377644 [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.