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/cbm-0.2/src/ErrnoError.hpp
Examining data/cbm-0.2/src/cbm.cpp
Examining data/cbm-0.2/src/statistics.cpp
Examining data/cbm-0.2/src/statistics.hpp
Examining data/cbm-0.2/src/widgets/Bar.cpp
Examining data/cbm-0.2/src/widgets/Bar.hpp
Examining data/cbm-0.2/src/widgets/CursesError.hpp
Examining data/cbm-0.2/src/widgets/Screen.cpp
Examining data/cbm-0.2/src/widgets/Screen.hpp
Examining data/cbm-0.2/src/widgets/VerticalTable.cpp
Examining data/cbm-0.2/src/widgets/VerticalTable.hpp
Examining data/cbm-0.2/src/widgets/Window.cpp
Examining data/cbm-0.2/src/widgets/Window.hpp

FINAL RESULTS:

data/cbm-0.2/src/cbm.cpp:298:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(req.ifr_name, interface->getName().c_str());
data/cbm-0.2/src/cbm.cpp:120:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	    int ch = getopt_long(argc, argv, "", longopts, NULL);
data/cbm-0.2/src/cbm.cpp:303:8:  [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 addrString[100];
data/cbm-0.2/src/statistics.cpp:58:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(statistics_ + 1, statistics_ + 0, sizeof(Statistics));
data/cbm-0.2/src/statistics.cpp:59:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(statistics_, &statistics, sizeof(Statistics));
data/cbm-0.2/src/statistics.cpp:76:17:  [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).
    FILE *dev = fopen(PROC_NET_DEV, "r");
data/cbm-0.2/src/statistics.cpp:88:6:  [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 buf[500];

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 1114 in approximately 0.31 seconds (3558 lines/second)
Physical Source Lines of Code (SLOC) = 665
Hits@level = [0]   1 [1]   0 [2]   5 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]   8 [1+]   7 [2+]   7 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 12.0301 [1+] 10.5263 [2+] 10.5263 [3+] 3.00752 [4+] 1.50376 [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.