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/dssp-3.0.0/src/iocif.h
Examining data/dssp-3.0.0/src/align-2d.h
Examining data/dssp-3.0.0/src/mas.cpp
Examining data/dssp-3.0.0/src/mkdssp.cpp
Examining data/dssp-3.0.0/src/matrix.h
Examining data/dssp-3.0.0/src/buffer.h
Examining data/dssp-3.0.0/src/utils.h
Examining data/dssp-3.0.0/src/mas.h
Examining data/dssp-3.0.0/src/utils.cpp
Examining data/dssp-3.0.0/src/dssp.h
Examining data/dssp-3.0.0/src/version.h
Examining data/dssp-3.0.0/src/iocif.cpp
Examining data/dssp-3.0.0/src/dssp.cpp
Examining data/dssp-3.0.0/src/primitives-3d.cpp
Examining data/dssp-3.0.0/src/primitives-3d.h
Examining data/dssp-3.0.0/src/structure.cpp
Examining data/dssp-3.0.0/src/structure.h

FINAL RESULTS:

data/dssp-3.0.0/src/mas.h:24:9:  [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 snprintf _snprintf
data/dssp-3.0.0/src/mas.h:24:18:  [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 snprintf _snprintf
data/dssp-3.0.0/src/utils.cpp:183:22:  [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* home = getenv("HOME");
data/dssp-3.0.0/src/utils.cpp:185:12:  [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.
    home = getenv("HOMEPATH");
data/dssp-3.0.0/src/utils.cpp:195:22:  [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* home = getenv("HOME");
data/dssp-3.0.0/src/dssp.cpp:57: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 helix[3];
data/dssp-3.0.0/src/dssp.cpp:79: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 bridgelabel[2] = { ' ', ' ' };
data/dssp-3.0.0/src/structure.cpp:1450:9:  [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).
    if (atoi(atom["pdbx_PDB_model_num"].c_str()) > 1)
data/dssp-3.0.0/src/structure.h:110: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        name[4];
data/dssp-3.0.0/src/utils.h:82: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      m_msg[1024];

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 6863 in approximately 0.18 seconds (37477 lines/second)
Physical Source Lines of Code (SLOC) = 4118
Hits@level = [0]   2 [1]   0 [2]   5 [3]   3 [4]   2 [5]   0
Hits@level+ = [0+]  12 [1+]  10 [2+]  10 [3+]   5 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 2.91404 [1+] 2.42836 [2+] 2.42836 [3+] 1.21418 [4+] 0.485673 [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.