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/zita-mu1-0.3.3/source/kmeter.h
Examining data/zita-mu1-0.3.3/source/cmeter.h
Examining data/zita-mu1-0.3.3/source/jclient.h
Examining data/zita-mu1-0.3.3/source/jclient.cc
Examining data/zita-mu1-0.3.3/source/global.h
Examining data/zita-mu1-0.3.3/source/guiclass.cc
Examining data/zita-mu1-0.3.3/source/mainwin.cc
Examining data/zita-mu1-0.3.3/source/button.cc
Examining data/zita-mu1-0.3.3/source/kmeter.cc
Examining data/zita-mu1-0.3.3/source/guiclass.h
Examining data/zita-mu1-0.3.3/source/styles.h
Examining data/zita-mu1-0.3.3/source/button.h
Examining data/zita-mu1-0.3.3/source/png2img.h
Examining data/zita-mu1-0.3.3/source/mainwin.h
Examining data/zita-mu1-0.3.3/source/zita-mu1.cc
Examining data/zita-mu1-0.3.3/source/kmeterdsp.cc
Examining data/zita-mu1-0.3.3/source/cmeter.cc
Examining data/zita-mu1-0.3.3/source/rotary.h
Examining data/zita-mu1-0.3.3/source/styles.cc
Examining data/zita-mu1-0.3.3/source/cmeterdsp.h
Examining data/zita-mu1-0.3.3/source/kmeterdsp.h
Examining data/zita-mu1-0.3.3/source/png2img.cc
Examining data/zita-mu1-0.3.3/source/rotary.cc
Examining data/zita-mu1-0.3.3/source/cmeterdsp.cc

FINAL RESULTS:

data/zita-mu1-0.3.3/source/mainwin.cc:46:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (s, "%s-%s  [ %s ]", "zita-mu1", VERSION, jclient->jname ());
data/zita-mu1-0.3.3/source/mainwin.cc:158:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf (s, (p < -9.9f) ? "%3.0lf" : "%3.1lf", p);
data/zita-mu1-0.3.3/source/mainwin.cc:500:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (s, "%s/%s.png", SHARED, file);
data/zita-mu1-0.3.3/source/cmeter.cc:116:5:  [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 [1024];
data/zita-mu1-0.3.3/source/jclient.cc:44:5:  [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 [16];
data/zita-mu1-0.3.3/source/jclient.cc:68:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (s, "in_%d.L", i + 1);
data/zita-mu1-0.3.3/source/jclient.cc:70:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (s, "in_%d.R", i + 1);
data/zita-mu1-0.3.3/source/kmeter.cc:183:5:  [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 [1024];
data/zita-mu1-0.3.3/source/mainwin.cc:39:5:  [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 [1024];
data/zita-mu1-0.3.3/source/mainwin.cc:152:5:  [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 [16];
data/zita-mu1-0.3.3/source/mainwin.cc:497:5:  [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 [1024];
data/zita-mu1-0.3.3/source/png2img.cc:38:9:  [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).
    F = fopen (file, "r");
data/zita-mu1-0.3.3/source/rotary.h:36:5:  [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      _lncol [4];
data/zita-mu1-0.3.3/source/cmeterdsp.cc:85:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
float Cmeterdsp::read (void)
data/zita-mu1-0.3.3/source/cmeterdsp.h:34:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    float read (void);
data/zita-mu1-0.3.3/source/jclient.h:93:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void  read_kmeter (int i, float *rms, float *dpk) { _kmdsp [i].read (rms, dpk); }
data/zita-mu1-0.3.3/source/jclient.h:94:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    float read_cmeter (void) { return _cmdsp.read (); }
data/zita-mu1-0.3.3/source/kmeterdsp.cc:121:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void Kmeterdsp::read (float *rms, float *dpk)
data/zita-mu1-0.3.3/source/kmeterdsp.h:33:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read (float *rms, float *dpk);

ANALYSIS SUMMARY:

Hits = 19
Lines analyzed = 3213 in approximately 0.08 seconds (40616 lines/second)
Physical Source Lines of Code (SLOC) = 2154
Hits@level = [0]  30 [1]   6 [2]  10 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  49 [1+]  19 [2+]  13 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 22.7484 [1+] 8.8208 [2+] 6.03528 [3+] 1.39276 [4+] 1.39276 [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.