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/gkrellm-volume-2.1.13/volume.c
Examining data/gkrellm-volume-2.1.13/mixer.c
Examining data/gkrellm-volume-2.1.13/alsa_mixer.c
Examining data/gkrellm-volume-2.1.13/mixer.h
Examining data/gkrellm-volume-2.1.13/oss_mixer.c
Examining data/gkrellm-volume-2.1.13/oss_mixer.h
Examining data/gkrellm-volume-2.1.13/volume.h
Examining data/gkrellm-volume-2.1.13/win32_mixer.c
Examining data/gkrellm-volume-2.1.13/alsa_mixer.h
Examining data/gkrellm-volume-2.1.13/win32_mixer.h

FINAL RESULTS:

data/gkrellm-volume-2.1.13/alsa_mixer.c:25:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, va);
data/gkrellm-volume-2.1.13/oss_mixer.c:149:14:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        rc = realpath(pglob.gl_pathv[i],buffer);
data/gkrellm-volume-2.1.13/alsa_mixer.c:333:3:  [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/gkrellm-volume-2.1.13/alsa_mixer.c:341: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(name, "hw:%d", i);
data/gkrellm-volume-2.1.13/oss_mixer.c:55: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).
  if ((fd = open(id,O_RDWR)) == -1) return NULL;
data/gkrellm-volume-2.1.13/oss_mixer.c:148:9:  [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 *rc,buffer[PATH_MAX];
data/gkrellm-volume-2.1.13/volume.c:19: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 right_click_cmd[1024];
data/gkrellm-volume-2.1.13/volume.c:539:37:  [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).
    if (m != NULL) s = add_slider(m,atoi(arg));
data/gkrellm-volume-2.1.13/win32_mixer.c:47:21:  [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).
    for (i = 0; i < strlen(name); i++) {

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 2527 in approximately 0.07 seconds (38847 lines/second)
Physical Source Lines of Code (SLOC) = 1929
Hits@level = [0]   9 [1]   1 [2]   6 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  18 [1+]   9 [2+]   8 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 9.33126 [1+] 4.66563 [2+] 4.14723 [3+] 1.03681 [4+] 0.518403 [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.