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-ftp-client-9.2/globus_ftp_client_plugin.h
Examining data/globus-ftp-client-9.2/globus_ftp_client_throughput_plugin.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_transfer.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_perf_plugin.c
Examining data/globus-ftp-client-9.2/globus_i_ftp_client.h
Examining data/globus-ftp-client-9.2/globus_ftp_client_restart_plugin.h
Examining data/globus-ftp-client-9.2/globus_ftp_client_restart_marker.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_throughput_nl_plugin.h
Examining data/globus-ftp-client-9.2/globus_ftp_client_restart.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_data.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_state.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_restart_marker_plugin.h
Examining data/globus-ftp-client-9.2/globus_ftp_client_debug_plugin.h
Examining data/globus-ftp-client-9.2/globus_ftp_client_debug_plugin.c
Examining data/globus-ftp-client-9.2/globus_ftp_client.h
Examining data/globus-ftp-client-9.2/test/mlst-test.c
Examining data/globus-ftp-client-9.2/test/rmdir-test.c
Examining data/globus-ftp-client-9.2/test/mkdir-test.c
Examining data/globus-ftp-client-9.2/test/partial-put-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c
Examining data/globus-ftp-client-9.2/test/multiget-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.h
Examining data/globus-ftp-client-9.2/test/partial-transfer-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c
Examining data/globus-ftp-client-9.2/test/extended-transfer-test.c
Examining data/globus-ftp-client-9.2/test/get-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_perf_plugin.h
Examining data/globus-ftp-client-9.2/test/ascii-machine-list-test.c
Examining data/globus-ftp-client-9.2/test/chgrp-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.h
Examining data/globus-ftp-client-9.2/test/delete-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c
Examining data/globus-ftp-client-9.2/test/partial-read-all-test.c
Examining data/globus-ftp-client-9.2/test/move-test.c
Examining data/globus-ftp-client-9.2/test/exist-test.c
Examining data/globus-ftp-client-9.2/test/chmod-test.c
Examining data/globus-ftp-client-9.2/test/feat-test.c
Examining data/globus-ftp-client-9.2/test/cksm-test.c
Examining data/globus-ftp-client-9.2/test/lingering-get-test.c
Examining data/globus-ftp-client-9.2/test/multiple-block-put-test.c
Examining data/globus-ftp-client-9.2/test/cache-all-test.c
Examining data/globus-ftp-client-9.2/test/bad-buffer-test.c
Examining data/globus-ftp-client-9.2/test/modification-time-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.h
Examining data/globus-ftp-client-9.2/test/extended-get-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_pause_plugin.c
Examining data/globus-ftp-client-9.2/test/utime-test.c
Examining data/globus-ftp-client-9.2/test/pipelined-transfer-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_perf_plugin.c
Examining data/globus-ftp-client-9.2/test/put-test.c
Examining data/globus-ftp-client-9.2/test/caching-transfer-test.c
Examining data/globus-ftp-client-9.2/test/user-auth-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_throughput_plugin.h
Examining data/globus-ftp-client-9.2/test/read-all-test.c
Examining data/globus-ftp-client-9.2/test/symlink-test.c
Examining data/globus-ftp-client-9.2/test/multiple-bad-buffer-test.c
Examining data/globus-ftp-client-9.2/test/size-test.c
Examining data/globus-ftp-client-9.2/test/multiple-block-get-test.c
Examining data/globus-ftp-client-9.2/test/restart-marker-test.c
Examining data/globus-ftp-client-9.2/test/transfer-test.c
Examining data/globus-ftp-client-9.2/test/ascii-list-test.c
Examining data/globus-ftp-client-9.2/test/partial-get-test.c
Examining data/globus-ftp-client-9.2/test/ascii-verbose-list-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_throughput_plugin.c
Examining data/globus-ftp-client-9.2/test/plugin-test.c
Examining data/globus-ftp-client-9.2/test/globus_ftp_client_test_pause_plugin.h
Examining data/globus-ftp-client-9.2/test/create-destroy-test.c
Examining data/globus-ftp-client-9.2/test/extended-put-test.c
Examining data/globus-ftp-client-9.2/test/extended-get-caching-test.c
Examining data/globus-ftp-client-9.2/test/caching-get-test.c
Examining data/globus-ftp-client-9.2/test/ascii-recursive-list-test.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_handle.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_attr.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_restart_marker_plugin.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_perf_plugin.h
Examining data/globus-ftp-client-9.2/globus_ftp_client_feature.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_error.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_restart_plugin.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_exists.c
Examining data/globus-ftp-client-9.2/globus_ftp_client.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_throughput_nl_plugin.c
Examining data/globus-ftp-client-9.2/globus_ftp_client_throughput_plugin.h
Examining data/globus-ftp-client-9.2/globus_ftp_client_plugin.c

