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/aliki-0.3.0/source/splashwin.cc
Examining data/aliki-0.3.0/source/mainthr.h
Examining data/aliki-0.3.0/source/editwin.cc
Examining data/aliki-0.3.0/source/calcthr.h
Examining data/aliki-0.3.0/source/extproc.h
Examining data/aliki-0.3.0/source/styles.cc
Examining data/aliki-0.3.0/source/sgenwin.h
Examining data/aliki-0.3.0/source/guiclass.cc
Examining data/aliki-0.3.0/source/filewin.cc
Examining data/aliki-0.3.0/source/impdata.cc
Examining data/aliki-0.3.0/source/audiothr.cc
Examining data/aliki-0.3.0/source/styles.h
Examining data/aliki-0.3.0/source/itypes.h
Examining data/aliki-0.3.0/source/editwin.h
Examining data/aliki-0.3.0/source/shmem.cc
Examining data/aliki-0.3.0/source/lfqueue.cc
Examining data/aliki-0.3.0/source/acweight.cc
Examining data/aliki-0.3.0/source/mainwin.cc
Examining data/aliki-0.3.0/source/shmem.h
Examining data/aliki-0.3.0/source/guiclass.h
Examining data/aliki-0.3.0/source/exptwin.cc
Examining data/aliki-0.3.0/source/exptwin.h
Examining data/aliki-0.3.0/source/progwin.h
Examining data/aliki-0.3.0/source/splashwin.h
Examining data/aliki-0.3.0/source/mainthr.cc
Examining data/aliki-0.3.0/source/aliki.cc
Examining data/aliki-0.3.0/source/control.h
Examining data/aliki-0.3.0/source/shdata.h
Examining data/aliki-0.3.0/source/convolve.h
Examining data/aliki-0.3.0/source/invfilt.cc
Examining data/aliki-0.3.0/source/calcthr.cc
Examining data/aliki-0.3.0/source/filtwin.h
Examining data/aliki-0.3.0/source/invfilt.h
Examining data/aliki-0.3.0/source/convolve.cc
Examining data/aliki-0.3.0/source/filtwin.cc
Examining data/aliki-0.3.0/source/filewin.h
Examining data/aliki-0.3.0/source/global.h
Examining data/aliki-0.3.0/source/sgenwin.cc
Examining data/aliki-0.3.0/source/acweight.h
Examining data/aliki-0.3.0/source/inverse.h
Examining data/aliki-0.3.0/source/control.cc
Examining data/aliki-0.3.0/source/audiothr.h
Examining data/aliki-0.3.0/source/mainwin.h
Examining data/aliki-0.3.0/source/progwin.cc
Examining data/aliki-0.3.0/source/impdata.h
Examining data/aliki-0.3.0/source/lfqueue.h
Examining data/aliki-0.3.0/source/extproc.cc
Examining data/aliki-0.3.0/source/aliki-rt.cc
Examining data/aliki-0.3.0/source/captwin.h
Examining data/aliki-0.3.0/source/captwin.cc

FINAL RESULTS:

