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/prctl-1.6/prctl.c

FINAL RESULTS:

data/prctl-1.6/prctl.c:281:2:  [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(fullpath, argv[0]);
data/prctl-1.6/prctl.c:442:3:  [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(shellname, getenv("SHELL"));
data/prctl-1.6/prctl.c:453:5:  [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(shellname, DEFAULT_SHELL);
data/prctl-1.6/prctl.c:456:6:  [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(shellname, pwd_entry->pw_shell);
data/prctl-1.6/prctl.c:458:6:  [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(shellname, DEFAULT_SHELL);
data/prctl-1.6/prctl.c:466:7:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (execlp(shellname, (char *)shellname, (char *) 0) == -1) {
data/prctl-1.6/prctl.c:475:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (execvp(argv[cmd_start], argv+cmd_start) == -1) {
data/prctl-1.6/prctl.c:296:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "+qhv", longopts, 
data/prctl-1.6/prctl.c:442:21:  [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.
		strcpy(shellname, getenv("SHELL"));
data/prctl-1.6/prctl.c:271: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 fullpath[512];
data/prctl-1.6/prctl.c:272: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 shellname[128];
data/prctl-1.6/prctl.c:76:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	int umask;
data/prctl-1.6/prctl.c:96:51:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				__asm__ __volatile__ ("mov %0=psr.um;;": "=r"(umask) :: "memory");
data/prctl-1.6/prctl.c:97:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				if (umask & PSR_UC)
data/prctl-1.6/prctl.c:209:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	int umask;
data/prctl-1.6/prctl.c:279:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	int umask;

ANALYSIS SUMMARY:

Hits = 16
Lines analyzed = 483 in approximately 0.02 seconds (23056 lines/second)
Physical Source Lines of Code (SLOC) = 352
Hits@level = [0]  45 [1]   5 [2]   2 [3]   2 [4]   7 [5]   0
Hits@level+ = [0+]  61 [1+]  16 [2+]  11 [3+]   9 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 173.295 [1+] 45.4545 [2+] 31.25 [3+] 25.5682 [4+] 19.8864 [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.