FINAL RESULTS:

data/globus-ftp-client-9.2/globus_ftp_client.c:404:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	return chmod;
data/globus-ftp-client-9.2/globus_ftp_client.c:406:12:  [5] (race) chgrp:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchgrp( ) instead.
    return chgrp;
data/globus-ftp-client-9.2/globus_ftp_client_debug_plugin.c:1416:53:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    GLOBUS_FTP_CLIENT_DEBUG_PLUGIN_SET_FUNC(plugin, chmod);
data/globus-ftp-client-9.2/globus_ftp_client_debug_plugin.c:1417:53:  [5] (race) chgrp:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchgrp( ) instead.
    GLOBUS_FTP_CLIENT_DEBUG_PLUGIN_SET_FUNC(plugin, chgrp);
data/globus-ftp-client-9.2/globus_ftp_client_plugin.c:1873:35:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
GLOBUS_FTP_CLIENT_PLUGIN_SET_FUNC(chmod)
data/globus-ftp-client-9.2/globus_ftp_client_plugin.c:1874:35:  [5] (race) chgrp:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchgrp( ) instead.
GLOBUS_FTP_CLIENT_PLUGIN_SET_FUNC(chgrp)
data/globus-ftp-client-9.2/globus_ftp_client_restart_plugin.c:1592:55:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    GLOBUS_FTP_CLIENT_RESTART_PLUGIN_SET_FUNC(plugin, chmod);
data/globus-ftp-client-9.2/globus_ftp_client_restart_plugin.c:1593:55:  [5] (race) chgrp:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchgrp( ) instead.
    GLOBUS_FTP_CLIENT_RESTART_PLUGIN_SET_FUNC(plugin, chgrp);
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:1139:55:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    GLOBUS_FTP_CLIENT_RESTART_PLUGIN_SET_FUNC(plugin, chmod);
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:1140:55:  [5] (race) chgrp:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchgrp( ) instead.
    GLOBUS_FTP_CLIENT_RESTART_PLUGIN_SET_FUNC(plugin, chgrp);
