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/pd-csound-1.01.0/src/csoundapi_tilde.c

FINAL RESULTS:

data/pd-csound-1.01.0/src/csoundapi_tilde.c:263: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(cmdl[i], x->curdir->s_name);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:265:15:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
              strcat(cmdl[i],tmp);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:480: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(cmdl[i], x->curdir->s_name);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:482:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(cmdl[i],tmp);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:587:11:  [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(orcfile, pp->curdir->s_name);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:589:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
          strcat(orcfile,pp->orc);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:759:7:  [4] (format) vsnprintf:
  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.
      vsnprintf(x->csmess, MAXMESSTRING, format, valist);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:52: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 values[MIDI_QUEUE_MAX];
data/pd-csound-1.01.0/src/csoundapi_tilde.c:205: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.
    const char *extensions[6] = {".csd", ".orc", ".sco",".CSD",".ORC",".SCO"};
data/pd-csound-1.01.0/src/csoundapi_tilde.c:391: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    type[10];
data/pd-csound-1.01.0/src/csoundapi_tilde.c:594:10:  [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).
    fp = fopen(orcfile, "rb");
data/pd-csound-1.01.0/src/csoundapi_tilde.c:691: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    chs[64];
data/pd-csound-1.01.0/src/csoundapi_tilde.c:731: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 chn[64];
data/pd-csound-1.01.0/src/csoundapi_tilde.c:207:11:  [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).
    len = strlen(in);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:262:34:  [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).
                (char *)  malloc(strlen(tmp) + strlen(x->curdir->s_name) + 2);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:262:48:  [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).
                (char *)  malloc(strlen(tmp) + strlen(x->curdir->s_name) + 2);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:264:15:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
              strcat(cmdl[i],"/");
data/pd-csound-1.01.0/src/csoundapi_tilde.c:479:32:  [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).
              (char *)  malloc(strlen(tmp) + strlen(x->curdir->s_name) + 2);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:479:46:  [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).
              (char *)  malloc(strlen(tmp) + strlen(x->curdir->s_name) + 2);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:481:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(cmdl[i],"/");
data/pd-csound-1.01.0/src/csoundapi_tilde.c:586:30:  [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).
            (char *)  malloc(strlen(pp->orc) + strlen(pp->curdir->s_name) + 2);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:586:48:  [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).
            (char *)  malloc(strlen(pp->orc) + strlen(pp->curdir->s_name) + 2);
data/pd-csound-1.01.0/src/csoundapi_tilde.c:588:11:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
          strcat(orcfile,"/");

ANALYSIS SUMMARY:

Hits = 23
Lines analyzed = 947 in approximately 0.03 seconds (29782 lines/second)
Physical Source Lines of Code (SLOC) = 799
Hits@level = [0]   2 [1]  10 [2]   6 [3]   0 [4]   7 [5]   0
Hits@level+ = [0+]  25 [1+]  23 [2+]  13 [3+]   7 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 31.2891 [1+] 28.786 [2+] 16.2703 [3+] 8.76095 [4+] 8.76095 [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.