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/clalsadrv-2.0.0/apps/loopback.cc
Examining data/clalsadrv-2.0.0/apps/latency.cc
Examining data/clalsadrv-2.0.0/libs/clalsadrv.cc
Examining data/clalsadrv-2.0.0/libs/clalsadrv.h

FINAL RESULTS:

data/clalsadrv-2.0.0/apps/latency.cc:244: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 (playdev, av [1]);
data/clalsadrv-2.0.0/apps/latency.cc:245: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 (captdev, av [2]);
data/clalsadrv-2.0.0/apps/loopback.cc:106: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 (playdev, av [1]);
data/clalsadrv-2.0.0/apps/loopback.cc:107: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 (captdev, av [2]);
data/clalsadrv-2.0.0/apps/latency.cc:167:8:  [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          playdev [256];
data/clalsadrv-2.0.0/apps/latency.cc:168:8:  [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          captdev [256];
data/clalsadrv-2.0.0/apps/latency.cc:246:14:  [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).
    fsamp  = atoi (av [3]);
data/clalsadrv-2.0.0/apps/latency.cc:247:14:  [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).
    frsize = atoi (av [4]);
data/clalsadrv-2.0.0/apps/latency.cc:248:14:  [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).
    nfrags = atoi (av [5]);
data/clalsadrv-2.0.0/apps/loopback.cc:30: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          playdev [256];
data/clalsadrv-2.0.0/apps/loopback.cc:31: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          captdev [256];
data/clalsadrv-2.0.0/apps/loopback.cc:108:14:  [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).
    fsamp  = atoi (av [3]);
data/clalsadrv-2.0.0/apps/loopback.cc:109:14:  [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).
    frsize = atoi (av [4]);
data/clalsadrv-2.0.0/apps/loopback.cc:110:14:  [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).
    nfrags = atoi (av [5]);
data/clalsadrv-2.0.0/libs/clalsadrv.h:142: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                  *_play_ptr [MAXPLAY];
data/clalsadrv-2.0.0/libs/clalsadrv.h:143: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            *_capt_ptr [MAXCAPT];
data/clalsadrv-2.0.0/apps/latency.cc:263:2:  [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 (250000);

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 1429 in approximately 0.08 seconds (16915 lines/second)
Physical Source Lines of Code (SLOC) = 1077
Hits@level = [0]  76 [1]   1 [2]  12 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  93 [1+]  17 [2+]  16 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 86.351 [1+] 15.7846 [2+] 14.8561 [3+] 3.71402 [4+] 3.71402 [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.