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/uftp-4.10.2/win_func.c
Examining data/uftp-4.10.2/client_main.c
Examining data/uftp-4.10.2/encrypt_cng.c
Examining data/uftp-4.10.2/client_loop.h
Examining data/uftp-4.10.2/encryption.h
Examining data/uftp-4.10.2/server_config.h
Examining data/uftp-4.10.2/server_phase.c
Examining data/uftp-4.10.2/server.h
Examining data/uftp-4.10.2/client_init.h
Examining data/uftp-4.10.2/heartbeat_send.c
Examining data/uftp-4.10.2/uftp.h
Examining data/uftp-4.10.2/proxy_upstream.h
Examining data/uftp-4.10.2/server_transfer.c
Examining data/uftp-4.10.2/proxy_init.h
Examining data/uftp-4.10.2/proxy_upstream.c
Examining data/uftp-4.10.2/client_common.c
Examining data/uftp-4.10.2/client_config.c
Examining data/uftp-4.10.2/encrypt_openssl.c
Examining data/uftp-4.10.2/server_send.h
Examining data/uftp-4.10.2/client_transfer.c
Examining data/uftp-4.10.2/server_phase.h
Examining data/uftp-4.10.2/server_common.h
Examining data/uftp-4.10.2/proxy_config.c
Examining data/uftp-4.10.2/uftp_common.h
Examining data/uftp-4.10.2/proxy_loop.c
Examining data/uftp-4.10.2/server_announce.c
Examining data/uftp-4.10.2/client_fileinfo.h
Examining data/uftp-4.10.2/server_config.c
Examining data/uftp-4.10.2/client_announce.c
Examining data/uftp-4.10.2/client_common.h
Examining data/uftp-4.10.2/encrypt_none.c
Examining data/uftp-4.10.2/proxy_downstream.c
Examining data/uftp-4.10.2/server_init.c
Examining data/uftp-4.10.2/proxy_common.h
Examining data/uftp-4.10.2/client_config.h
Examining data/uftp-4.10.2/server_transfer.h
Examining data/uftp-4.10.2/client_transfer.h
Examining data/uftp-4.10.2/encrypt_cryptoapi.c
Examining data/uftp-4.10.2/server_init.h
Examining data/uftp-4.10.2/client.h
Examining data/uftp-4.10.2/server_announce.h
Examining data/uftp-4.10.2/uftp_keymgt.c
Examining data/uftp-4.10.2/proxy_common.c
Examining data/uftp-4.10.2/proxy_loop.h
Examining data/uftp-4.10.2/client_announce.h
Examining data/uftp-4.10.2/testclient_multi.c
Examining data/uftp-4.10.2/proxy_config.h
Examining data/uftp-4.10.2/proxy_downstream.h
Examining data/uftp-4.10.2/server_main.c
Examining data/uftp-4.10.2/proxy_init.c
Examining data/uftp-4.10.2/client_init.c
Examining data/uftp-4.10.2/proxy_main.c
Examining data/uftp-4.10.2/client_loop.c
Examining data/uftp-4.10.2/heartbeat_send.h
Examining data/uftp-4.10.2/win_func.h
Examining data/uftp-4.10.2/client_fileinfo.c
Examining data/uftp-4.10.2/server_send.c
Examining data/uftp-4.10.2/uftp_common.c
Examining data/uftp-4.10.2/server_common.c
Examining data/uftp-4.10.2/proxy.h

FINAL RESULTS:

