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/libaudio-mixer-perl-0.7/Mix.h
Examining data/libaudio-mixer-perl-0.7/Mix.c

FINAL RESULTS:

data/libaudio-mixer-perl-0.7/Mix.c:280:5:  [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(buf, dname[i]);
data/libaudio-mixer-perl-0.7/Mix.c:33: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 dev_fname[BUFSIZE] = "";
data/libaudio-mixer-perl-0.7/Mix.c:52:19:  [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).
  if ((mixer_fd = open(dev_fname, O_RDWR)) < 0) {
data/libaudio-mixer-perl-0.7/Mix.c:160: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.
			return((char *) dname[j]);
data/libaudio-mixer-perl-0.7/Mix.c:271:10:  [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 buf[BUFSIZE];
data/libaudio-mixer-perl-0.7/Mix.c:40:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(dev_fname, fname, BUFSIZE-1);
data/libaudio-mixer-perl-0.7/Mix.c:50:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dev_fname, MIXER, BUFSIZE-1);
data/libaudio-mixer-perl-0.7/Mix.c:111: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).
  len = strlen(cntrl);
data/libaudio-mixer-perl-0.7/Mix.c:179:8:  [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(cntrl);
data/libaudio-mixer-perl-0.7/Mix.c:230: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).
  len = strlen(cntrl);
data/libaudio-mixer-perl-0.7/Mix.c:275: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).
    l = strlen(dname[i]);
data/libaudio-mixer-perl-0.7/Mix.c:281:5:  [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(buf, " ");

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 323 in approximately 0.04 seconds (7821 lines/second)
Physical Source Lines of Code (SLOC) = 239
Hits@level = [0]   8 [1]   7 [2]   4 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  20 [1+]  12 [2+]   5 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 83.682 [1+] 50.2092 [2+] 20.9205 [3+] 4.1841 [4+] 4.1841 [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.