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/csladspa-6.11.1/include/dirent.h
Examining data/csladspa-6.11.1/src/csladspa.cpp
Examining data/csladspa-6.11.1/src/ladspa.h

FINAL RESULTS:

data/csladspa-6.11.1/src/csladspa.cpp:240:7:  [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(tmp, csdname);
data/csladspa-6.11.1/src/csladspa.cpp:298:15:  [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(tmp, (const char*)temp.c_str());
data/csladspa-6.11.1/src/csladspa.cpp:308:15:  [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(tmp, (const char*)temp.c_str());
data/csladspa-6.11.1/src/csladspa.cpp:322:15:  [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(tmp, (const char*)temp.c_str());
data/csladspa-6.11.1/src/csladspa.cpp:335:19:  [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(PortNames[portcnt], (const char*)temp2.c_str());
data/csladspa-6.11.1/src/csladspa.cpp:476:13:  [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(csdnames[i], (char*)name.c_str());
data/csladspa-6.11.1/src/csladspa.cpp:431:9:  [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.
  src = getenv("LADSPA_PATH");
data/csladspa-6.11.1/include/dirent.h:228:5:  [2] (buffer) wchar_t:
  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.
    wchar_t d_name[PATH_MAX];
data/csladspa-6.11.1/include/dirent.h:280: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 d_name[PATH_MAX];
data/csladspa-6.11.1/include/dirent.h:628:9:  [2] (buffer) wchar_t:
  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.
        wchar_t wname[PATH_MAX];
data/csladspa-6.11.1/src/csladspa.cpp:108: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(sr,"%d", (int)rate);
data/csladspa-6.11.1/src/csladspa.cpp:116: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(kr,"%f",(float)rate/ksmps);
data/csladspa-6.11.1/src/csladspa.cpp:255:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            chans = (int) atoi((char *) temp.c_str());
data/csladspa-6.11.1/src/csladspa.cpp:273:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          aux[plugindex].ksmps = (int) atoi((char *) temp.c_str());
data/csladspa-6.11.1/src/csladspa.cpp:315:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              desc->UniqueID = atoi(temp.c_str());
data/csladspa-6.11.1/src/csladspa.cpp:356:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    lower =  atoi((char*)temp.substr(0, indx).c_str());
data/csladspa-6.11.1/src/csladspa.cpp:357:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    upper =  atoi((char*)temp.substr(indx+1, 200).c_str());
data/csladspa-6.11.1/src/csladspa.cpp:381:11:  [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(PortNames[i], "csladspa-audio-in%d", i);
data/csladspa-6.11.1/src/csladspa.cpp:383:11:  [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(PortNames[i+chans], "csladspa-audio-out%d", i);
data/csladspa-6.11.1/src/csladspa.cpp:425: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 ladspa_path[1024] = "";
data/csladspa-6.11.1/src/csladspa.cpp:429:3:  [2] (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). Risk is low because the source is a constant string.
  strcpy(ladspa_path, "/Library/Audio/Plug-Ins/LADSPA");
data/csladspa-6.11.1/include/dirent.h:350:17:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            n = wcslen(dirname);
data/csladspa-6.11.1/src/csladspa.cpp:238:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tmp = new char[strlen(csdname)+1];
data/csladspa-6.11.1/src/csladspa.cpp:433:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ladspa_path, src, 1023);
data/csladspa-6.11.1/src/csladspa.cpp:439:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(ladspa_path) == 0) dip = opendir(".");
data/csladspa-6.11.1/src/csladspa.cpp:449:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ladspa_path, path.substr(0,indx).c_str(), 1023);
data/csladspa-6.11.1/src/csladspa.cpp:464:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if(strlen(ladspa_path) != 0) {

ANALYSIS SUMMARY:

Hits = 27
Lines analyzed = 2046 in approximately 0.07 seconds (28578 lines/second)
Physical Source Lines of Code (SLOC) = 1042
Hits@level = [0]   2 [1]   6 [2]  14 [3]   1 [4]   6 [5]   0
Hits@level+ = [0+]  29 [1+]  27 [2+]  21 [3+]   7 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 27.8311 [1+] 25.9117 [2+] 20.1536 [3+] 6.71785 [4+] 5.75816 [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.