data/globus-ftp-client-9.2/globus_ftp_client_attr.c:1436:14:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        sc = sscanf(i_attr->module_alg_str, "%s=\"%[^\"]\"",
data/globus-ftp-client-9.2/globus_ftp_client_error.c:115:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(
data/globus-ftp-client-9.2/globus_ftp_client_handle.c:280: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(i_handle->magic,
data/globus-ftp-client-9.2/globus_ftp_client_perf_plugin.c:263:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        count = sscanf(tmp_ptr + sizeof("Stripe Bytes Transferred:"),
data/globus-ftp-client-9.2/globus_ftp_client_restart_marker.c:788:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	if(sscanf(marker_string, "%"GLOBUS_OFF_T_FORMAT, &offset) != 1)
data/globus-ftp-client-9.2/globus_ftp_client_restart_plugin.c:1228:14:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        sc = sscanf(tmp_ptr + sizeof("Stripe Bytes Transferred:"),
data/globus-ftp-client-9.2/globus_ftp_client_state.c:2613:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	            rc += sprintf(&tmpstr[oldrc],
data/globus-ftp-client-9.2/globus_ftp_client_state.c:6443:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    rc=sscanf(p, "%s", client_handle->checksum);
data/globus-ftp-client-9.2/globus_ftp_client_transfer.c:3319:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(
data/globus-ftp-client-9.2/globus_ftp_client_transfer.c:3851:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(esto_str_buf, GLOBUS_L_DATA_ESTO_FORMAT_STRING, partial_offset);
data/globus-ftp-client-9.2/globus_ftp_client_transfer.c:4345:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(
data/globus-ftp-client-9.2/globus_ftp_client_transfer.c:4349:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(esto_alg_buf, GLOBUS_L_DATA_ESTO_FORMAT_STRING, partial_offset);
data/globus-ftp-client-9.2/test/cksm-test.c:91:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf(optarg, "%"GLOBUS_OFF_T_FORMAT, &offset);
data/globus-ftp-client-9.2/test/cksm-test.c:94:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf(optarg, "%"GLOBUS_OFF_T_FORMAT, &length);
data/globus-ftp-client-9.2/test/partial-put-test.c:112:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf(argv[i+1], "%"GLOBUS_OFF_T_FORMAT, &start_offset);
data/globus-ftp-client-9.2/test/partial-transfer-test.c:77:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf(argv[i+1], "%"GLOBUS_OFF_T_FORMAT, &start_offset);
data/globus-ftp-client-9.2/test/partial-transfer-test.c:78:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf(argv[i+2], "%"GLOBUS_OFF_T_FORMAT, &end_offset);
data/globus-ftp-client-9.2/globus_ftp_client_attr.c:1186:43:  [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.
    i_attr->allow_ipv6                  = getenv("GLOBUS_FTP_CLIENT_IPV6") ? 
data/globus-ftp-client-9.2/globus_ftp_client_handle.c:332:30:  [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.
    i_handle->source_pasv = (getenv("GLOBUS_FTP_CLIENT_SOURCE_PASV") != NULL);
data/globus-ftp-client-9.2/globus_ftp_client_restart_plugin.c:1621:15:  [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.
    env_str = getenv("GUC_STALL_TIMEOUT");
data/globus-ftp-client-9.2/globus_ftp_client_state.c:479:11:  [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.
	tmpstr = getenv("GLOBUS_FTP_CLIENT_FAULT_MODE");
data/globus-ftp-client-9.2/globus_ftp_client_state.c:2304:19:  [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.
                 !getenv("GLOBUS_FTP_CLIENT_NO_SERVER_PASV")))
data/globus-ftp-client-9.2/test/chgrp-test.c:81:16:  [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(argc, argv, "G:")) != -1)
data/globus-ftp-client-9.2/test/chmod-test.c:81:16:  [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(argc, argv, "A:")) != -1)
data/globus-ftp-client-9.2/test/cksm-test.c:86:16:  [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(argc, argv, "O:L:A:")) != -1)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c:74:16:  [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(argc, argv, "-f:a:ps:d:r:zMTc:t:i")) != -1)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c:249:15:  [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.
    subject = getenv("GLOBUS_FTP_CLIENT_TEST_SUBJECT");
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:109:19:  [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.
    if(rangecnt = getenv("FTP_TEST_RESTART_AFTER_RANGE"))
data/globus-ftp-client-9.2/test/pipelined-transfer-test.c:123:16:  [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(argc, argv, "A:")) != -1)
data/globus-ftp-client-9.2/test/utime-test.c:81:16:  [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(argc, argv, "T:")) != -1)
data/globus-ftp-client-9.2/globus_ftp_client.c:118:36:  [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_ftp_client_debug_level = atoi(tmp_string);
data/globus-ftp-client-9.2/globus_ftp_client_attr.c:1735:2:  [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(&i_attr->parallelism,
data/globus-ftp-client-9.2/globus_ftp_client_attr.c:1777: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(parallelism,
data/globus-ftp-client-9.2/globus_ftp_client_attr.c:2125: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(&i_attr->layout,
data/globus-ftp-client-9.2/globus_ftp_client_attr.c:2160: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(layout,
data/globus-ftp-client-9.2/globus_ftp_client_attr.c:2233: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(&i_attr->buffer,
data/globus-ftp-client-9.2/globus_ftp_client_attr.c:2268: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(tcp_buffer,
data/globus-ftp-client-9.2/globus_ftp_client_error.c:77: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                                buf[4];
data/globus-ftp-client-9.2/globus_ftp_client_error.c:100:30:  [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).
            if(data->code == atoi(buf))
data/globus-ftp-client-9.2/globus_ftp_client_handle.c:2030: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(&cache_entry->url,
data/globus-ftp-client-9.2/globus_ftp_client_state.c:1704:2:  [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(&target->parallelism,
data/globus-ftp-client-9.2/globus_ftp_client_state.c:1708:2:  [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(&target->parallelism,
data/globus-ftp-client-9.2/globus_ftp_client_state.c:1725:6:  [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(&target->parallelism,
data/globus-ftp-client-9.2/globus_ftp_client_state.c:1728:6:  [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(&target->layout,
data/globus-ftp-client-9.2/globus_ftp_client_state.c:1743:3:  [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(&target->parallelism,
data/globus-ftp-client-9.2/globus_ftp_client_state.c:1746:3:  [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(&target->layout,
data/globus-ftp-client-9.2/globus_ftp_client_state.c:2582:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	            rc += sprintf(tmpstr, "EPRT");
data/globus-ftp-client-9.2/globus_ftp_client_state.c:2586:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    rc += sprintf(tmpstr, "PORT");
data/globus-ftp-client-9.2/globus_ftp_client_state.c:2591:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		rc += sprintf(tmpstr, "SPOR");
data/globus-ftp-client-9.2/globus_ftp_client_state.c:2608:14:  [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                buf[50];
data/globus-ftp-client-9.2/globus_ftp_client_state.c:2622:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    rc += sprintf(&tmpstr[oldrc],
data/globus-ftp-client-9.2/globus_ftp_client_state.c:5732: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                                        buf[100];
data/globus-ftp-client-9.2/globus_ftp_client_state.c:5848:44:  [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).
                    (*host_port)[i].port = atoi(p);
data/globus-ftp-client-9.2/globus_ftp_client_state.c:5907:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(ptr, "StripeLayout=Partitioned;");
data/globus-ftp-client-9.2/globus_ftp_client_state.c:5921:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(ptr, "StripeLayout=Blocked;BlockSize=%d;",
data/globus-ftp-client-9.2/globus_ftp_client_state.c:5964:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(ptr, "Parallelism=%d,%d,%d;",
data/globus-ftp-client-9.2/globus_ftp_client_state.c:6654: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(buffer + total_fact_list_length, fact_list, fact_list_length);
data/globus-ftp-client-9.2/globus_ftp_client_state.c:6693: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(buffer + total_fact_list_length, filename, filename_length);
data/globus-ftp-client-9.2/globus_ftp_client_state.c:6750: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( buffer, response->response_buffer, response->response_length );
data/globus-ftp-client-9.2/globus_ftp_client_state.c:6775: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                                        res_code[5];
data/globus-ftp-client-9.2/globus_ftp_client_state.c:6830: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(buffer, listing_start, listing_length);
data/globus-ftp-client-9.2/globus_ftp_client_state.c:7125: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(src_url_ent, url_ent, sizeof(globus_i_ftp_client_url_ent_t));
data/globus-ftp-client-9.2/globus_ftp_client_state.c:7385:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tmpstr, "pasv;");
data/globus-ftp-client-9.2/globus_ftp_client_state.c:7394:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        rc += sprintf(&tmpstr[oldrc],
data/globus-ftp-client-9.2/globus_ftp_client_state.c:7470:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tmpstr, "pasv;");
data/globus-ftp-client-9.2/globus_ftp_client_state.c:7479:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        rc += sprintf(&tmpstr[oldrc],
data/globus-ftp-client-9.2/globus_ftp_client_transfer.c:3296: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                                        alg_str_buf[128];
data/globus-ftp-client-9.2/globus_ftp_client_transfer.c:3845: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                                        esto_str_buf[128];
data/globus-ftp-client-9.2/globus_ftp_client_transfer.c:4322: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_alg_buf[128]; 
data/globus-ftp-client-9.2/globus_ftp_client_transfer.c:4323: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                                        esto_alg_buf[128]; 
data/globus-ftp-client-9.2/globus_i_ftp_client.h:525: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                                        magic[24];
data/globus-ftp-client-9.2/test/extended-get-caching-test.c:123:31:  [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).
	    parallelism.fixed.size = atoi(argv[i+1]);
data/globus-ftp-client-9.2/test/extended-get-test.c:123:31:  [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).
	    parallelism.fixed.size = atoi(argv[i+1]);
data/globus-ftp-client-9.2/test/extended-put-test.c:111:26:  [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).
	    parallelism_level = atoi(argv[i+1]);
data/globus-ftp-client-9.2/test/extended-transfer-test.c:75:26:  [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).
	    parallelism_level = atoi(argv[i+1]);
data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c:85: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).
	    if(atoi(optarg) >= FTP_ABORT_LAST ||
data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c:86: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).
	       atoi(optarg) < 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c:93:16:  [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).
							        atoi(optarg));
data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c:140: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).
	    if(atoi(optarg) >= FTP_RESTART_LAST ||
data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c:141: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).
	       atoi(optarg) < 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c:153:37:  [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).
		    GlobusTimeReltimeSet(timeout, atoi(p+1),0);
data/globus-ftp-client-9.2/test/globus_ftp_client_test_common.c:161: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).
		    atoi(optarg),
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:111:50:  [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_l_ftp_client_test_restart_range = atoi(rangecnt);
data/globus-ftp-client-9.2/test/multiget-test.c:103:20:  [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).
	    num_handles = atoi(argv[i+1]);
data/globus-ftp-client-9.2/test/multiget-test.c:108:23:  [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).
	    num_iterations = atoi(argv[i+1]);
data/globus-ftp-client-9.2/test/partial-read-all-test.c:113:31:  [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).
	    parallelism.fixed.size = atoi(argv[i+1]);
data/globus-ftp-client-9.2/test/read-all-test.c:113:31:  [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).
	    parallelism.fixed.size = atoi(argv[i+1]);
data/globus-ftp-client-9.2/test/restart-marker-test.c:122:31:  [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).
	    parallelism.fixed.size = atoi(argv[i+1]);
data/globus-ftp-client-9.2/globus_ftp_client_attr.c:1433:15:  [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(i_attr->module_alg_str);
data/globus-ftp-client-9.2/globus_ftp_client_debug_plugin.c:1440:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    GLOBUS_FTP_CLIENT_DEBUG_PLUGIN_SET_FUNC(plugin, read);
data/globus-ftp-client-9.2/globus_ftp_client_error.c:92:23:  [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).
        message_len = strlen(message);
data/globus-ftp-client-9.2/globus_ftp_client_plugin.c:1897:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
GLOBUS_FTP_CLIENT_PLUGIN_SET_FUNC(read)
data/globus-ftp-client-9.2/globus_ftp_client_restart_marker.c:675:13:  [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).
        buf[strlen(buf)-1] = '\0';
data/globus-ftp-client-9.2/globus_ftp_client_state.c:1399:7:  [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((char *) response->response_buffer+3));
data/globus-ftp-client-9.2/globus_ftp_client_state.c:3583:54:  [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).
                encoded_url = (char *) globus_malloc(strlen(dest_url.url_path) + (2 * spaces) + 1);
data/globus-ftp-client-9.2/globus_ftp_client_state.c:6478:8:  [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).
    if(strlen(p) < 14)
data/globus-ftp-client-9.2/test/extended-put-test.c:69:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    	rc = read(0, buffer, MYSIZE);
data/globus-ftp-client-9.2/test/extended-put-test.c:169:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    rc = read(0, buffer, MYSIZE);
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:247:43:  [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).
    if(strncmp(command_name, "SITE HELP", strlen("SITE HELP")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:257:43:  [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).
    else if(strncmp(command_name, "FEAT", strlen("FEAT")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:267:43:  [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).
    else if(strncmp(command_name, "TYPE", strlen("TYPE")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:277:43:  [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).
    else if(strncmp(command_name, "MODE", strlen("MODE")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:287:48:  [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).
    else if(strncmp(command_name, "OPTS RETR", strlen("OPTS RETR")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:297:43:  [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).
    else if(strncmp(command_name, "PASV", strlen("PASV")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:307:43:  [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).
    else if(strncmp(command_name, "PORT", strlen("PORT")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:317:43:  [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).
    else if(strncmp(command_name, "REST", strlen("REST")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:327:43:  [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).
    else if(strncmp(command_name, "RETR", strlen("RETR")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:337:43:  [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).
    else if(strncmp(command_name, "STOR", strlen("STOR")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:347:43:  [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).
    else if(strncmp(command_name, "LIST", strlen("LIST")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:357:43:  [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).
    else if(strncmp(command_name, "NLST", strlen("NLST")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:367:43:  [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).
    else if(strncmp(command_name, "MLSD", strlen("MLSD")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:377:42:  [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).
    else if(strncmp(command_name, "MKD", strlen("MKD")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:387:42:  [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).
    else if(strncmp(command_name, "RMD", strlen("RMD")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:397:43:  [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).
    else if(strncmp(command_name, "DELE", strlen("DELE")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:407:43:  [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).
    else if(strncmp(command_name, "RNFR", strlen("RNFR")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:417:43:  [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).
    else if(strncmp(command_name, "RNTO", strlen("RNTO")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_abort_plugin.c:671:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    GLOBUS_FTP_CLIENT_ABORT_PLUGIN_SET_FUNC(plugin, read);
data/globus-ftp-client-9.2/test/globus_ftp_client_test_pause_plugin.c:206:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:636:43:  [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).
    if(strncmp(command_name, "SITE HELP", strlen("SITE HELP")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:645:43:  [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).
    else if(strncmp(command_name, "FEAT", strlen("FEAT")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:654:43:  [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).
    else if(strncmp(command_name, "TYPE", strlen("TYPE")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:663:43:  [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).
    else if(strncmp(command_name, "MODE", strlen("MODE")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:672:48:  [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).
    else if(strncmp(command_name, "OPTS RETR", strlen("OPTS RETR")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:681:43:  [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).
    else if(strncmp(command_name, "PASV", strlen("PASV")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:690:43:  [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).
    else if(strncmp(command_name, "PORT", strlen("PORT")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:699:43:  [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).
    else if(strncmp(command_name, "REST", strlen("REST")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:708:43:  [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).
    else if(strncmp(command_name, "RETR", strlen("RETR")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:717:43:  [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).
    else if(strncmp(command_name, "STOR", strlen("STOR")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:726:43:  [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).
    else if(strncmp(command_name, "LIST", strlen("LIST")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:735:43:  [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).
    else if(strncmp(command_name, "NLST", strlen("NLST")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:744:43:  [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).
    else if(strncmp(command_name, "MLSD", strlen("MLSD")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:753:43:  [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).
    else if(strncmp(command_name, "MLSR", strlen("MLSR")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:762:43:  [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).
    else if(strncmp(command_name, "MLST", strlen("MLST")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:771:42:  [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).
    else if(strncmp(command_name, "MKD", strlen("MKD")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:780:42:  [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).
    else if(strncmp(command_name, "RMD", strlen("RMD")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:789:43:  [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).
    else if(strncmp(command_name, "DELE", strlen("DELE")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:798:49:  [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).
    else if(strncmp(command_name, "SITE CHMOD", strlen("SITE CHMOD")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:807:49:  [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).
    else if(strncmp(command_name, "SITE CHGRP", strlen("SITE CHGRP")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:816:49:  [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).
    else if(strncmp(command_name, "SITE UTIME", strlen("SITE UTIME")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:825:51:  [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).
    else if(strncmp(command_name, "SITE SYMLINK", strlen("SITE SYMLINK")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:834:43:  [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).
    else if(strncmp(command_name, "CKSM", strlen("CKSM")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:843:43:  [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).
    else if(strncmp(command_name, "RNFR", strlen("RNFR")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:852:43:  [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).
    else if(strncmp(command_name, "RNTO", strlen("RNTO")) == 0)
data/globus-ftp-client-9.2/test/globus_ftp_client_test_restart_plugin.c:1154:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    GLOBUS_FTP_CLIENT_RESTART_PLUGIN_SET_FUNC(plugin, read);
data/globus-ftp-client-9.2/test/partial-put-test.c:74:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(0, buffer, SIZE);
data/globus-ftp-client-9.2/test/partial-put-test.c:158:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(0, buffer, buffer_length);
data/globus-ftp-client-9.2/test/put-test.c:79:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    	rc = read(0, buffer, MYSIZE);
data/globus-ftp-client-9.2/test/put-test.c:137:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(0, buffer, buffer_length);

ANALYSIS SUMMARY:

Hits = 158
Lines analyzed = 51568 in approximately 3.33 seconds (15480 lines/second)
Physical Source Lines of Code (SLOC) = 35288
Hits@level = [0] 252 [1]  60 [2]  58 [3]  13 [4]  17 [5]  10
Hits@level+ = [0+] 410 [1+] 158 [2+]  98 [3+]  40 [4+]  27 [5+]  10
Hits/KSLOC@level+ = [0+] 11.6187 [1+] 4.47744 [2+] 2.77715 [3+] 1.13353 [4+] 0.765133 [5+] 0.283382
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.