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/cif-tools-1.0.0/src/cif-diff.cpp
Examining data/cif-tools-1.0.0/src/cif-drop.cpp
Examining data/cif-tools-1.0.0/src/cif-grep.cpp
Examining data/cif-tools-1.0.0/src/cif-merge.cpp
Examining data/cif-tools-1.0.0/src/cif-tools.hpp
Examining data/cif-tools-1.0.0/src/cif-validate.cpp
Examining data/cif-tools-1.0.0/src/cif2pdb.cpp
Examining data/cif-tools-1.0.0/src/mmCQL.cpp
Examining data/cif-tools-1.0.0/src/pdb2cif.cpp
Examining data/cif-tools-1.0.0/src/pr-main.cpp

FINAL RESULTS:

data/cif-tools-1.0.0/src/cif-diff.cpp:451:7:  [4] (shell) execv:
  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.
		if (execv(nArgv[0], const_cast<char*const*>(nArgv.data())) < 0)
data/cif-tools-1.0.0/src/cif-drop.cpp:146:5:  [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).
		f.open(vm["output"].as<std::string>());
data/cif-tools-1.0.0/src/mmCQL.cpp:64: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 ch[2] = {
data/cif-tools-1.0.0/src/mmCQL.cpp:72: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 ch[3] = {
data/cif-tools-1.0.0/src/mmCQL.cpp:81: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 ch[4] = {
data/cif-tools-1.0.0/src/mmCQL.cpp:141:12:  [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.
		unsigned char ch[3];
data/cif-tools-1.0.0/src/mmCQL.cpp:170:2:  [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 s[sizeof(i) * 2 + 3];
data/cif-tools-1.0.0/src/mmCQL.cpp:561: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 ch[2] = {
data/cif-tools-1.0.0/src/mmCQL.cpp:568: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 ch[3] = {
data/cif-tools-1.0.0/src/mmCQL.cpp:576: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 ch[4] = {

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 3341 in approximately 0.17 seconds (19639 lines/second)
Physical Source Lines of Code (SLOC) = 2421
Hits@level = [0]   0 [1]   0 [2]   9 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]  10 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 4.13052 [1+] 4.13052 [2+] 4.13052 [3+] 0.413052 [4+] 0.413052 [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.