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/mixer.app-1.8.0/Xpm.h
Examining data/mixer.app-1.8.0/Xpm.cc
Examining data/mixer.app-1.8.0/Mixer.cc
Examining data/mixer.app-1.8.0/Main.cc
Examining data/mixer.app-1.8.0/Mixer.h

FINAL RESULTS:

data/mixer.app-1.8.0/Mixer.cc:139:16:  [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(mSettingsFile, home);
data/mixer.app-1.8.0/Mixer.cc:140:16:  [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(mSettingsFile, SETTINGS);
data/mixer.app-1.8.0/Mixer.cc:136:26:  [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.
            char* home = getenv("HOME");
data/mixer.app-1.8.0/Mixer.cc:116:28:  [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).
            mWheelButton = atoi(argv[i+1]);
data/mixer.app-1.8.0/Mixer.cc:353:16:  [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).
      int fd = open(mMixerDevice, 0);
data/mixer.app-1.8.0/Mixer.cc:372: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.
         char dummy[1024];
data/mixer.app-1.8.0/Mixer.cc:424:9:  [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).
   fd = open(mMixerDevice, 0);
data/mixer.app-1.8.0/Mixer.cc:485:9:  [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).
   fd = open(mMixerDevice, 0);
data/mixer.app-1.8.0/Mixer.cc:138:41:  [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).
               mSettingsFile = new char[strlen(home) + strlen(SETTINGS) + 1];
data/mixer.app-1.8.0/Mixer.cc:138:56:  [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).
               mSettingsFile = new char[strlen(home) + strlen(SETTINGS) + 1];
data/mixer.app-1.8.0/Mixer.cc:601:7:  [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(50000);
data/mixer.app-1.8.0/Xpm.cc:104:50:  [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).
   XDrawString(mDisplay, mImage, gc, x, y, text, strlen(text));

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 870 in approximately 0.03 seconds (32105 lines/second)
Physical Source Lines of Code (SLOC) = 589
Hits@level = [0]   0 [1]   4 [2]   5 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+]  12 [1+]  12 [2+]   8 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 20.3735 [1+] 20.3735 [2+] 13.5823 [3+] 5.09338 [4+] 3.39559 [5+]   0
Symlinks skipped = 1 (--allowlink overrides but see doc for security issue)
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.