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/fst-0.115.1/fst/aeffect.h
Examining data/fst-0.115.1/fst/aeffectx.h
Examining data/fst-0.115.1/fst/fst.h
Examining data/fst-0.115.1/src/FstHost/FstHost.cpp
Examining data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp
Examining data/fst-0.115.1/src/FstProxy/FstProxy.cpp
Examining data/fst-0.115.1/src/JstHost/Source/Main.cpp
Examining data/fst-0.115.1/src/JstPlugin/Source/PluginEditor.cpp
Examining data/fst-0.115.1/src/JstPlugin/Source/PluginEditor.h
Examining data/fst-0.115.1/src/JstPlugin/Source/PluginProcessor.cpp
Examining data/fst-0.115.1/src/JstPlugin/Source/PluginProcessor.h
Examining data/fst-0.115.1/src/fst_utils.h

FINAL RESULTS:

data/fst-0.115.1/src/FstHost/FstHost.cpp:528:3:  [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.
  snprintf(effectname, 1024, filename);
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:469:5:  [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.
    snprintf(buf, 511, canDos[i]);
data/fst-0.115.1/src/FstProxy/FstProxy.cpp:126:21:  [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.
  char*pluginfile = getenv("FST_PROXYPLUGIN");
data/fst-0.115.1/src/fst_utils.h:738:22:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  HINSTANCE handle = LoadLibrary(filename);
data/fst-0.115.1/fst/fst.h:434: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 midiData[4]; /* @0x18 */
data/fst-0.115.1/fst/fst.h:463:15:  [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.
  FST_UNKNOWN(char name[64]);
data/fst-0.115.1/fst/fst.h:465: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 _padding2[28];
data/fst-0.115.1/fst/fst.h:501: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 label[64];
data/fst-0.115.1/fst/fst.h:504: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 shortLabel[8];
data/fst-0.115.1/fst/fst.h:538: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 _pad2[8];
data/fst-0.115.1/src/FstHost/FstHost.cpp:14:1:  [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 effectname[1024];
data/fst-0.115.1/src/FstHost/FstHost.cpp:38: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 opcodestr[256];
data/fst-0.115.1/src/FstHost/FstHost.cpp:53: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 opcodestr[256];
data/fst-0.115.1/src/FstHost/FstHost.cpp:67: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 sbuf[256] = {0};
data/fst-0.115.1/src/FstHost/FstHost.cpp:180: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 buf[512];
data/fst-0.115.1/src/FstHost/FstHost.cpp:267:4:  [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[512] = { 0 };
data/fst-0.115.1/src/FstHost/FstHost.cpp:293: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 buffer[200000] = { 0 };
data/fst-0.115.1/src/FstHost/FstHost.cpp:314: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 buffer[200000] = { 0 };
data/fst-0.115.1/src/FstHost/FstHost.cpp:396: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 buffer[200] = { 0 };
data/fst-0.115.1/src/FstHost/FstHost.cpp:408: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 buffer[200] = { 0 };
data/fst-0.115.1/src/FstHost/FstHost.cpp:423:18:  [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 unsigned char midi[4] = {0x90, 0x40, 0x7f, 0};
data/fst-0.115.1/src/FstHost/FstHost.cpp:442: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 opcodestr[256];
data/fst-0.115.1/src/FstHost/FstHost.cpp:462: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 strbuf[1024];
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:56:7:  [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 opcodestr[256];
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:70: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 buf[1024] = {0};
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:162: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 midi[4] = {0x90, 0x40, 0x7f, 0};
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:169: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 filename[128];
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:173:3:  [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(filename, "midi/dump.%d", count);
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:202: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 opcodestr[512];
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:351: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 filename[128];
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:374: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 hostcode[512] = {0};
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:467: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 buf[512] = {0};
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:468: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 hostcode[512] = {0};
data/fst-0.115.1/src/FstPlugin/FstPlugin.cpp:478: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 buf[512] = {0};
data/fst-0.115.1/src/FstProxy/FstProxy.cpp:125: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 pluginname[512] = {0};
data/fst-0.115.1/src/fst_utils.h:37:12:  [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*f = fopen(filename.c_str(), "w");
data/fst-0.115.1/src/fst_utils.h:511: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 buf[512];
data/fst-0.115.1/src/fst_utils.h:681:50:  [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.
static VstEvents*create_vstevents(const unsigned char midi[4]) {
data/fst-0.115.1/src/fst_utils.h:698: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 effname[64];
data/fst-0.115.1/src/fst_utils.h:701: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 opcodestr[256];
data/fst-0.115.1/src/fst_utils.h:718: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 effname[64];
data/fst-0.115.1/src/fst_utils.h:721: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 opcodestr[256];
data/fst-0.115.1/src/FstHost/FstHost.cpp:95:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy((char*)ptr, "FstProduct?", kVstMaxProductStrLen);
data/fst-0.115.1/src/FstHost/FstHost.cpp:99:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy((char*)ptr, "FstVendor?", kVstMaxVendorStrLen);
data/fst-0.115.1/src/fst_utils.h:17:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep(duration * 1000000);

ANALYSIS SUMMARY:

Hits = 45
Lines analyzed = 2913 in approximately 0.13 seconds (21655 lines/second)
Physical Source Lines of Code (SLOC) = 2375
Hits@level = [0] 217 [1]   3 [2]  38 [3]   2 [4]   2 [5]   0
Hits@level+ = [0+] 262 [1+]  45 [2+]  42 [3+]   4 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 110.316 [1+] 18.9474 [2+] 17.6842 [3+] 1.68421 [4+] 0.842105 [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.