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/globus-gram-job-manager-fork-3.1/starter/fork_starter.c
Examining data/globus-gram-job-manager-fork-3.1/seg/seg_fork_module.c

FINAL RESULTS:

data/globus-gram-job-manager-fork-3.1/seg/seg_fork_module.c:75:5:  [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, ap);
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:212:18:  [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.
        else if (access(argv[1], W_OK) != 0)
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:1568:5:  [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, ap);
data/globus-gram-job-manager-fork-3.1/seg/seg_fork_module.c:278:29:  [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).
        logfile_state->fp = fopen(logfile_state->path, "r");
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:808:9:  [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((*new_task)->task,
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:881:27:  [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).
            task->count = atoi(value);
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:1117:18:  [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).
            rc = open(task->stdin_path, O_RDONLY);
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:1126:18:  [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).
            rc = open(task->stdout_path[i], O_WRONLY|O_APPEND|O_CREAT, 0666);
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:1135:18:  [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).
            rc = open(task->stderr_path[i], O_WRONLY|O_APPEND|O_CREAT, 0666);
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:1257:17:  [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).
        logfd = open(globus_l_fork_logfile_path, O_WRONLY|O_APPEND);
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:700:14:  [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).
    buflen = strlen(task->task) + 1;
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:1067:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    rc = read(pipefds[0], &x, sizeof(int));
data/globus-gram-job-manager-fork-3.1/starter/fork_starter.c:1530:11:  [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).
    len = strlen(value);

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 2345 in approximately 0.05 seconds (48264 lines/second)
Physical Source Lines of Code (SLOC) = 1840
Hits@level = [0]  15 [1]   3 [2]   7 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  28 [1+]  13 [2+]  10 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 15.2174 [1+] 7.06522 [2+] 5.43478 [3+] 1.63043 [4+] 1.63043 [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.