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/kodi-visualization-spectrum-3.0.3/lib/kodi/gui/gl/GL.h
Examining data/kodi-visualization-spectrum-3.0.3/lib/kodi/gui/gl/Shader.h
Examining data/kodi-visualization-spectrum-3.0.3/src/directx_spectrum.cpp
Examining data/kodi-visualization-spectrum-3.0.3/src/opengl_spectrum.cpp

FINAL RESULTS:

data/kodi-visualization-spectrum-3.0.3/lib/kodi/gui/gl/Shader.h:43:11:  [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 buffer[16384];
data/kodi-visualization-spectrum-3.0.3/lib/kodi/gui/gl/Shader.h:92:17:  [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.
          const char *sources[3];
data/kodi-visualization-spectrum-3.0.3/lib/kodi/gui/gl/Shader.h:156:17:  [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.
          const char *sources[3];
data/kodi-visualization-spectrum-3.0.3/src/directx_spectrum.cpp:475: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(res.pData, verts, sizeof(Vertex_t) * NUM_VERTICIES);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 1683 in approximately 2.63 seconds (640 lines/second)
Physical Source Lines of Code (SLOC) = 1259
Hits@level = [0]   4 [1]   0 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   8 [1+]   4 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 6.35425 [1+] 3.17712 [2+] 3.17712 [3+]   0 [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.