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/xwallpaper-0.6.3/load_jpeg.c
Examining data/xwallpaper-0.6.3/main.c
Examining data/xwallpaper-0.6.3/load_png.c
Examining data/xwallpaper-0.6.3/debug.c
Examining data/xwallpaper-0.6.3/outputs.c
Examining data/xwallpaper-0.6.3/seccomp.c
Examining data/xwallpaper-0.6.3/options.c
Examining data/xwallpaper-0.6.3/functions.h
Examining data/xwallpaper-0.6.3/util.c
Examining data/xwallpaper-0.6.3/load_xpm.c

FINAL RESULTS:

data/xwallpaper-0.6.3/seccomp.c:140:53:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	    seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(chmod), 0) ||
data/xwallpaper-0.6.3/seccomp.c:141:53:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	    seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(chown), 0) ||
data/xwallpaper-0.6.3/debug.c:29: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, format, arg);
data/xwallpaper-0.6.3/seccomp.c:44:56:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(access), 0) ||
data/xwallpaper-0.6.3/options.c:47: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(&(*bufs)[(*count)++], &buf, sizeof(buf));
data/xwallpaper-0.6.3/options.c:78:2:  [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(o, &option, sizeof(*o));
data/xwallpaper-0.6.3/options.c:98:20:  [2] (misc) fopen:
  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 ((buffer.fp = fopen(config->options[i].filename, "r"))
data/xwallpaper-0.6.3/options.c:171:2:  [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(*box, &b, sizeof(b));
data/xwallpaper-0.6.3/outputs.c:123: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(outputs[j].name, name, name_len);
data/xwallpaper-0.6.3/seccomp.c:149:53:  [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).
	    seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 0) ||
data/xwallpaper-0.6.3/seccomp.c:183:56:  [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).
	    seccomp_rule_add(ctx, SCMP_ACT_ERRNO(1), SCMP_SYS(open), 0) ||
data/xwallpaper-0.6.3/load_xpm.c:89:34:  [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).
			    screen->default_colormap, strlen(s), s);
data/xwallpaper-0.6.3/seccomp.c:91:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 0) ||
data/xwallpaper-0.6.3/seccomp.c:106:53:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(umask), 0) ||

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 1853 in approximately 0.06 seconds (32542 lines/second)
Physical Source Lines of Code (SLOC) = 1390
Hits@level = [0]   8 [1]   3 [2]   7 [3]   0 [4]   2 [5]   2
Hits@level+ = [0+]  22 [1+]  14 [2+]  11 [3+]   4 [4+]   4 [5+]   2
Hits/KSLOC@level+ = [0+] 15.8273 [1+] 10.0719 [2+] 7.91367 [3+] 2.8777 [4+] 2.8777 [5+] 1.43885
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.