data/aliki-0.3.0/source/captwin.cc:86:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (s, "%s-%s  [%s] Capture", PROGNAME, VERSION, resman->rname ());
data/aliki-0.3.0/source/captwin.cc:105:6:  [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 (_shdata->_ident, resman->rname ());
data/aliki-0.3.0/source/captwin.cc:118:6:  [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 (_shdata->_ident, (p) ? p : "hw:0,0");
data/aliki-0.3.0/source/captwin.cc:195:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  	    system (_titcom->text ());
data/aliki-0.3.0/source/captwin.cc:306:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		system (_titcom->text ());
data/aliki-0.3.0/source/captwin.cc:600:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	    if (sscanf (_grlab [i]->text (), "%s", s) != 1)
data/aliki-0.3.0/source/captwin.cc:605: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 (_shdata->_ipdat [i]._name, s);
data/aliki-0.3.0/source/captwin.cc:629:5:  [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 (_shdata->_opdat._name, s);
data/aliki-0.3.0/source/captwin.cc:640:5:  [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 (_shdata->_sessdir, name);
data/aliki-0.3.0/source/control.cc:188:5:  [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 (_sessiondir, _filewin->wdir ());
data/aliki-0.3.0/source/editwin.cc:583:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf (s, f, t);
data/aliki-0.3.0/source/exptwin.cc:81:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (s, "%s-%s  [%s] Export", PROGNAME, VERSION, resman->rname ());
data/aliki-0.3.0/source/extproc.cc:40:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (_shmname, "/%s-%d", shmname, getpid ());
data/aliki-0.3.0/source/extproc.cc:69:6:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (execvp (_args [0], _args) < 0)
data/aliki-0.3.0/source/filewin.cc:341:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        sscanf (_tfname->text (), "%s", s);
data/aliki-0.3.0/source/filewin.cc:362:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf (_tfname->text (), "%s", s);
data/aliki-0.3.0/source/filewin.cc:375:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf (_tfname->text (), "%s", s);
data/aliki-0.3.0/source/mainthr.cc:203:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (s, "%s/capture/%s", _shdata->_sessdir, D->_name);
data/aliki-0.3.0/source/mainthr.cc:212:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf (_shdata->_error, "Can't open capture file '%s'", s); 
data/aliki-0.3.0/source/mainthr.cc:385:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf (s, "%s/capture/%s", _shdata->_sessdir, D->_name);
data/aliki-0.3.0/source/mainwin.cc:64:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (s, "%s-%s  [%s]", PROGNAME, VERSION, resman->rname ());
data/aliki-0.3.0/source/mainwin.cc:468:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (name, "%s/%s", _filewin->wdir (), _filewin->file ());
data/aliki-0.3.0/source/mainwin.cc:472:9:  [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 (_file1, name); 
data/aliki-0.3.0/source/mainwin.cc:748:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (name, "%s/%s", _filewin->wdir (), _filewin->file ());
data/aliki-0.3.0/source/mainwin.cc:765:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (name, "%s/%s", _filewin->wdir (), _filewin->file ());
data/aliki-0.3.0/source/mainwin.cc:804:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        if (   (sscanf (_tcfil1->text (), "%s", s1) != 1)
data/aliki-0.3.0/source/mainwin.cc:860:5:  [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 (_file2, name);
data/aliki-0.3.0/source/mainwin.cc:925:5:  [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 (_file1, _file2); 
data/aliki-0.3.0/source/mainwin.cc:997:5:  [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 (_file2, name);
data/aliki-0.3.0/source/mainwin.cc:1066:5:  [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 (_file1, _file2); 
data/aliki-0.3.0/source/sgenwin.cc:50:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (s, "%s-%s  [%s]   Sweep", PROGNAME, VERSION, resman->rname ());
data/aliki-0.3.0/source/sgenwin.cc:206:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if ((sscanf (_tname->text (), "%s", name) != 1) || (*name == '?'))
data/aliki-0.3.0/source/sgenwin.cc:248:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (path, "%s/sweep/%s", _sess, name);
data/aliki-0.3.0/source/splashwin.cc:61:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (s, "Aliki-%s", VERSION);
data/aliki-0.3.0/source/captwin.cc:181:13:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            setstate (STOP); 
data/aliki-0.3.0/source/captwin.cc:185:13:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            setstate (TEST); 
data/aliki-0.3.0/source/captwin.cc:189:13:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            setstate (CAPT); 
data/aliki-0.3.0/source/captwin.cc:462:15:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void Captwin::setstate (int s)
data/aliki-0.3.0/source/captwin.h:65:10:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    void setstate (int);
data/aliki-0.3.0/source/control.cc:67: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.
    p = getenv ("HOME");
data/aliki-0.3.0/source/aliki.cc:32:13:  [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.
#define CP (char *)
data/aliki-0.3.0/source/audiothr.cc:145: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/aliki-0.3.0/source/audiothr.cc:169:9:  [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, "out_%d", i + 1);
data/aliki-0.3.0/source/audiothr.cc:174:9:  [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", i + 1);
data/aliki-0.3.0/source/audiothr.cc:306:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (k & 1) memcpy (_op [j], p, _fsize * sizeof (float));
data/aliki-0.3.0/source/calcthr.cc:340: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        path [1024];
data/aliki-0.3.0/source/calcthr.cc:382: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        path [1024];
data/aliki-0.3.0/source/captwin.cc:75: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/aliki-0.3.0/source/captwin.cc:289:27:  [2] (misc) open:
  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).
                _filewin->open (this, CB_FILE_LOAD, "sweep", ".ald", 0);
data/aliki-0.3.0/source/captwin.cc:366: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 [8];
data/aliki-0.3.0/source/captwin.cc:421: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, "%d", i + 1);
data/aliki-0.3.0/source/captwin.cc:572: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 [64];
data/aliki-0.3.0/source/captwin.cc:623: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/aliki-0.3.0/source/captwin.cc:631:5:  [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, "%5.3lf\n", (float)(_shdata->_oplen) / _shdata->_fsamp);
data/aliki-0.3.0/source/control.h:68: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        _sessiondir [1024];
data/aliki-0.3.0/source/control.h:69: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        _sweepfile [1024];
data/aliki-0.3.0/source/control.h: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        _fcorrfile [1024];
data/aliki-0.3.0/source/editwin.cc:553: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/aliki-0.3.0/source/editwin.cc:597: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/aliki-0.3.0/source/editwin.cc:622:9:  [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, "%d", _slin);
data/aliki-0.3.0/source/editwin.cc:638:21:  [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, "%d", -j * _ydel);
data/aliki-0.3.0/source/editwin.cc:1046: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 [32];
data/aliki-0.3.0/source/editwin.cc:1061:37:  [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.
        if (B->_flags == Mark::OFF) sprintf (s, "%9d", A->_posit);
data/aliki-0.3.0/source/editwin.cc:1062:14:  [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.
        else sprintf (s, "%9d   (%+d)", A->_posit - _ind0, A->_posit - B->_posit);
data/aliki-0.3.0/source/exptwin.cc:67: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/aliki-0.3.0/source/exptwin.h:72: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.
    static const char * _rtype_text [4];
data/aliki-0.3.0/source/exptwin.h:73: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.
    static const char * _rchan_text [2];
data/aliki-0.3.0/source/exptwin.h:74: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.
    static const char * _rsect_text [3];
data/aliki-0.3.0/source/exptwin.h:75: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.
    static const char * _rform_text [3];
data/aliki-0.3.0/source/extproc.h:47: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       _shmname [64];
data/aliki-0.3.0/source/extproc.h:48: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      *_args [4];
data/aliki-0.3.0/source/filewin.cc:219:15:  [2] (misc) open:
  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).
void Filewin::open (X_callback *callb, int cbarg, const char *path, const char *fext, const char *file)
data/aliki-0.3.0/source/filewin.cc:329: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 [64];
data/aliki-0.3.0/source/filewin.cc:359: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 [64];
data/aliki-0.3.0/source/filewin.cc:371: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 [64];
data/aliki-0.3.0/source/filewin.h:36:10:  [2] (misc) open:
  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).
    void open (X_callback *callb, int cbarg, const char *path, const char *fext, const char *file = 0);
data/aliki-0.3.0/source/filewin.h:73: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         _fext [64];
data/aliki-0.3.0/source/filewin.h:74: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         _cdir [1024];
data/aliki-0.3.0/source/filewin.h:75: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         _wdir [1024];
data/aliki-0.3.0/source/filtwin.h:108: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.
    static const char *_xtexts [33];
data/aliki-0.3.0/source/impdata.cc:132: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 p [HDRSIZE];
data/aliki-0.3.0/source/impdata.cc:140:21:  [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).
    if ((_aldfile = fopen (name, "r")) == 0) return ERR_OPEN;
data/aliki-0.3.0/source/impdata.cc:205: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 p [HDRSIZE];
data/aliki-0.3.0/source/impdata.cc:209:21:  [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).
    if ((_aldfile = fopen (name, "w")) == 0) return ERR_OPEN;
data/aliki-0.3.0/source/impdata.cc:211:5:  [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 (p, "aliki");
data/aliki-0.3.0/source/impdata.cc:437:5:  [2] (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 string.
    strcat (name, ".ald");
data/aliki-0.3.0/source/impdata.cc:467:5:  [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 (_suffix, "%d", chan + 1);
data/aliki-0.3.0/source/impdata.h:138: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.
    static char _suffix [12];
data/aliki-0.3.0/source/impdata.h:139: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.
    static const char *_suffix2 [2];
data/aliki-0.3.0/source/impdata.h:140: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.
    static const char *_suffix3 [2];
data/aliki-0.3.0/source/impdata.h:141: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.
    static const char *_suffix4 [2];
data/aliki-0.3.0/source/impdata.h:142: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.
    static const char *_suffix5 [4];
data/aliki-0.3.0/source/impdata.h:143: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.
    static const char *_suffix7 [4];
data/aliki-0.3.0/source/mainthr.cc:174: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/aliki-0.3.0/source/mainthr.cc:184:9:  [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 (_shdata->_error, "Can't open sweep file");
data/aliki-0.3.0/source/mainthr.cc:191:9:  [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 (_shdata->_error, "Sweep file has wrong type");
data/aliki-0.3.0/source/mainthr.cc:268:21:  [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 (p, _buff, k * sizeof (float));
data/aliki-0.3.0/source/mainthr.cc:370: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/aliki-0.3.0/source/mainwin.cc:50: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/aliki-0.3.0/source/mainwin.cc:206:13:  [2] (misc) open:
  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).
		_filewin->open (this, CB_FILE_SESS, ".", "", 0);
data/aliki-0.3.0/source/mainwin.cc:211:13:  [2] (misc) open:
  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).
		_filewin->open (this, CB_FILE_LOAD, ".", ".ald", 0);
data/aliki-0.3.0/source/mainwin.cc:224:31:  [2] (misc) open:
  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).
                    _filewin->open (this, CB_FILE_SAVE, "impresp", ".ald", _doall ? _base1 : 0);
data/aliki-0.3.0/source/mainwin.cc:227:31:  [2] (misc) open:
  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).
                    _filewin->open (this, CB_FILE_SAVE, "edited",  ".ald", _doall ? _base1 : 0);
data/aliki-0.3.0/source/mainwin.cc:230:31:  [2] (misc) open:
  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).
                    _filewin->open (this, CB_FILE_SAVE, ".", ".ald", 0);
data/aliki-0.3.0/source/mainwin.cc:277:27:  [2] (misc) open:
  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).
                _filewin->open (this, CB_FILE_LOAD, "sweep", ".ald", 0);
data/aliki-0.3.0/source/mainwin.cc:466: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 name [1024];
data/aliki-0.3.0/source/mainwin.cc:558: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/aliki-0.3.0/source/mainwin.cc:596:13:  [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, "%d / %d", data->i_sect () + 1, data->n_sect ());
data/aliki-0.3.0/source/mainwin.cc:706: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/aliki-0.3.0/source/mainwin.cc:715:9:  [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, "%d / %d", j + 1, n + 1);    
data/aliki-0.3.0/source/mainwin.cc:746: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 name [1024];
data/aliki-0.3.0/source/mainwin.cc:763: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 name [1024];
data/aliki-0.3.0/source/mainwin.cc:793: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      s1 [1024];
data/aliki-0.3.0/source/mainwin.cc:794: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      s2 [1024];
data/aliki-0.3.0/source/mainwin.cc:1114: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   t [16];
data/aliki-0.3.0/source/mainwin.cc:1154:9:  [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 (t, "%5.3lf", _gain);  
data/aliki-0.3.0/source/mainwin.cc:1163:9:  [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 (t, "%5.3lf", _gain);  
data/aliki-0.3.0/source/mainwin.cc:1336: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/aliki-0.3.0/source/mainwin.cc:1338:5:  [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, "%8.6lf", (v - _offs - _data1->dtref ()) / _data1->drate ());
data/aliki-0.3.0/source/mainwin.cc:1485: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 [256];
data/aliki-0.3.0/source/mainwin.h:177: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            _file1 [1024];
data/aliki-0.3.0/source/mainwin.h:178: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            _file2 [1024];
data/aliki-0.3.0/source/sgenwin.cc: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    s [1024];
data/aliki-0.3.0/source/sgenwin.cc:170: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 [64];
data/aliki-0.3.0/source/sgenwin.cc:172:5:  [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, "%d", _rate);
data/aliki-0.3.0/source/sgenwin.cc:202: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  name [64];
data/aliki-0.3.0/source/sgenwin.cc:203: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  path [1024];
data/aliki-0.3.0/source/shdata.h:64: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     _name [64];
data/aliki-0.3.0/source/shdata.h:76: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     _name [1024];
data/aliki-0.3.0/source/shdata.h:109: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     _ident [64];
data/aliki-0.3.0/source/shdata.h:122: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     _error [96];
data/aliki-0.3.0/source/shdata.h:125: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     _sessdir [1024];
data/aliki-0.3.0/source/splashwin.cc:55: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 [256];
data/aliki-0.3.0/source/captwin.cc:639:9:  [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 (name) > 1023) return;
data/aliki-0.3.0/source/control.cc:40:5:  [1] (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 character.
    strcpy (_sessiondir, ".");
data/aliki-0.3.0/source/control.cc:41:5:  [1] (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 character.
    strcpy (_sweepfile, "");
data/aliki-0.3.0/source/filewin.cc:246:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (_fext, fext, 64);
data/aliki-0.3.0/source/filewin.cc:270:20:  [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 (fext) ke = strlen (fext); 
data/aliki-0.3.0/source/filewin.cc:293: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).
        kn = strlen (E->d_name);

ANALYSIS SUMMARY:

Hits = 139
Lines analyzed = 10116 in approximately 0.23 seconds (43346 lines/second)
Physical Source Lines of Code (SLOC) = 7518
Hits@level = [0]  53 [1]   6 [2]  93 [3]   6 [4]  34 [5]   0
Hits@level+ = [0+] 192 [1+] 139 [2+] 133 [3+]  40 [4+]  34 [5+]   0
Hits/KSLOC@level+ = [0+] 25.5387 [1+] 18.489 [2+] 17.6909 [3+] 5.32056 [4+] 4.52248 [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.