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/pnmixer-0.7.2/src/alsa.c
Examining data/pnmixer-0.7.2/src/alsa.h
Examining data/pnmixer-0.7.2/src/audio.c
Examining data/pnmixer-0.7.2/src/audio.h
Examining data/pnmixer-0.7.2/src/hotkey.c
Examining data/pnmixer-0.7.2/src/hotkey.h
Examining data/pnmixer-0.7.2/src/hotkeys.c
Examining data/pnmixer-0.7.2/src/hotkeys.h
Examining data/pnmixer-0.7.2/src/main.c
Examining data/pnmixer-0.7.2/src/main.h
Examining data/pnmixer-0.7.2/src/notif.c
Examining data/pnmixer-0.7.2/src/notif.h
Examining data/pnmixer-0.7.2/src/prefs.c
Examining data/pnmixer-0.7.2/src/prefs.h
Examining data/pnmixer-0.7.2/src/support-intl.c
Examining data/pnmixer-0.7.2/src/support-intl.h
Examining data/pnmixer-0.7.2/src/support-log.c
Examining data/pnmixer-0.7.2/src/support-log.h
Examining data/pnmixer-0.7.2/src/support-ui.c
Examining data/pnmixer-0.7.2/src/support-ui.h
Examining data/pnmixer-0.7.2/src/ui-about-dialog.c
Examining data/pnmixer-0.7.2/src/ui-about-dialog.h
Examining data/pnmixer-0.7.2/src/ui-hotkey-dialog.c
Examining data/pnmixer-0.7.2/src/ui-hotkey-dialog.h
Examining data/pnmixer-0.7.2/src/ui-popup-menu.c
Examining data/pnmixer-0.7.2/src/ui-popup-menu.h
Examining data/pnmixer-0.7.2/src/ui-popup-window.c
Examining data/pnmixer-0.7.2/src/ui-popup-window.h
Examining data/pnmixer-0.7.2/src/ui-prefs-dialog.c
Examining data/pnmixer-0.7.2/src/ui-prefs-dialog.h
Examining data/pnmixer-0.7.2/src/ui-tray-icon.c
Examining data/pnmixer-0.7.2/src/ui-tray-icon.h

FINAL RESULTS:

data/pnmixer-0.7.2/src/main.c:195:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(err_buf, sizeof err_buf, fmt, ap);
data/pnmixer-0.7.2/src/support-log.c:72:2:  [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, buf, args);
data/pnmixer-0.7.2/src/alsa.c:46:2:  [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 buf[1024];
data/pnmixer-0.7.2/src/main.c:191:2:  [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 err_buf[512];
data/pnmixer-0.7.2/src/support-log.c:51:2:  [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 buf[1024];
data/pnmixer-0.7.2/src/ui-tray-icon.c:308:3:  [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, vol_meter->row, vm_width * 4);
data/pnmixer-0.7.2/src/prefs.c:364:32:  [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).
		    (keyFile, DEFAULT_PREFS, strlen(DEFAULT_PREFS), 0, &err)) {

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 7142 in approximately 0.17 seconds (42049 lines/second)
Physical Source Lines of Code (SLOC) = 3971
Hits@level = [0]   6 [1]   1 [2]   4 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  13 [1+]   7 [2+]   6 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 3.27373 [1+] 1.76278 [2+] 1.51095 [3+] 0.503651 [4+] 0.503651 [5+]   0
Dot directories skipped = 2 (--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.