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-xio-gridftp-driver-3.2/globus_xio_gridftp_driver.h
Examining data/globus-xio-gridftp-driver-3.2/globus_xio_gridftp_driver.c
Examining data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c

FINAL RESULTS:

data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c:141:7:  [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(eret_esto_alg_str, argv[ctr + 1]);
data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c:70:50:  [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.
    const char *                            cs = getenv("FTP_TEST_SOURCE_HOST");
data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c:71:55:  [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.
    const char *                            subject = getenv("GLOBUS_FTP_CLIENT_TEST_SUBJECT");
data/globus-xio-gridftp-driver-3.2/globus_xio_gridftp_driver.c:1966:5:  [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(attr, &globus_l_xio_gridftp_attr_default, 
data/globus-xio-gridftp-driver-3.2/globus_xio_gridftp_driver.c:2440:5:  [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(dst_attr, src_attr, sizeof(globus_l_xio_gridftp_attr_t)); 
data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c:82: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				    eret_esto_alg_str[ALG_NAME_LEN];
data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c:235:14:  [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).
        fp = fopen(filename, "r");
data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c:271:14:  [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).
        fp = fopen(filename, "w");
data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c:203:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read)
data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c:230:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!read)
data/globus-xio-gridftp-driver-3.2/test/globus_gridftp_driver_test.c:246:22:  [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).
            nbytes = strlen((char *) buffer);

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 3390 in approximately 0.11 seconds (30368 lines/second)
Physical Source Lines of Code (SLOC) = 2528
Hits@level = [0]   7 [1]   3 [2]   5 [3]   2 [4]   1 [5]   0
Hits@level+ = [0+]  18 [1+]  11 [2+]   8 [3+]   3 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 7.12025 [1+] 4.35127 [2+] 3.16456 [3+] 1.18671 [4+] 0.39557 [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.