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/schedtool-1.3.0/error.h
Examining data/schedtool-1.3.0/schedtool.c
Examining data/schedtool-1.3.0/util.h
Examining data/schedtool-1.3.0/syscall_magic.h
Examining data/schedtool-1.3.0/error.c

FINAL RESULTS:

data/schedtool-1.3.0/error.c:39:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, args);
data/schedtool-1.3.0/schedtool.c:405:8:  [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.
			ret=execvp(*new_argv, new_argv);
data/schedtool-1.3.0/schedtool.c:161:11:  [3] (buffer) getopt:
  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((c=getopt(ac, dc, "+NFRBID012345M:a:p:n:ervh")) != -1) {
data/schedtool-1.3.0/schedtool.c:90:32:  [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.
#define CPUSET_HEXSTRING(name) char name[CPU_SETSIZE / 2]
data/schedtool-1.3.0/schedtool.c:196:11:  [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).
			policy=atoi(optarg);
data/schedtool-1.3.0/schedtool.c:205:9:  [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).
			nice=atoi(optarg);
data/schedtool-1.3.0/schedtool.c:211:9:  [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).
			prio=atoi(optarg);
data/schedtool-1.3.0/schedtool.c:354:7:  [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).
		pid=atoi(e->args[i]);
data/schedtool-1.3.0/schedtool.c:561:13:  [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).
				tmp_cpu=atoi(tmp_arg);
data/schedtool-1.3.0/schedtool.c:508:12:  [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).
	int len = strlen(str);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 880 in approximately 0.03 seconds (27942 lines/second)
Physical Source Lines of Code (SLOC) = 523
Hits@level = [0]  15 [1]   1 [2]   6 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+]  25 [1+]  10 [2+]   9 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 47.8011 [1+] 19.1205 [2+] 17.2084 [3+] 5.73614 [4+] 3.82409 [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.