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-gsi-credential-8.1/library/globus_gsi_credential.c
Examining data/globus-gsi-credential-8.1/library/globus_gsi_cred_handle_attrs.c
Examining data/globus-gsi-credential-8.1/library/globus_i_gsi_credential.h
Examining data/globus-gsi-credential-8.1/library/globus_gsi_cred_error.c
Examining data/globus-gsi-credential-8.1/library/globus_gsi_cred_handle.c
Examining data/globus-gsi-credential-8.1/library/globus_gsi_cred_constants.h
Examining data/globus-gsi-credential-8.1/library/globus_gsi_credential.h

FINAL RESULTS:

data/globus-gsi-credential-8.1/library/globus_gsi_credential.c:1883:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(proxy_filename, S_IRWXU);
data/globus-gsi-credential-8.1/library/globus_gsi_cred_error.c:30:1:  [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 * 
data/globus-gsi-credential-8.1/library/globus_gsi_cred_handle.c:1287:13:  [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(policy_string,
data/globus-gsi-credential-8.1/library/globus_gsi_cred_handle.c:1308: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(final_policy_string, policy_string, policy_string_length);
data/globus-gsi-credential-8.1/library/globus_gsi_credential.c:72:41:  [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).
        globus_i_gsi_cred_debug_level = atoi(tmp_string);
data/globus-gsi-credential-8.1/library/globus_gsi_credential.c:83:43:  [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).
        globus_i_gsi_cred_debug_fstream = fopen(tmp_string, "a");
data/globus-gsi-credential-8.1/library/globus_gsi_credential.c:1524:5:  [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                                password[100];
data/globus-gsi-credential-8.1/library/globus_gsi_cred_handle.c:1273:36:  [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).
            policy_string_length = strlen(GLOBUS_NULL_POLICY);            
data/globus-gsi-credential-8.1/library/globus_gsi_credential.c:1417:28:  [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).
    BIO_write(bp, pem_buf, strlen(pem_buf));
data/globus-gsi-credential-8.1/library/globus_gsi_credential.c:1655:47:  [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).
                                              strlen(password));

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 6149 in approximately 0.11 seconds (55479 lines/second)
Physical Source Lines of Code (SLOC) = 4120
Hits@level = [0]   0 [1]   3 [2]   6 [3]   0 [4]   0 [5]   1
Hits@level+ = [0+]  10 [1+]  10 [2+]   7 [3+]   1 [4+]   1 [5+]   1
Hits/KSLOC@level+ = [0+] 2.42718 [1+] 2.42718 [2+] 1.69903 [3+] 0.242718 [4+] 0.242718 [5+] 0.242718
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.