data/uftp-4.10.2/client_fileinfo.c:376:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod(filename, 0644);
data/uftp-4.10.2/server_send.c:208:13:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        if (readlink(path, linkname, sizeof(linkname)-1) == -1) {
data/uftp-4.10.2/client_common.c:323:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(cmdline, params[i]);
data/uftp-4.10.2/client_common.c:327:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(cmdline, params[i]);
data/uftp-4.10.2/client_common.c:361:13:  [4] (shell) execv:
  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.
            execv(postreceive, params);
data/uftp-4.10.2/client_config.c:493:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, USAGE);
data/uftp-4.10.2/proxy_config.c:503:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, USAGE);
data/uftp-4.10.2/proxy_config.c:510:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, USAGE);
data/uftp-4.10.2/server_config.c:865:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, USAGE);
data/uftp-4.10.2/server_config.c:872:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, USAGE);
data/uftp-4.10.2/uftp_common.c:187:9:  [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(ifr_tmp_flags.lifr_name, ifr[i].lifr_name);
data/uftp-4.10.2/uftp_common.c:193:9:  [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(ifr_tmp_ifidx.lifr_name, ifr[i].lifr_name);
data/uftp-4.10.2/uftp_common.c:656:17:  [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.
    write_len = vfprintf(applog, str, args);
data/uftp-4.10.2/client_config.c:184:17:  [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, opts)) != EOF) {
data/uftp-4.10.2/client_init.c:572:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned int)time(NULL) ^ getpid());
data/uftp-4.10.2/encrypt_cng.c:80:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    HMODULE Hand = LoadLibrary("NTDLL.DLL");
data/uftp-4.10.2/proxy_config.c:218:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned int)time(NULL) ^ getpid());
data/uftp-4.10.2/proxy_config.c:221:17:  [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, opts)) != EOF) {
data/uftp-4.10.2/server_config.c:344:17:  [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, opts)) != EOF) {
data/uftp-4.10.2/server_init.c:163:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned int)time(NULL) ^ getpid());
data/uftp-4.10.2/uftp_keymgt.c:85:17:  [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, opts)) != EOF) {
data/uftp-4.10.2/win_func.c:40:6:  [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.
char getopt(int argc, char *argv[], const char options[])
data/uftp-4.10.2/win_func.h:34:6:  [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.
char getopt(int argc, char *argv[], const char options[]);
data/uftp-4.10.2/client.h:62: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 filepath[MAXPATHNAME]; /// Local path to file
data/uftp-4.10.2/client.h:63: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 temppath[MAXPATHNAME]; /// Local path to temp file
data/uftp-4.10.2/client.h:64: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 name[MAXPATHNAME];     /// Path name
data/uftp-4.10.2/client.h:65: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 linkname[MAXPATHNAME]; /// Link name (symlinks only)
data/uftp-4.10.2/client.h:98: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 name[MAXPATHNAME];     /// Path name
data/uftp-4.10.2/client.h:132: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 start_date[10];            /// Date initial ANNOUNCE was received
data/uftp-4.10.2/client.h:133: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 start_time[10];            /// Time initial ANNOUNCE was received
data/uftp-4.10.2/client.h:184:8:  [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.
extern char tempdir[MAXDIRNAME], destdir[MAXDIR][MAXDIRNAME];
data/uftp-4.10.2/client.h:185:8:  [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.
extern char pidfile[MAXPATHNAME];
data/uftp-4.10.2/client.h:186:8:  [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.
extern char keyfile[MAXLIST][MAXPATHNAME], keyinfo[MAXLIST][MAXPATHNAME];
data/uftp-4.10.2/client.h:187:8:  [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.
extern char backupdir[MAXDIR][MAXDIRNAME];
data/uftp-4.10.2/client.h:188:8:  [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.
extern char statusfilename[MAXPATHNAME];
data/uftp-4.10.2/client.h:192:8:  [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.
extern char postreceive[MAXPATHNAME], portname[PORTNAME_LEN];
data/uftp-4.10.2/client_announce.c:99: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(verifydata, &group_id, sizeof(group_id));
data/uftp-4.10.2/client_announce.c:102: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(verifydata + *verifylen, &group->multi.sin6.sin6_addr.s6_addr,
data/uftp-4.10.2/client_announce.c:105: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(verifydata + *verifylen, &group->multi.sin.sin_addr.s_addr,
data/uftp-4.10.2/client_announce.c:109: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(verifydata + *verifylen, group->rand1, sizeof(group->rand1));
data/uftp-4.10.2/client_announce.c:111: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(verifydata + *verifylen, group->rand2, sizeof(group->rand2));
data/uftp-4.10.2/client_announce.c:113: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(verifydata + *verifylen, group->premaster, group->premaster_len);
data/uftp-4.10.2/client_announce.c:137: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(verifydata + *verifylen, group->groupmaster,
data/uftp-4.10.2/client_announce.c:250: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(reg->rand2, group->rand2, RAND_LEN);
data/uftp-4.10.2/client_announce.c:341: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(keyinfo_ack->verify_data, verify_val, VERIFY_LEN);
data/uftp-4.10.2/client_announce.c:440: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.
    unsigned char fingerprint[HMAC_LEN];
data/uftp-4.10.2/client_announce.c:481: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(group->rand1, encinfo->rand1, sizeof(encinfo->rand1));
data/uftp-4.10.2/client_announce.c:490: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(&group->rand2, &t2, sizeof(t2));
data/uftp-4.10.2/client_announce.c:522: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(seed, group->rand1, sizeof(group->rand1));
data/uftp-4.10.2/client_announce.c:523: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(seed + sizeof(group->rand1), group->rand2, sizeof(group->rand2));
data/uftp-4.10.2/client_announce.c:530: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(group->hmackey, prf_buf, group->hmaclen);
data/uftp-4.10.2/client_announce.c:531: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(group->key, prf_buf + group->hmaclen, group->keylen);
data/uftp-4.10.2/client_announce.c:532: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(group->salt, prf_buf + group->hmaclen + group->keylen, SALT_LEN);
data/uftp-4.10.2/client_announce.c:687: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(sigcopy, sig, siglen);
data/uftp-4.10.2/client_announce.c:766: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(&group->multi.sin6.sin6_addr.s6_addr, privatemcast, iplen);
data/uftp-4.10.2/client_announce.c:772: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(&group->multi.sin.sin_addr.s_addr, privatemcast, iplen);
data/uftp-4.10.2/client_announce.c:870: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 privname[INET6_ADDRSTRLEN], srcname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/client_announce.c:871: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 srcfqdn[DESTNAME_LEN];
data/uftp-4.10.2/client_announce.c:1088: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(&group->groupmaster[1], decgroupmaster, declen);
data/uftp-4.10.2/client_announce.c:1095: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(group->grouphmackey, prf_buf, group->hmaclen);
data/uftp-4.10.2/client_announce.c:1096: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(group->groupkey, prf_buf + group->hmaclen, group->keylen);
data/uftp-4.10.2/client_announce.c:1097: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(group->groupsalt, prf_buf + group->hmaclen + group->keylen,
data/uftp-4.10.2/client_common.c:107: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 restart_name[MAXPATHNAME];
data/uftp-4.10.2/client_common.c:127:15:  [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).
    if ((fd = open(restart_name, OPENREAD, 0644)) == -1) {
data/uftp-4.10.2/client_common.c:184: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 restart_name[MAXPATHNAME];
data/uftp-4.10.2/client_common.c:205:15:  [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).
    if ((fd = open(restart_name, OPENWRITE | O_CREAT | O_TRUNC, 0644)) == -1) {
data/uftp-4.10.2/client_common.c:263: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 gid_str[10];
data/uftp-4.10.2/client_common.c:293:9:  [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 cmdline[0x8000];  // Windows max command line length
data/uftp-4.10.2/client_common.c:294:9:  [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 cmdexe[MAXPATHNAME];
data/uftp-4.10.2/client_common.c:302:17:  [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 errbuf[300];
data/uftp-4.10.2/client_common.c:310:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(cmdexe, "\\system32\\cmd.exe");
data/uftp-4.10.2/client_common.c:311:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(cmdline, "/c \"");
data/uftp-4.10.2/client_common.c:328:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(cmdline,"\" ");
data/uftp-4.10.2/client_common.c:344:17:  [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 errbuf[300];
data/uftp-4.10.2/client_common.c:451:13:  [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 filepath[MAXPATHNAME];
data/uftp-4.10.2/client_common.c:687: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 addrname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/client_common.c:729: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.
    unsigned char fingerprint[HMAC_LEN];
data/uftp-4.10.2/client_common.c:731: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 addrname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/client_common.c:823: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 filename[MAXPATHNAME];
data/uftp-4.10.2/client_common.c:838:9:  [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 dirglob[MAXPATHNAME];
data/uftp-4.10.2/client_common.c:899: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 backup_file[MAXBACKUPPATHNAME], *trim_name;
data/uftp-4.10.2/client_common.c:937:9:  [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 errbuf[300];
data/uftp-4.10.2/client_config.c:56: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 tempdir[MAXDIRNAME], destdir[MAXDIR][MAXDIRNAME];
data/uftp-4.10.2/client_config.c:57: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 pidfile[MAXPATHNAME];
data/uftp-4.10.2/client_config.c:58: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 keyfile[MAXLIST][MAXPATHNAME], keyinfo[MAXLIST][MAXPATHNAME];
data/uftp-4.10.2/client_config.c:59: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 backupdir[MAXDIR][MAXDIRNAME];
data/uftp-4.10.2/client_config.c:60: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 statusfilename[MAXPATHNAME];
data/uftp-4.10.2/client_config.c:64: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 postreceive[MAXPATHNAME], portname[PORTNAME_LEN];
data/uftp-4.10.2/client_config.c:113: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(&server_keys[server_count].addr, ai_rval->ai_addr,
data/uftp-4.10.2/client_config.c:142:12:  [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).
    port = atoi(portname);
data/uftp-4.10.2/client_config.c:176: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 line[1000], *servername, *ipstr, *fingerprint;
data/uftp-4.10.2/client_config.c:177: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 *p, *p2, *hoststr, *portstr, pubname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/client_config.c:190:25:  [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).
            log_level = atoi(optarg);
data/uftp-4.10.2/client_config.c:216:25:  [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).
            cache_len = atoi(optarg);
data/uftp-4.10.2/client_config.c:254: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).
            port = atoi(portname);
data/uftp-4.10.2/client_config.c:299:17:  [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(&pub_multi[pub_multi_count], ai_rval->ai_addr,
data/uftp-4.10.2/client_config.c:307:22:  [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).
            rcvbuf = atoi(optarg);
data/uftp-4.10.2/client_config.c:334:31:  [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).
            if ((serverfile = fopen(optarg, "r")) == NULL) {
data/uftp-4.10.2/client_config.c:392: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(&proxy_info.addr, ai_rval->ai_addr, ai_rval->ai_addrlen);
data/uftp-4.10.2/client_config.c:420:24:  [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).
            priority = atoi(optarg);
data/uftp-4.10.2/client_config.c:430:28:  [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).
            max_log_size = atoi(optarg);
data/uftp-4.10.2/client_config.c:438:29:  [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).
            max_log_count = atoi(optarg);
data/uftp-4.10.2/client_config.c:467:17:  [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(&hb_hosts[hbhost_count], ai_rval->ai_addr,
data/uftp-4.10.2/client_config.c:475:39:  [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).
                                htons(atoi(DEF_PORT));
data/uftp-4.10.2/client_config.c:478:39:  [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).
                                htons(atoi(DEF_PORT));
data/uftp-4.10.2/client_config.c:486: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).
            hb_interval = atoi(optarg);
data/uftp-4.10.2/client_fileinfo.c:366:30:  [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).
        group->fileinfo.fd = open(filename, OPENWRITE);
data/uftp-4.10.2/client_fileinfo.c:378:30:  [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).
        group->fileinfo.fd = open(filename, OPENWRITE | O_CREAT | O_TRUNC,0644);
data/uftp-4.10.2/client_init.c:182:26:  [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).
            if ((pidfh = fopen(pidfile, "w")) == NULL) {
data/uftp-4.10.2/client_init.c:192:9:  [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 errbuf[300];
data/uftp-4.10.2/client_init.c:229:26:  [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).
            if ((pidfh = fopen(pidfile, "w")) == NULL) {
data/uftp-4.10.2/client_init.c:296:24:  [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).
                size = atoi(&keyinfo[i][4]);
data/uftp-4.10.2/client_init.c:531: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 tempf1[MAXPATHNAME], tempf2[MAXPATHNAME];
data/uftp-4.10.2/client_init.c:538:15:  [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).
    if ((fd = open(tempf1, O_WRONLY | O_CREAT, 0644)) < 0) {
data/uftp-4.10.2/client_init.c:544:15:  [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).
    if ((fd = open(tempf2, O_WRONLY | O_CREAT, 0644)) < 0) {
data/uftp-4.10.2/client_init.c:567: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 tempf1[MAXPATHNAME], hostname[256];
data/uftp-4.10.2/client_init.c:595: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(&m_interface[interface_count].su, ai_rval->ai_addr,
data/uftp-4.10.2/client_init.c:624:19:  [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).
        if ((fd = open(tempf1, O_WRONLY | O_CREAT, 0644)) < 0) {
data/uftp-4.10.2/client_init.c:692: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(&pub_multi[0], ai_rval->ai_addr, ai_rval->ai_addrlen);
data/uftp-4.10.2/client_init.c:716:28:  [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).
        if ((status_file = fopen(statusfilename, "at")) == NULL) {
data/uftp-4.10.2/client_loop.c:217: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 rxname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/client_transfer.c:71: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 temppath[MAXPATHNAME], destpath[MAXPATHNAME];
data/uftp-4.10.2/client_transfer.c:114:13:  [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 errbuf[300];
data/uftp-4.10.2/client_transfer.c:140:9:  [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 dirglob[MAXPATHNAME];
data/uftp-4.10.2/client_transfer.c:191: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 temppath[MAXPATHNAME], destpath[MAXPATHNAME];
data/uftp-4.10.2/client_transfer.c:192: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 *filelist[10000];  // TODO: no magic number
data/uftp-4.10.2/client_transfer.c:214:9:  [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 dirglob[MAXPATHNAME];
data/uftp-4.10.2/client_transfer.c:243:21:  [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 errbuf[300];
data/uftp-4.10.2/client_transfer.c:260:9:  [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 dirname[MAXPATHNAME];
data/uftp-4.10.2/client_transfer.c:391: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(sent_naks, naks, payloadlen);
data/uftp-4.10.2/client_transfer.c:796: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(&group->fileinfo.cache[cache_offset], data, datalen);
data/uftp-4.10.2/encrypt_cng.c:79: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 errbuf[300];
data/uftp-4.10.2/encrypt_cng.c:130:12:  [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.
    static char name[256];
data/uftp-4.10.2/encrypt_cng.c:170:5:  [2] (buffer) wchar_t:
  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.
    wchar_t wcontainer[256];
data/uftp-4.10.2/encrypt_cng.c:491: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(l_IV, IV, ivlen);
data/uftp-4.10.2/encrypt_cng.c:575: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(l_IV, IV, ivlen);
data/uftp-4.10.2/encrypt_cng.c:847: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.
    unsigned char meshash[HMAC_LEN];
data/uftp-4.10.2/encrypt_cng.c:875: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.
    unsigned char meshash[HMAC_LEN];
data/uftp-4.10.2/encrypt_cng.c:902: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.
    unsigned char meshash[HMAC_LEN], *buf;
data/uftp-4.10.2/encrypt_cng.c:934: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(rsval, buf, _siglen);
data/uftp-4.10.2/encrypt_cng.c:947: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.
    unsigned char meshash[HMAC_LEN];
data/uftp-4.10.2/encrypt_cng.c:1039: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(buf_mod, modulus, ntohs(rsablob->modlen));
data/uftp-4.10.2/encrypt_cng.c:1108: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(modulus, buf_mod, blobheader->cbModulus);
data/uftp-4.10.2/encrypt_cng.c:1144: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(buf_key, keyval, ntohs(ecblob->keylen));
data/uftp-4.10.2/encrypt_cng.c:1199: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(keyval, buf_key, blobheader->cbKey * 2);
data/uftp-4.10.2/encrypt_cng.c:1215:5:  [2] (buffer) wchar_t:
  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.
    wchar_t wcontainer[256];
data/uftp-4.10.2/encrypt_cng.c:1273:5:  [2] (buffer) wchar_t:
  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.
    wchar_t wcontainer[256];
data/uftp-4.10.2/encrypt_cng.c:1326:5:  [2] (buffer) wchar_t:
  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.
    wchar_t algtype[20];
data/uftp-4.10.2/encrypt_cng.c:1327:5:  [2] (buffer) wchar_t:
  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.
    wchar_t wcontainer[256];
data/uftp-4.10.2/encrypt_cng.c:1379:5:  [2] (buffer) wchar_t:
  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.
    wchar_t alg[20];
data/uftp-4.10.2/encrypt_cryptoapi.c:47: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 keystr[MAXKEY];
data/uftp-4.10.2/encrypt_cryptoapi.c:104: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 errbuf[300];
data/uftp-4.10.2/encrypt_cryptoapi.c:416: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 keyblob[BLOBLEN];
data/uftp-4.10.2/encrypt_cryptoapi.c:440: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(keydata, key, keylen);
data/uftp-4.10.2/encrypt_cryptoapi.c:459: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(dest, src, srclen);
data/uftp-4.10.2/encrypt_cryptoapi.c:489: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 keyblob[BLOBLEN];
data/uftp-4.10.2/encrypt_cryptoapi.c:513: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(keydata, key, keylen);
data/uftp-4.10.2/encrypt_cryptoapi.c:532: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(dest, src, srclen);
data/uftp-4.10.2/encrypt_cryptoapi.c:561: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 keyblob[BLOBLEN];
data/uftp-4.10.2/encrypt_cryptoapi.c:586: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(keydata, key, keylen);
data/uftp-4.10.2/encrypt_cryptoapi.c:721: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(outbuf, from, fromlen);
data/uftp-4.10.2/encrypt_cryptoapi.c:919: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 ms_keyblob[BLOBLEN];
data/uftp-4.10.2/encrypt_cryptoapi.c:967: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 ms_keyblob[BLOBLEN];
data/uftp-4.10.2/encrypt_openssl.c:55: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 errstr[1000];
data/uftp-4.10.2/encrypt_openssl.c:699: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.
    unsigned char meshash[HMAC_LEN];
data/uftp-4.10.2/encrypt_openssl.c:728: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.
    unsigned char meshash[HMAC_LEN];
data/uftp-4.10.2/encrypt_openssl.c:758: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.
    unsigned char meshash[HMAC_LEN];
data/uftp-4.10.2/encrypt_openssl.c:808: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.
    unsigned char meshash[HMAC_LEN];
data/uftp-4.10.2/encrypt_openssl.c:957: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.
    unsigned char bin_exponent[4];
data/uftp-4.10.2/encrypt_openssl.c:1026: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(&buf[1], keyval, ntohs(ecblob->keylen));
data/uftp-4.10.2/encrypt_openssl.c:1070: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(keyval, &buf[1], keylen);
data/uftp-4.10.2/encrypt_openssl.c:1104:18:  [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).
        if ((f = fopen(filename, "rb")) != NULL) {
data/uftp-4.10.2/encrypt_openssl.c:1110:18:  [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).
        if ((f = fopen(filename, "wb")) == NULL) {
data/uftp-4.10.2/encrypt_openssl.c:1135: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).
    if ((f = fopen(filename, "rb")) == NULL) {
data/uftp-4.10.2/encrypt_openssl.c:1172:18:  [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).
        if ((f = fopen(filename, "rb")) != NULL) {
data/uftp-4.10.2/encrypt_openssl.c:1177:18:  [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).
        if ((f = fopen(filename, "wb")) == NULL) {
data/uftp-4.10.2/encrypt_openssl.c:1200: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).
    if ((f = fopen(filename, "rb")) == NULL) {
data/uftp-4.10.2/encrypt_openssl.c:1222: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).
    if ((f = fopen(filename, "rb")) == NULL) {
data/uftp-4.10.2/encrypt_openssl.c:1235: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).
    if ((f = fopen(filename, "rb")) == NULL) {
data/uftp-4.10.2/heartbeat_send.c:65: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 addrname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/heartbeat_send.c:110: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 addrname[INET6_ADDRSTRLEN], portstr[PORTNAME_LEN];
data/uftp-4.10.2/heartbeat_send.c:180: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 addrname[INET6_ADDRSTRLEN], portstr[PORTNAME_LEN];
data/uftp-4.10.2/proxy.h:76: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 name[DESTNAME_LEN];        /// Hostname of client
data/uftp-4.10.2/proxy.h:165:8:  [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.
extern char pidfile[MAXPATHNAME];
data/uftp-4.10.2/proxy.h:166:8:  [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.
extern char keyfile[MAXLIST][MAXPATHNAME], keyinfo[MAXLIST][MAXPATHNAME];
data/uftp-4.10.2/proxy.h:170:8:  [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.
extern char portname[PORTNAME_LEN], out_portname[PORTNAME_LEN];
data/uftp-4.10.2/proxy_common.c:521: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 destname[INET6_ADDRSTRLEN], destport[PORTNAME_LEN];
data/uftp-4.10.2/proxy_common.c:579: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(sigcopy, sig, siglen);
data/uftp-4.10.2/proxy_common.c:613: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(sig, sigcopy, siglen);
data/uftp-4.10.2/proxy_common.c:639: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.
    unsigned char fingerprint[HMAC_LEN];
data/uftp-4.10.2/proxy_common.c:641: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 destname[INET6_ADDRSTRLEN], destport[PORTNAME_LEN];
data/uftp-4.10.2/proxy_common.c:735: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 destname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/proxy_common.c:765: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 destname[INET6_ADDRSTRLEN], destport[PORTNAME_LEN];
data/uftp-4.10.2/proxy_common.c:808: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 pubname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/proxy_common.c:1021: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.
    unsigned char fingerprint[HMAC_LEN];
data/uftp-4.10.2/proxy_common.c:1082: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(verifydata, &group_id, sizeof(group_id));
data/uftp-4.10.2/proxy_common.c:1085: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(verifydata + *verifylen,
data/uftp-4.10.2/proxy_common.c:1088: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(verifydata + *verifylen,
data/uftp-4.10.2/proxy_common.c:1092: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(verifydata + *verifylen, group->rand1, sizeof(group->rand1));
data/uftp-4.10.2/proxy_common.c:1095: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(verifydata + *verifylen, group->rand2, sizeof(group->rand2));
data/uftp-4.10.2/proxy_common.c:1097: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(verifydata + *verifylen, group->premaster, group->premaster_len);
data/uftp-4.10.2/proxy_common.c:1100: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(verifydata + *verifylen, dest->rand2, sizeof(dest->rand2));
data/uftp-4.10.2/proxy_common.c:1102: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(verifydata + *verifylen, dest->premaster, dest->premaster_len);
data/uftp-4.10.2/proxy_common.c:1128: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(verifydata + *verifylen, group->groupmaster,
data/uftp-4.10.2/proxy_config.c:59: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 pidfile[MAXPATHNAME];
data/uftp-4.10.2/proxy_config.c:60: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 keyfile[MAXLIST][MAXPATHNAME], keyinfo[MAXLIST][MAXPATHNAME];
data/uftp-4.10.2/proxy_config.c:64: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 portname[PORTNAME_LEN], out_portname[PORTNAME_LEN];
data/uftp-4.10.2/proxy_config.c:93: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 line[1000], *hostid, *ipstr, *fingerprint;
data/uftp-4.10.2/proxy_config.c:99:21:  [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).
    if ((hostfile = fopen(filename, "r")) == NULL) {
data/uftp-4.10.2/proxy_config.c:152: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(&list[*list_count].addr, ai_rval->ai_addr,
data/uftp-4.10.2/proxy_config.c:180:12:  [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).
    port = atoi(portname);
data/uftp-4.10.2/proxy_config.c:186: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).
    out_port = atoi(out_portname);
data/uftp-4.10.2/proxy_config.c:214: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 *p, *p2, *hoststr, *portstr, pubname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/proxy_config.c:251:17:  [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(&down_addr, ai_rval->ai_addr, ai_rval->ai_addrlen);
data/uftp-4.10.2/proxy_config.c:273:25:  [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).
            log_level = atoi(optarg);
data/uftp-4.10.2/proxy_config.c:282: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).
            port = atoi(portname);
data/uftp-4.10.2/proxy_config.c:289:22:  [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).
            tmpval = atoi(optarg);
data/uftp-4.10.2/proxy_config.c:305:24:  [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).
            priority = atoi(optarg);
data/uftp-4.10.2/proxy_config.c:347:24:  [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).
            out_port = atoi(out_portname);
data/uftp-4.10.2/proxy_config.c:379:17:  [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(&hb_hosts[hbhost_count++], ai_rval->ai_addr,
data/uftp-4.10.2/proxy_config.c:385: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).
            hb_interval = atoi(optarg);
data/uftp-4.10.2/proxy_config.c:392:28:  [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).
            max_log_size = atoi(optarg);
data/uftp-4.10.2/proxy_config.c:400:29:  [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).
            max_log_count = atoi(optarg);
data/uftp-4.10.2/proxy_config.c:407:22:  [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).
            rcvbuf = atoi(optarg);
data/uftp-4.10.2/proxy_config.c:495:17:  [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(&pub_multi[pub_multi_count], ai_rval->ai_addr,
data/uftp-4.10.2/proxy_downstream.c:86: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(seed, group->rand1, sizeof(group->rand1));
data/uftp-4.10.2/proxy_downstream.c:87: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(seed + sizeof(group->rand1), dest->rand2,
data/uftp-4.10.2/proxy_downstream.c:95: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(dest->hmackey, prf_buf, group->hmaclen);
data/uftp-4.10.2/proxy_downstream.c:96: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(dest->key, prf_buf + group->hmaclen, group->keylen);
data/uftp-4.10.2/proxy_downstream.c:97: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(dest->salt, prf_buf + group->hmaclen + group->keylen, group->ivlen);
data/uftp-4.10.2/proxy_downstream.c:148: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.
    unsigned char premaster[PUBKEY_LEN];
data/uftp-4.10.2/proxy_downstream.c:187: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(dest->premaster, premaster, len);
data/uftp-4.10.2/proxy_downstream.c:334: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(dest->verifydata, verify, ntohs(clientkey->siglen));
data/uftp-4.10.2/proxy_downstream.c:569: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 status[20];
data/uftp-4.10.2/proxy_init.c:172:26:  [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).
            if ((pidfh = fopen(pidfile, "w")) == NULL) {
data/uftp-4.10.2/proxy_init.c:182:9:  [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 errbuf[300];
data/uftp-4.10.2/proxy_init.c:219:26:  [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).
            if ((pidfh = fopen(pidfile, "w")) == NULL) {
data/uftp-4.10.2/proxy_init.c:286:24:  [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).
                size = atoi(&keyinfo[i][4]);
data/uftp-4.10.2/proxy_init.c:596: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 hostname[256];
data/uftp-4.10.2/proxy_init.c:623: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(&m_interface[interface_count].su, ai_rval->ai_addr,
data/uftp-4.10.2/proxy_init.c:657: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(&pub_multi[0], ai_rval->ai_addr, ai_rval->ai_addrlen);
data/uftp-4.10.2/proxy_loop.c:157: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 rxname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/proxy_upstream.c:87: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(group->rand1, encinfo->rand1, sizeof(encinfo->rand1));
data/uftp-4.10.2/proxy_upstream.c:96: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(&group->rand2, &t2, sizeof(t2));
data/uftp-4.10.2/proxy_upstream.c:122: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(seed, group->rand1, sizeof(group->rand1));
data/uftp-4.10.2/proxy_upstream.c:123: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(seed + sizeof(group->rand1), group->rand2, sizeof(group->rand2));
data/uftp-4.10.2/proxy_upstream.c:130: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(group->hmackey, prf_buf, group->hmaclen);
data/uftp-4.10.2/proxy_upstream.c:131: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(group->key, prf_buf + group->hmaclen, group->keylen);
data/uftp-4.10.2/proxy_upstream.c:132: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(group->salt, prf_buf + group->hmaclen + group->keylen, SALT_LEN);
data/uftp-4.10.2/proxy_upstream.c:273: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(sigcopy, sig, siglen);
data/uftp-4.10.2/proxy_upstream.c:337: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(&group->publicmcast.sin6.sin6_addr.s6_addr, publicmcast, iplen);
data/uftp-4.10.2/proxy_upstream.c:338: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(&group->privatemcast.sin6.sin6_addr.s6_addr, privatemcast,iplen);
data/uftp-4.10.2/proxy_upstream.c:344: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(&group->publicmcast.sin.sin_addr.s_addr, publicmcast, iplen);
data/uftp-4.10.2/proxy_upstream.c:345: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(&group->privatemcast.sin.sin_addr.s_addr, privatemcast, iplen);
data/uftp-4.10.2/proxy_upstream.c:477: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 pubname[INET6_ADDRSTRLEN], privname[INET6_ADDRSTRLEN];
data/uftp-4.10.2/proxy_upstream.c:652: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(&group->groupmaster[1], decgroupmaster, declen);
data/uftp-4.10.2/proxy_upstream.c:659: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(group->grouphmackey, prf_buf, group->hmaclen);
data/uftp-4.10.2/proxy_upstream.c:660: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(group->groupkey, prf_buf + group->hmaclen, group->keylen);
data/uftp-4.10.2/proxy_upstream.c:661: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(group->groupsalt, prf_buf + group->hmaclen + group->keylen,
data/uftp-4.10.2/proxy_upstream.c:693: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(reg->rand2, group->rand2, RAND_LEN);
data/uftp-4.10.2/proxy_upstream.c:859: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(keyinfo_ack->verify_data, verify_val, VERIFY_LEN);
data/uftp-4.10.2/proxy_upstream.c:1029: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(sent_naks, pending->naklist, payloadlen);
data/uftp-4.10.2/server.h:113: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 name[DESTNAME_LEN];        /// Hostname of client
data/uftp-4.10.2/server.h:151: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 name[DESTNAME_LEN];        /// Hostname of client
data/uftp-4.10.2/server.h:169:8:  [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.
extern char port[PORTNAME_LEN], srcport[PORTNAME_LEN];
data/uftp-4.10.2/server.h:170:8:  [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.
extern char pub_multi[INET6_ADDRSTRLEN], priv_multi[INET6_ADDRSTRLEN];
data/uftp-4.10.2/server.h:171:8:  [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.
extern char keyfile[MAXPATHNAME];
data/uftp-4.10.2/server.h:172:8:  [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.
extern char filelist[MAXFILES][MAXPATHNAME], exclude[MAXEXCLUDE][MAXPATHNAME];
data/uftp-4.10.2/server.h:173:8:  [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.
extern char basedir[MAXDIR][MAXDIRNAME], destfname[MAXPATHNAME];
data/uftp-4.10.2/server.h:174:8:  [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.
extern char statusfilename[MAXPATHNAME];
data/uftp-4.10.2/server.h:192:17:  [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.
extern unsigned char rand1[RAND_LEN], groupmaster[MASTER_LEN];
data/uftp-4.10.2/server_announce.c:74: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(encinfo->rand1, rand1, sizeof(rand1));
data/uftp-4.10.2/server_announce.c:120:65:  [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).
int send_announce(const struct finfo_t *finfo, int attempt, int open)
data/uftp-4.10.2/server_announce.c:162: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(publicaddr, &listen_dest.sin6.sin6_addr.s6_addr, iplen);
data/uftp-4.10.2/server_announce.c:163: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(privateaddr, &receive_dest.sin6.sin6_addr.s6_addr, iplen);
data/uftp-4.10.2/server_announce.c:165: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(publicaddr, &listen_dest.sin.sin_addr.s_addr, iplen);
data/uftp-4.10.2/server_announce.c:166: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(privateaddr, &receive_dest.sin.sin_addr.s_addr, iplen);
data/uftp-4.10.2/server_announce.c:186:9:  [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).
    if (open) {
data/uftp-4.10.2/server_announce.c:404:40:  [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).
                     int proxyidx, int open, double rtt)
data/uftp-4.10.2/server_announce.c:417: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).
            if (open) {
data/uftp-4.10.2/server_announce.c:464: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(privatemcast, &receive_dest.sin6.sin6_addr.s6_addr, iplen);
data/uftp-4.10.2/server_announce.c:466: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(privatemcast, &receive_dest.sin.sin_addr.s_addr, iplen);
data/uftp-4.10.2/server_announce.c:481: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(verifydata, &n_group_id, sizeof(n_group_id));
data/uftp-4.10.2/server_announce.c:483: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(verifydata + *verifylen, &privatemcast, iplen);
data/uftp-4.10.2/server_announce.c:485: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(verifydata + *verifylen, rand1, sizeof(rand1));
data/uftp-4.10.2/server_announce.c:487: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(verifydata + *verifylen, destlist[hostidx].encinfo->rand2,
data/uftp-4.10.2/server_announce.c:490: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(verifydata + *verifylen, destlist[hostidx].encinfo->premaster,
data/uftp-4.10.2/server_announce.c:515: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(verifydata + *verifylen, groupmaster, sizeof(groupmaster));
data/uftp-4.10.2/server_announce.c:572: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(seed, rand1, sizeof(rand1));
data/uftp-4.10.2/server_announce.c:573: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(seed + sizeof(rand1), destlist[hostidx].encinfo->rand2,
data/uftp-4.10.2/server_announce.c:584: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(destlist[hostidx].encinfo->hmackey, prf_buf, hmaclen);
data/uftp-4.10.2/server_announce.c:585: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(destlist[hostidx].encinfo->key, prf_buf + hmaclen, keylen);
data/uftp-4.10.2/server_announce.c:586: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(destlist[hostidx].encinfo->salt, prf_buf + hmaclen + keylen,
data/uftp-4.10.2/server_announce.c:600: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.
    unsigned char premaster[PUBKEY_LEN];
data/uftp-4.10.2/server_announce.c:637: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(destlist[hostidx].encinfo->premaster, premaster, len);
data/uftp-4.10.2/server_announce.c:719:52:  [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).
                     int hostidx, int regconf, int open)
data/uftp-4.10.2/server_announce.c:739:62:  [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).
    if ((clientcnt > 0) && (!destlist[hostidx].isproxy) && (!open)) {
data/uftp-4.10.2/server_announce.c:780:64:  [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).
        add_proxy_dests(finfo, idlist, su, clientcnt, hostidx, open,
data/uftp-4.10.2/server_announce.c:795: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.
    unsigned char fingerprint[HMAC_LEN];
data/uftp-4.10.2/server_announce.c:888: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(destlist[hostidx].encinfo->verifydata, verify,
data/uftp-4.10.2/server_announce.c:936: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(destlist[hostidx].encinfo->verifydata, verify,
data/uftp-4.10.2/server_announce.h:36:65:  [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).
int send_announce(const struct finfo_t *finfo, int attempt, int open);
data/uftp-4.10.2/server_announce.h:46:52:  [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).
                     int hostidx, int regconf, int open);
data/uftp-4.10.2/server_common.c:136: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 out_addr[INET6_ADDRSTRLEN];
data/uftp-4.10.2/server_common.c:316: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(sig, sigcopy, siglen);
data/uftp-4.10.2/server_config.c:69: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 port[PORTNAME_LEN], srcport[PORTNAME_LEN];
data/uftp-4.10.2/server_config.c:70: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 pub_multi[INET6_ADDRSTRLEN], priv_multi[INET6_ADDRSTRLEN]; 
data/uftp-4.10.2/server_config.c:71: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 keyfile[MAXPATHNAME];
data/uftp-4.10.2/server_config.c:72: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 filelist[MAXFILES][MAXPATHNAME], exclude[MAXEXCLUDE][MAXPATHNAME];
data/uftp-4.10.2/server_config.c:73: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 basedir[MAXDIR][MAXDIRNAME], destfname[MAXPATHNAME];
data/uftp-4.10.2/server_config.c:74: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 statusfilename[MAXPATHNAME];
data/uftp-4.10.2/server_config.c:92:10:  [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.
unsigned char rand1[RAND_LEN], groupmaster[MASTER_LEN];
data/uftp-4.10.2/server_config.c:225:15:  [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).
    if ((fd = open(restart_name, OPENREAD)) == -1) {
data/uftp-4.10.2/server_config.c:263: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(destlist[destcount].name, host.name, sizeof(host.name));
data/uftp-4.10.2/server_config.c:332: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 line[1000], *dest, *destname, filename[MAXPATHNAME], *fingerprint, *p;
data/uftp-4.10.2/server_config.c:333: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 keylenstr[50];
data/uftp-4.10.2/server_config.c:347:25:  [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).
            log_level = atoi(optarg);
data/uftp-4.10.2/server_config.c:369:22:  [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).
            rcvbuf = atoi(optarg);
data/uftp-4.10.2/server_config.c:376:28:  [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).
            max_log_size = atoi(optarg);
data/uftp-4.10.2/server_config.c:384:29:  [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).
            max_log_count = atoi(optarg);
data/uftp-4.10.2/server_config.c:391: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).
            max_nak_cnt = atoi(optarg);
data/uftp-4.10.2/server_config.c:475:25:  [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).
            blocksize = atoi(optarg); 
data/uftp-4.10.2/server_config.c:482:22:  [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).
            tmpval = atoi(optarg);
data/uftp-4.10.2/server_config.c:541: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).
            if ((destfile = fopen(optarg, "rt")) == NULL) {
data/uftp-4.10.2/server_config.c:577:22:  [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).
            tmpval = atoi(optarg);
data/uftp-4.10.2/server_config.c:600:33:  [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).
                if ((destfile = fopen(dest, "rt")) == NULL) {
data/uftp-4.10.2/server_config.c:644:32:  [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).
            if ((excludefile = fopen(optarg, "rt")) == NULL) {
data/uftp-4.10.2/server_config.c:811:22:  [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).
            robust = atoi(optarg);
data/uftp-4.10.2/server_config.c:824:36:  [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).
            } else if ((listfile = fopen(optarg, "rt")) == NULL) {
data/uftp-4.10.2/server_config.c:851:24:  [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).
            txweight = atoi(optarg);
data/uftp-4.10.2/server_config.c:858: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).
            max_nak_pct = atoi(optarg);
data/uftp-4.10.2/server_config.c:898:25:  [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).
            newkeylen = atoi(keylenstr);
data/uftp-4.10.2/server_init.c:173: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 *p, tmp_multi[INET6_ADDRSTRLEN];
data/uftp-4.10.2/server_init.c:188: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(&listen_dest, ai_rval->ai_addr, ai_rval->ai_addrlen);
data/uftp-4.10.2/server_init.c:215: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(&receive_dest, ai_rval->ai_addr, ai_rval->ai_addrlen);
data/uftp-4.10.2/server_init.c:461: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(&rand1, &t2, sizeof(t2));
data/uftp-4.10.2/server_init.c:467: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(grouphmackey, prf_buf, hmaclen);
data/uftp-4.10.2/server_init.c:468: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(groupkey, prf_buf + hmaclen, keylen);
data/uftp-4.10.2/server_init.c:469: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(groupsalt, prf_buf + hmaclen + keylen, SALT_LEN);
data/uftp-4.10.2/server_init.c:535:28:  [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).
        if ((status_file = fopen(statusfilename, "at")) == NULL) {
data/uftp-4.10.2/server_phase.c:1106: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 path[MAXPATHNAME];
data/uftp-4.10.2/server_phase.c:1128:21:  [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).
        if ((file = open(path, OPENREAD, 0)) == -1) {
data/uftp-4.10.2/server_send.c:88: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 path[MAXPATHNAME], destpath[MAXPATHNAME];
data/uftp-4.10.2/server_send.c:155:19:  [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).
        if ((fd = open(path, OPENREAD, 0)) == -1) {
data/uftp-4.10.2/server_send.c:205:9:  [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 linkname[MAXPATHNAME];
data/uftp-4.10.2/server_send.c:244:9:  [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 dirglob[MAXPATHNAME];
data/uftp-4.10.2/server_send.c:282:9:  [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 dirname[MAXPATHNAME];
data/uftp-4.10.2/server_send.c:362: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(host.keyfingerprint, destlist[i].keyfingerprint,
data/uftp-4.10.2/server_send.c:379: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 restart_name[MAXFILENAME];
data/uftp-4.10.2/server_send.c:380: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 proxy_listed[MAXPROXYDEST];
data/uftp-4.10.2/server_send.c:391:27:  [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).
                if ((fd = open(restart_name, OPENWRITE | O_CREAT | O_TRUNC,
data/uftp-4.10.2/server_send.c:459: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 path[MAXPATHNAME], l_destfname[MAXPATHNAME], mcast[INET6_ADDRSTRLEN];
data/uftp-4.10.2/server_transfer.c:201: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(bodyptr, body, len);
data/uftp-4.10.2/server_transfer.c:252: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 status[20];
data/uftp-4.10.2/testclient_multi.c:60: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.
    unsigned char buf[BLOCKSIZE], seed[64], prf_buf[200];
data/uftp-4.10.2/testclient_multi.c:83: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(reg->rand2,destlist[i].rand2,sizeof(destlist[i].rand2));
data/uftp-4.10.2/testclient_multi.c:84: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(reg_premaster,
data/uftp-4.10.2/testclient_multi.c:94: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(seed,rand1,sizeof(rand1));
data/uftp-4.10.2/testclient_multi.c:95: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(seed+sizeof(rand1),
data/uftp-4.10.2/testclient_multi.c:109: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(destlist[i].hmac, prf_buf, hashlen);
data/uftp-4.10.2/testclient_multi.c:110: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(destlist[i].key, prf_buf + hashlen, keylen);
data/uftp-4.10.2/testclient_multi.c:111: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(destlist[i].iv, prf_buf + hashlen + keylen, ivlen);
data/uftp-4.10.2/testclient_multi.c:133: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(rand1,announce->rand1,sizeof(announce->rand1));
data/uftp-4.10.2/testclient_multi.c:164: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(destlist[i].verify, &n_groupid, sizeof(n_groupid));
data/uftp-4.10.2/testclient_multi.c:166: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(destlist[i].verify + destlist[i].verifylen,
data/uftp-4.10.2/testclient_multi.c:170: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(destlist[i].verify + destlist[i].verifylen,rand1,sizeof(rand1));
data/uftp-4.10.2/testclient_multi.c:172: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(destlist[i].verify + destlist[i].verifylen, destlist[i].rand2,
data/uftp-4.10.2/testclient_multi.c:175: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(destlist[i].verify + destlist[i].verifylen,destlist[i].premaster,
data/uftp-4.10.2/testclient_multi.c:193: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.
    unsigned char buf[BLOCKSIZE], data[BLOCKSIZE];
data/uftp-4.10.2/testclient_multi.c:194: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.
    unsigned char iv[MAXIV], prf_buf[200], hmac[HMAC_LEN];
data/uftp-4.10.2/testclient_multi.c:255: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(enc_sig, hmac, len);
data/uftp-4.10.2/testclient_multi.c:266: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.
    unsigned char dec_groupmaster[MASTER_LEN], prf_buf[200], iv[MAXIV];
data/uftp-4.10.2/testclient_multi.c:303: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(groupmaster+1,dec_groupmaster,len);
data/uftp-4.10.2/testclient_multi.c:310: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(hmackey, prf_buf, hashlen);
data/uftp-4.10.2/testclient_multi.c:311: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(groupkey, prf_buf + hashlen, keylen);
data/uftp-4.10.2/testclient_multi.c:312: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(groupiv, prf_buf + hashlen + keylen, ivlen);
data/uftp-4.10.2/testclient_multi.c:324: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(destlist[i].verify+destlist[i].verifylen,
data/uftp-4.10.2/testclient_multi.c:380: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.
    unsigned char buf[BLOCKSIZE],data[BLOCKSIZE];
data/uftp-4.10.2/testclient_multi.c:440: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(hmacsav,enc_sig,ntohs(encrypted->sig_len));
data/uftp-4.10.2/testclient_multi.c:498: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.
    unsigned char buf[BLOCKSIZE], data[BLOCKSIZE];
data/uftp-4.10.2/testclient_multi.c:499: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.
    unsigned char iv[MAXIV], hmac[HMAC_LEN];
data/uftp-4.10.2/testclient_multi.c:523: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(naklist, naks, blocksize);
data/uftp-4.10.2/testclient_multi.c:553: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(enc_sig, hmac, len);
data/uftp-4.10.2/testclient_multi.c:564: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.
    unsigned char buf[BLOCKSIZE], data[BLOCKSIZE];
data/uftp-4.10.2/testclient_multi.c:565: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.
    unsigned char iv[MAXIV], hmac[HMAC_LEN];
data/uftp-4.10.2/testclient_multi.c:610: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(enc_sig, hmac, len);
data/uftp-4.10.2/testclient_multi.c:628: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.
    unsigned char *decdata, iv[MAXIV], naklist[BLOCKSIZE];
data/uftp-4.10.2/testclient_multi.c:679: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(hmacsav,enc_sig,ntohs(encrypted->sig_len));
data/uftp-4.10.2/testclient_multi.c:826:17:  [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).
    destcount = atoi(argv[3]);
data/uftp-4.10.2/uftp.h:44:9:  [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).
#define open(name, ...) _open(name, __VA_ARGS__)
data/uftp-4.10.2/uftp.h:103:14:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
#define fork vfork
data/uftp-4.10.2/uftp.h:107:9:  [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).
#define open(name, flag, mode) open(name, flag, mode, "ctx=stm")
data/uftp-4.10.2/uftp.h:107:32:  [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).
#define open(name, flag, mode) open(name, flag, mode, "ctx=stm")
data/uftp-4.10.2/uftp.h:563: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 message[300]; // TODO: define error codes
data/uftp-4.10.2/uftp_common.c:67:9:  [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 errbuf[300];
data/uftp-4.10.2/uftp_common.c:81:17:  [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(&list[*len].su, uni->Address.lpSockaddr,
data/uftp-4.10.2/uftp_common.c:144: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(&list[*len].su, ifa_tmp->ifa_addr,
data/uftp-4.10.2/uftp_common.c:204: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(&list[*len].su, &ifr[i].lifr_addr,
data/uftp-4.10.2/uftp_common.c:227:12:  [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.
    static char str[50];
data/uftp-4.10.2/uftp_common.c:478: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 logfile[MAXPATHNAME];
data/uftp-4.10.2/uftp_common.c:509:19:  [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).
        if ((fd = open(logfile, O_WRONLY | O_APPEND | O_CREAT, 0644)) == -1) {
data/uftp-4.10.2/uftp_common.c:541: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 oldname[MAXPATHNAME], newname[MAXPATHNAME];
data/uftp-4.10.2/uftp_common.c:581:21:  [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).
            if ((fd=open(logfile, O_WRONLY | O_APPEND | O_CREAT, 0644)) == -1) {
data/uftp-4.10.2/uftp_common.c:593:21:  [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).
            if ((fd=open(logfile, O_WRONLY | O_APPEND | O_CREAT, 0644)) == -1) {
data/uftp-4.10.2/uftp_common.c:661:9:  [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 errbuf[300];
data/uftp-4.10.2/uftp_common.c:717:9:  [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 errbuf[300];
data/uftp-4.10.2/uftp_common.c:991: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 control[1000];
data/uftp-4.10.2/uftp_common.c:998: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 control[1000];
data/uftp-4.10.2/uftp_common.c:1135:20:  [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.
        ((unsigned char *)p1)[i] ^= ((const unsigned char *)p2)[i];
data/uftp-4.10.2/uftp_common.c:1135:54:  [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.
        ((unsigned char *)p1)[i] ^= ((const unsigned char *)p2)[i];
data/uftp-4.10.2/uftp_common.c:1149: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 tmp[16], tmp2[16];
data/uftp-4.10.2/uftp_common.c:1155: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(tmp, salt, SALT_LEN);
data/uftp-4.10.2/uftp_common.c:1157: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(tmp + tmplen, &src_id, sizeof(uint32_t));
data/uftp-4.10.2/uftp_common.c:1159: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(tmp2, &ivctr, sizeof(uint64_t));
data/uftp-4.10.2/uftp_common.c:1163: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(tmp, salt, SALT_LEN);
data/uftp-4.10.2/uftp_common.c:1165: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(tmp2, &src_id, sizeof(uint32_t));
data/uftp-4.10.2/uftp_common.c:1168: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(tmp + tmplen, &ivctr, sizeof(uint64_t));
data/uftp-4.10.2/uftp_common.c:1171: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(tmp, salt, SALT_LEN);
data/uftp-4.10.2/uftp_common.c:1173: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(tmp + tmplen, &src_id, sizeof(uint32_t));
data/uftp-4.10.2/uftp_common.c:1175: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(tmp + tmplen, &ivctr, sizeof(uint64_t));
data/uftp-4.10.2/uftp_common.c:1178: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(iv, tmp, tmplen);
data/uftp-4.10.2/uftp_common.c:1295: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(sigcopy, sig, hsiglen);
data/uftp-4.10.2/uftp_common.c:1399: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(*encpacket, decpacket, sizeof(struct uftp_h));
data/uftp-4.10.2/uftp_common.c:1476: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(sig, sigcopy, len);
data/uftp-4.10.2/uftp_common.c:1502: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(newseed, label, strlen(label));
data/uftp-4.10.2/uftp_common.c:1504: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(newseed + newseed_len, seed, seed_len);
data/uftp-4.10.2/uftp_common.c:1507: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(inbuf, newseed, newseed_len);
data/uftp-4.10.2/uftp_common.c:1515: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(tmpbuf + tmpbuf_len, newseed, newseed_len);
data/uftp-4.10.2/uftp_common.c:1520: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(inbuf,tmpbuf,tmpbuf_len);
data/uftp-4.10.2/uftp_common.c:1568:12:  [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.
    static char fpstr[100];
data/uftp-4.10.2/uftp_common.c:1570: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.
    unsigned char *keyblob, fingerprint[HMAC_LEN];
data/uftp-4.10.2/uftp_common.c:1976:9:  [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 errbuf[300];
data/uftp-4.10.2/uftp_common.h:54:8:  [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.
extern char logfile[MAXPATHNAME];
data/uftp-4.10.2/uftp_common.h:164: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 name[IFNAME_LEN];
data/uftp-4.10.2/uftp_keymgt.c:95: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).
                gen_key_len = atoi(&optarg[4]);
data/uftp-4.10.2/client_announce.c:920:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(srcfqdn, srcname, sizeof(srcfqdn) - 1);
data/uftp-4.10.2/client_common.c:199:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(restart.name, fileinfo->name, sizeof(restart.name));
data/uftp-4.10.2/client_common.c:297:9:  [1] (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). Risk is low because the source is a constant character.
        strcpy(cmdline, "");
data/uftp-4.10.2/client_common.c:298: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).
        if ((!strncmp(&postreceive[strlen(postreceive)-4], ".cmd", 4)) ||
data/uftp-4.10.2/client_common.c:299:40:  [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).
                (!strncmp(&postreceive[strlen(postreceive)-4], ".bat", 4))) {
data/uftp-4.10.2/client_common.c:316:33:  [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 size = 0x8000 - strlen(cmdline);
data/uftp-4.10.2/client_common.c:317:30:  [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 (size <= (int)strlen(params[i]) + 4) {
data/uftp-4.10.2/client_common.c:324:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(cmdline," ");
data/uftp-4.10.2/client_common.c:326:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(cmdline, "\"");
data/uftp-4.10.2/client_common.c:332:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(cmdline, "\"");
data/uftp-4.10.2/client_common.c:608:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(abort_hdr->message, message, sizeof(abort_hdr->message) - 1);
data/uftp-4.10.2/client_common.c:974:29:  [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 ((base == NULL) || ((strlen(dir) == 2) && (dir[1] == ':'))) {
data/uftp-4.10.2/client_config.c:132:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(logfile, DEF_LOGFILE, sizeof(logfile)-1);
data/uftp-4.10.2/client_config.c:134:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(statusfilename, "", sizeof(statusfilename)-1);
data/uftp-4.10.2/client_config.c:140:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(portname, DEF_PORT, sizeof(portname)-1);
data/uftp-4.10.2/client_config.c:144:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tempdir, DEF_TEMPDIR, sizeof(tempdir)-1);
data/uftp-4.10.2/client_config.c:200:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(statusfilename, optarg, sizeof(statusfilename)-1);
data/uftp-4.10.2/client_config.c:204:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(logfile, optarg, sizeof(logfile)-1);
data/uftp-4.10.2/client_config.c:208:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(pidfile, optarg, sizeof(pidfile)-1);
data/uftp-4.10.2/client_config.c:212:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(postreceive, optarg, sizeof(postreceive)-1);
data/uftp-4.10.2/client_config.c:252:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(portname, optarg, sizeof(portname)-1);
data/uftp-4.10.2/client_config.c:264:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tempdir, optarg, sizeof(tempdir)-1);
data/uftp-4.10.2/client_config.c:270:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(destdir[destdircnt], p, sizeof(destdir[destdircnt])-1);
data/uftp-4.10.2/client_config.c:279:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(backupdir[backupcnt],p,sizeof(backupdir[backupcnt])-1);
data/uftp-4.10.2/client_config.c:340:25:  [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).
                while ((strlen(line) != 0) && ((line[strlen(line)-1] == '\r') ||
data/uftp-4.10.2/client_config.c:340: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).
                while ((strlen(line) != 0) && ((line[strlen(line)-1] == '\r') ||
data/uftp-4.10.2/client_config.c:341:30:  [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).
                       (line[strlen(line)-1] == '\n'))) {
data/uftp-4.10.2/client_config.c:342:26:  [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).
                    line[strlen(line)-1] = '\x0';
data/uftp-4.10.2/client_config.c:360:21:  [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(servername) >= DESTNAME_LEN) {
data/uftp-4.10.2/client_config.c:373:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(line, optarg, sizeof(line));
data/uftp-4.10.2/client_config.c:401:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(keyfile[keyfile_count], p, sizeof(keyfile[0])-1);
data/uftp-4.10.2/client_config.c:410:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(keyinfo[keyinfo_count], p, sizeof(keyinfo[0])-1);
data/uftp-4.10.2/client_config.c:529:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(destdir[0], DEF_DESTDIR, sizeof(destdir[0])-1);
data/uftp-4.10.2/client_fileinfo.c:124:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(group->fileinfo.name, name, fileinfo->namelen * 4);
data/uftp-4.10.2/client_fileinfo.c:125:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(group->fileinfo.linkname, flink, fileinfo->linklen * 4);
data/uftp-4.10.2/client_fileinfo.c:158:9:  [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(group->fileinfo.name) == 0) {
data/uftp-4.10.2/client_fileinfo.c:171: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).
        if (strlen(group->fileinfo.linkname) == 0) {
data/uftp-4.10.2/client_fileinfo.c:217:57:  [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 (!ncmp(group->fileinfo.name, destdir[i], strlen(destdir[i]))) {
data/uftp-4.10.2/client_init.c:224:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0);
data/uftp-4.10.2/encrypt_cng.c:176:37:  [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).
    mbstowcs(wcontainer, container, strlen(container));
data/uftp-4.10.2/encrypt_cng.c:1223:41:  [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).
        mbstowcs(wcontainer, container, strlen(container));
data/uftp-4.10.2/encrypt_cng.c:1286:41:  [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).
        mbstowcs(wcontainer, container, strlen(container));
data/uftp-4.10.2/encrypt_cng.c:1337:37:  [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).
    mbstowcs(wcontainer, container, strlen(container));
data/uftp-4.10.2/proxy_common.c:909:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(abort_hdr->message, message, sizeof(abort_hdr->message) - 1);
data/uftp-4.10.2/proxy_common.c:951:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(abort_hdr->message, message, sizeof(abort_hdr->message) - 1);
data/uftp-4.10.2/proxy_config.c:105:21:  [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).
        while (line[strlen(line)-1] == '\r' || line[strlen(line)-1] == '\n') {
data/uftp-4.10.2/proxy_config.c:105:53:  [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).
        while (line[strlen(line)-1] == '\r' || line[strlen(line)-1] == '\n') {
data/uftp-4.10.2/proxy_config.c:106:18:  [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).
            line[strlen(line)-1] = '\x0';
data/uftp-4.10.2/proxy_config.c:129: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).
        if (strlen(hostid) >= DESTNAME_LEN) {
data/uftp-4.10.2/proxy_config.c:178:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(portname, DEF_PORT, sizeof(portname)-1);
data/uftp-4.10.2/proxy_config.c:184:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(out_portname, DEF_PORT, sizeof(out_portname)-1);
data/uftp-4.10.2/proxy_config.c:189:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(logfile, DEF_LOGFILE, sizeof(logfile)-1);
data/uftp-4.10.2/proxy_config.c:280:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(portname, optarg, sizeof(portname)-1);
data/uftp-4.10.2/proxy_config.c:345:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(out_portname, optarg, sizeof(out_portname)-1);
data/uftp-4.10.2/proxy_config.c:414:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(logfile, optarg, sizeof(logfile)-1);
data/uftp-4.10.2/proxy_config.c:418:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(pidfile, optarg, sizeof(pidfile)-1);
data/uftp-4.10.2/proxy_config.c:437:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(keyfile[keyfile_count], p, sizeof(keyfile[0])-1);
data/uftp-4.10.2/proxy_config.c:446:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(keyinfo[keyinfo_count], p, sizeof(keyinfo[0])-1);
data/uftp-4.10.2/proxy_downstream.c:520:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(120);
data/uftp-4.10.2/proxy_downstream.c:583:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(status, "", sizeof(status));
data/uftp-4.10.2/proxy_downstream.c:586:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(status, "(skipped)", sizeof(status));
data/uftp-4.10.2/proxy_downstream.c:589:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(status, "(overwritten)", sizeof(status));
data/uftp-4.10.2/proxy_downstream.c:592:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(status, "(rejected)", sizeof(status));
data/uftp-4.10.2/proxy_init.c:214:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0);
data/uftp-4.10.2/server_announce.c:312:30:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            if (packet_wait) usleep(packet_wait/1000);
data/uftp-4.10.2/server_announce.c:338:9:  [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(finfo->destfname) > MAXPATHNAME) {
data/uftp-4.10.2/server_announce.c:353:44:  [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).
    fileinfo->namelen = (uint8_t)(0 + ceil(strlen(finfo->destfname) / 4.0));
data/uftp-4.10.2/server_announce.c:361:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(filename, finfo->destfname, MAXPATHNAME);
data/uftp-4.10.2/server_announce.c:363: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).
        if (strlen(finfo->linkname) > 
data/uftp-4.10.2/server_announce.c:370:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(linkname, finfo->linkname,
data/uftp-4.10.2/server_announce.c:372: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).
        fileinfo->linklen = (uint8_t)(0 + ceil(strlen(finfo->linkname) / 4.0));
data/uftp-4.10.2/server_common.c:93:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(abort_hdr->message, message, sizeof(abort_hdr->message) - 1);
data/uftp-4.10.2/server_common.c:215:30:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            if (packet_wait) usleep(packet_wait/1000);
data/uftp-4.10.2/server_config.c:152:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(port, DEF_PORT, sizeof(port)-1);
data/uftp-4.10.2/server_config.c:154:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(srcport, DEF_SRCPORT, sizeof(srcport)-1);
data/uftp-4.10.2/server_config.c:179:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(pub_multi, DEF_PUB_MULTI, sizeof(pub_multi)-1);
data/uftp-4.10.2/server_config.c:181:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(priv_multi, DEF_PRIV_MULTI, sizeof(priv_multi)-1);
data/uftp-4.10.2/server_config.c:183:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(logfile, "", sizeof(logfile)-1);
data/uftp-4.10.2/server_config.c:185:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
    strncpy(statusfilename, "", sizeof(statusfilename)-1);
data/uftp-4.10.2/server_config.c:365:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(logfile, optarg, sizeof(logfile)-1);
data/uftp-4.10.2/server_config.c:461:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(keyfile, optarg, sizeof(keyfile)-1);
data/uftp-4.10.2/server_config.c:465:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(keylenstr, optarg, sizeof(keylenstr)-1);
data/uftp-4.10.2/server_config.c:529:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(port, optarg, sizeof(port)-1);
data/uftp-4.10.2/server_config.c:533:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(srcport, optarg, sizeof(srcport)-1);
data/uftp-4.10.2/server_config.c:547:25:  [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).
                while ((strlen(line) > 0) && ((line[strlen(line)-1] == '\r') ||
data/uftp-4.10.2/server_config.c:547:53:  [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).
                while ((strlen(line) > 0) && ((line[strlen(line)-1] == '\r') ||
data/uftp-4.10.2/server_config.c:548:30:  [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).
                       (line[strlen(line)-1] == '\n'))) {
data/uftp-4.10.2/server_config.c:549:26:  [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).
                    line[strlen(line)-1] = '\x0';
data/uftp-4.10.2/server_config.c:554:21:  [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(destname) >= DESTNAME_LEN) {
data/uftp-4.10.2/server_config.c:606:29:  [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).
                    while ((strlen(line) > 0) &&
data/uftp-4.10.2/server_config.c:607:35:  [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).
                           ((line[strlen(line)-1] == '\r') ||
data/uftp-4.10.2/server_config.c:608:35:  [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).
                            (line[strlen(line)-1] == '\n'))) {
data/uftp-4.10.2/server_config.c:609:30:  [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).
                        line[strlen(line)-1] = '\x0';
data/uftp-4.10.2/server_config.c:614:25:  [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(destname) >= DESTNAME_LEN) {
data/uftp-4.10.2/server_config.c:650:25:  [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).
                while ((strlen(filename) > 0) &&
data/uftp-4.10.2/server_config.c:651:35:  [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).
                       ((filename[strlen(filename)-1] == '\r') ||
data/uftp-4.10.2/server_config.c:652:35:  [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).
                        (filename[strlen(filename)-1] == '\n'))) {
data/uftp-4.10.2/server_config.c:653:30:  [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).
                    filename[strlen(filename)-1] = '\x0';
data/uftp-4.10.2/server_config.c:655:21:  [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(filename) == 0) continue;
data/uftp-4.10.2/server_config.c:660:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(exclude[excludecount], filename, sizeof(exclude[0]));
data/uftp-4.10.2/server_config.c:671:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(pub_multi, optarg, sizeof(pub_multi)-1);
data/uftp-4.10.2/server_config.c:675:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(priv_multi, optarg, sizeof(priv_multi)-1);
data/uftp-4.10.2/server_config.c:738:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(destfname, optarg, sizeof(destfname)-1);
data/uftp-4.10.2/server_config.c:740:30:  [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).
            while (destfname[strlen(destfname)-1] == PATH_SEP) {
data/uftp-4.10.2/server_config.c:741:27:  [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).
                destfname[strlen(destfname)-1] = '\x0';
data/uftp-4.10.2/server_config.c:750:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(basedir[basedircount], p,
data/uftp-4.10.2/server_config.c:758:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(statusfilename, optarg, sizeof(statusfilename)-1);
data/uftp-4.10.2/server_config.c:834:25:  [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).
                while ((strlen(filename) > 0) &&
data/uftp-4.10.2/server_config.c:835:35:  [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).
                       ((filename[strlen(filename)-1] == '\r') ||
data/uftp-4.10.2/server_config.c:836:35:  [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).
                        (filename[strlen(filename)-1] == '\n'))) {
data/uftp-4.10.2/server_config.c:837:30:  [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).
                    filename[strlen(filename)-1] = '\x0';
data/uftp-4.10.2/server_config.c:839:21:  [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(filename) == 0) continue;
data/uftp-4.10.2/server_config.c:840:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(filelist[filecount], filename, sizeof(filelist[0])-1);
data/uftp-4.10.2/server_config.c:919:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(filelist[filecount], argv[i], sizeof(filelist[0])-1);
data/uftp-4.10.2/server_init.c:199:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(priv_multi, tmp_multi, sizeof(priv_multi));
data/uftp-4.10.2/server_init.c:207:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(priv_multi, tmp_multi, sizeof(priv_multi));
data/uftp-4.10.2/server_phase.c:675:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if ((numbytes = read(file, data, blocksize)) == -1) {
data/uftp-4.10.2/server_phase.c:686:21:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                    usleep((l_packet_wait - overage) / 1000);
data/uftp-4.10.2/server_phase.c:742:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(l_packet_wait / 1000);
data/uftp-4.10.2/server_send.c:213: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).
        if (strlen(linkname) + strlen(filename) + 2 > MAXPATHNAME) {
data/uftp-4.10.2/server_send.c:213:32:  [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(linkname) + strlen(filename) + 2 > MAXPATHNAME) {
data/uftp-4.10.2/server_send.c:357:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(host.name, destlist[i].name, sizeof(host.name));
data/uftp-4.10.2/server_send.c:544:55:  [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 (!ncmp(basedir[j],filelist[i], strlen(basedir[j]))) {
data/uftp-4.10.2/server_send.c:556:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(l_destfname, filelist[i] + strlen(basedir[j]),
data/uftp-4.10.2/server_send.c:556:52:  [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).
                strncpy(l_destfname, filelist[i] + strlen(basedir[j]),
data/uftp-4.10.2/server_send.c:559:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(l_destfname, base, sizeof(l_destfname)-1);
data/uftp-4.10.2/server_transfer.c:303:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(status, "", sizeof(status));
data/uftp-4.10.2/server_transfer.c:307:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(status, "(skipped)", sizeof(status));
data/uftp-4.10.2/server_transfer.c:312:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(status, "(overwritten)", sizeof(status));
data/uftp-4.10.2/server_transfer.c:316:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(status, "(rejected)", sizeof(status));
data/uftp-4.10.2/uftp.h:45:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(fd, buf, count) _read(fd, buf, count)
data/uftp-4.10.2/uftp.h:53:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define usleep(t) Sleep((int)(t)/1000)
data/uftp-4.10.2/uftp_common.c:79:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(list[*len].name, (char *)curr->AdapterName,
data/uftp-4.10.2/uftp_common.c:142:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(list[*len].name, ifa_tmp->ifa_name,
data/uftp-4.10.2/uftp_common.c:203:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(list[*len].name,ifr[i].lifr_name, sizeof(list[i].name) - 1);
data/uftp-4.10.2/uftp_common.c:701:9:  [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(path) == 0) {
data/uftp-4.10.2/uftp_common.c:708: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).
    if ((path[strlen(path)-1] == '/') || (path[strlen(path)-1] == '\\')) {
data/uftp-4.10.2/uftp_common.c:708: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).
    if ((path[strlen(path)-1] == '/') || (path[strlen(path)-1] == '\\')) {
data/uftp-4.10.2/uftp_common.c:736:16:  [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).
        (*dir)[strlen(*dir) - strlen(*file) - 1] = '\x0';
data/uftp-4.10.2/uftp_common.c:736:31:  [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).
        (*dir)[strlen(*dir) - strlen(*file) - 1] = '\x0';
data/uftp-4.10.2/uftp_common.c:1496:27:  [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).
    newseed = safe_calloc(strlen(label) + seed_len, 1);
data/uftp-4.10.2/uftp_common.c:1497:50:  [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).
    inbuf = safe_calloc(get_hash_len(hashtype) + strlen(label) + seed_len, 1);
data/uftp-4.10.2/uftp_common.c:1498: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).
    tmpbuf = safe_calloc(get_hash_len(hashtype) + strlen(label) + seed_len, 1);
data/uftp-4.10.2/uftp_common.c:1502: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).
    memcpy(newseed, label, strlen(label));
data/uftp-4.10.2/uftp_common.c:1503:20:  [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).
    newseed_len += strlen(label);
data/uftp-4.10.2/uftp_common.c:1929:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((read_len = read(fd, buf, buflen)) == -1) {
data/uftp-4.10.2/win_func.c:46:16:  [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 (strlen(argv[optind]) <= 1) {

ANALYSIS SUMMARY:

Hits = 582
Lines analyzed = 26659 in approximately 0.74 seconds (35979 lines/second)
Physical Source Lines of Code (SLOC) = 21025
Hits@level = [0] 278 [1] 147 [2] 412 [3]  10 [4]  11 [5]   2
Hits@level+ = [0+] 860 [1+] 582 [2+] 435 [3+]  23 [4+]  13 [5+]   2
Hits/KSLOC@level+ = [0+] 40.9037 [1+] 27.6813 [2+] 20.6897 [3+] 1.09394 [4+] 0.618312 [5+] 0.0951249
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.