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/libssh2-1.8.0/example/direct_tcpip.c
Examining data/libssh2-1.8.0/example/scp.c
Examining data/libssh2-1.8.0/example/scp_nonblock.c
Examining data/libssh2-1.8.0/example/scp_write.c
Examining data/libssh2-1.8.0/example/scp_write_nonblock.c
Examining data/libssh2-1.8.0/example/sftp.c
Examining data/libssh2-1.8.0/example/sftp_RW_nonblock.c
Examining data/libssh2-1.8.0/example/sftp_append.c
Examining data/libssh2-1.8.0/example/sftp_mkdir.c
Examining data/libssh2-1.8.0/example/sftp_mkdir_nonblock.c
Examining data/libssh2-1.8.0/example/sftp_nonblock.c
Examining data/libssh2-1.8.0/example/sftp_write.c
Examining data/libssh2-1.8.0/example/sftp_write_nonblock.c
Examining data/libssh2-1.8.0/example/sftp_write_sliding.c
Examining data/libssh2-1.8.0/example/sftpdir.c
Examining data/libssh2-1.8.0/example/sftpdir_nonblock.c
Examining data/libssh2-1.8.0/example/ssh2.c
Examining data/libssh2-1.8.0/example/ssh2_agent.c
Examining data/libssh2-1.8.0/example/ssh2_echo.c
Examining data/libssh2-1.8.0/example/ssh2_exec.c
Examining data/libssh2-1.8.0/example/subsystem_netconf.c
Examining data/libssh2-1.8.0/example/tcpip-forward.c
Examining data/libssh2-1.8.0/example/x11.c
Examining data/libssh2-1.8.0/include/libssh2_publickey.h
Examining data/libssh2-1.8.0/include/libssh2_sftp.h
Examining data/libssh2-1.8.0/include/libssh2.h
Examining data/libssh2-1.8.0/nw/keepscreen.c
Examining data/libssh2-1.8.0/nw/nwlib.c
Examining data/libssh2-1.8.0/os400/ccsid.c
Examining data/libssh2-1.8.0/os400/include/alloca.h
Examining data/libssh2-1.8.0/os400/include/stdio.h
Examining data/libssh2-1.8.0/os400/include/sys/socket.h
Examining data/libssh2-1.8.0/os400/libssh2_ccsid.h
Examining data/libssh2-1.8.0/os400/libssh2_config.h
Examining data/libssh2-1.8.0/os400/macros.h
Examining data/libssh2-1.8.0/os400/os400sys.c
Examining data/libssh2-1.8.0/src/agent.c
Examining data/libssh2-1.8.0/src/channel.h
Examining data/libssh2-1.8.0/src/comp.c
Examining data/libssh2-1.8.0/src/comp.h
Examining data/libssh2-1.8.0/src/crypt.c
Examining data/libssh2-1.8.0/src/crypto.h
Examining data/libssh2-1.8.0/src/global.c
Examining data/libssh2-1.8.0/src/hostkey.c
Examining data/libssh2-1.8.0/src/keepalive.c
Examining data/libssh2-1.8.0/src/knownhost.c
Examining data/libssh2-1.8.0/src/libgcrypt.c
Examining data/libssh2-1.8.0/src/libgcrypt.h
Examining data/libssh2-1.8.0/src/mac.c
Examining data/libssh2-1.8.0/src/mac.h
Examining data/libssh2-1.8.0/src/mbedtls.c
Examining data/libssh2-1.8.0/src/mbedtls.h
Examining data/libssh2-1.8.0/src/misc.c
Examining data/libssh2-1.8.0/src/misc.h
Examining data/libssh2-1.8.0/src/openssl.c
Examining data/libssh2-1.8.0/src/openssl.h
Examining data/libssh2-1.8.0/src/os400qc3.c
Examining data/libssh2-1.8.0/src/os400qc3.h
Examining data/libssh2-1.8.0/src/packet.h
Examining data/libssh2-1.8.0/src/pem.c
Examining data/libssh2-1.8.0/src/publickey.c
Examining data/libssh2-1.8.0/src/scp.c
Examining data/libssh2-1.8.0/src/session.h
Examining data/libssh2-1.8.0/src/sftp.h
Examining data/libssh2-1.8.0/src/transport.h
Examining data/libssh2-1.8.0/src/userauth.h
Examining data/libssh2-1.8.0/src/version.c
Examining data/libssh2-1.8.0/src/wincng.c
Examining data/libssh2-1.8.0/src/wincng.h
Examining data/libssh2-1.8.0/src/channel.c
Examining data/libssh2-1.8.0/src/kex.c
Examining data/libssh2-1.8.0/src/session.c
Examining data/libssh2-1.8.0/src/sftp.c
Examining data/libssh2-1.8.0/src/transport.c
Examining data/libssh2-1.8.0/src/packet.c
Examining data/libssh2-1.8.0/src/userauth.c
Examining data/libssh2-1.8.0/src/libssh2_priv.h
Examining data/libssh2-1.8.0/tests/openssh_fixture.c
Examining data/libssh2-1.8.0/tests/openssh_fixture.h
Examining data/libssh2-1.8.0/tests/runner.c
Examining data/libssh2-1.8.0/tests/session_fixture.c
Examining data/libssh2-1.8.0/tests/session_fixture.h
Examining data/libssh2-1.8.0/tests/simple.c
Examining data/libssh2-1.8.0/tests/ssh2.c
Examining data/libssh2-1.8.0/tests/test_hostkey.c
Examining data/libssh2-1.8.0/tests/test_hostkey_hash.c
Examining data/libssh2-1.8.0/tests/test_keyboard_interactive_auth_fails_with_wrong_response.c
Examining data/libssh2-1.8.0/tests/test_keyboard_interactive_auth_succeeds_with_correct_response.c
Examining data/libssh2-1.8.0/tests/test_password_auth_fails_with_wrong_password.c
Examining data/libssh2-1.8.0/tests/test_password_auth_fails_with_wrong_username.c
Examining data/libssh2-1.8.0/tests/test_password_auth_succeeds_with_correct_credentials.c
Examining data/libssh2-1.8.0/tests/test_public_key_auth_fails_with_wrong_key.c
Examining data/libssh2-1.8.0/tests/test_public_key_auth_succeeds_with_correct_dsa_key.c
Examining data/libssh2-1.8.0/tests/test_public_key_auth_succeeds_with_correct_rsa_key.c
Examining data/libssh2-1.8.0/vms/libssh2_config.h
Examining data/libssh2-1.8.0/vms/man2help.c
Examining data/libssh2-1.8.0/win32/libssh2_config.h

FINAL RESULTS:

data/libssh2-1.8.0/example/subsystem_netconf.c:36:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf _snprintf
data/libssh2-1.8.0/example/subsystem_netconf.c:36:19:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf _snprintf
data/libssh2-1.8.0/example/x11.c:143:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            snprintf(addr.sun_path, sizeof(addr.sun_path),
data/libssh2-1.8.0/os400/include/stdio.h:65:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define vsnprintf(dst, len, fmt, args)                                     \
data/libssh2-1.8.0/os400/include/stdio.h:67:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf       _libssh2_os400_snprintf
data/libssh2-1.8.0/os400/os400sys.c:152:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    i = vsprintf(buf, fmt, args);
data/libssh2-1.8.0/src/kex.c:546:46:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
                init(session, session->local.crypt, iv, &free_iv, secret,
data/libssh2-1.8.0/src/kex.c:593:47:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
                init(session, session->remote.crypt, iv, &free_iv, secret,
data/libssh2-1.8.0/src/kex.c:1180:46:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
                init(session, session->local.crypt, iv, &free_iv, secret,
data/libssh2-1.8.0/src/kex.c:1227:47:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
                init(session, session->remote.crypt, iv, &free_iv, secret,
data/libssh2-1.8.0/src/kex.c:2185:43:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
                           unsigned char *crypt,
data/libssh2-1.8.0/src/kex.c:2200:33:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
            if (kex_agree_instr(crypt, crypt_len, s, method_len)) {
data/libssh2-1.8.0/src/kex.c:2222:29:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        s = kex_agree_instr(crypt, crypt_len,
data/libssh2-1.8.0/src/libssh2_priv.h:480:33:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
    const LIBSSH2_CRYPT_METHOD *crypt;
data/libssh2-1.8.0/src/libssh2_priv.h:912:11:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
    int (*crypt) (LIBSSH2_SESSION * session, unsigned char *block,
data/libssh2-1.8.0/src/misc.c:466:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        len = vsnprintf(buffer + msglen, buflen, format, vargs);
data/libssh2-1.8.0/src/session.c:882:28:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        if (session->local.crypt && session->local.crypt->dtor) {
data/libssh2-1.8.0/src/session.c:898:29:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        if (session->remote.crypt && session->remote.crypt->dtor) {
data/libssh2-1.8.0/src/session.c:1184:56:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        method = (LIBSSH2_KEX_METHOD *) session->local.crypt;
data/libssh2-1.8.0/src/session.c:1188:57:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        method = (LIBSSH2_KEX_METHOD *) session->remote.crypt;
data/libssh2-1.8.0/src/transport.c:142:36:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        if (session->remote.crypt->crypt(session, source, blocksize,
data/libssh2-1.8.0/src/transport.c:862:39:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
            if (session->local.crypt->crypt(session, ptr,
data/libssh2-1.8.0/tests/openssh_fixture.c:81:12:  [4] (shell) popen:
  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.
    pipe = popen(command_buf, "r");
data/libssh2-1.8.0/vms/man2help.c:125:8:  [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(gevonden,strtok(gevonden_file," "));
data/libssh2-1.8.0/win32/libssh2_config.h:28:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libssh2-1.8.0/win32/libssh2_config.h:28:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libssh2-1.8.0/win32/libssh2_config.h:30:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/libssh2-1.8.0/example/x11.c:123:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    display = getenv("DISPLAY");
data/libssh2-1.8.0/src/agent.c:150:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    path = getenv("SSH_AUTH_SOCK");
data/libssh2-1.8.0/tests/openssh_fixture.c:145:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    return getenv("DOCKER_MACHINE_NAME");
data/libssh2-1.8.0/tests/ssh2.c:62:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("USER"))
data/libssh2-1.8.0/tests/ssh2.c:63:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      username = getenv ("USER");
data/libssh2-1.8.0/tests/ssh2.c:65:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("PRIVKEY"))
data/libssh2-1.8.0/tests/ssh2.c:66:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      privkeyfile = getenv ("PRIVKEY");
data/libssh2-1.8.0/tests/ssh2.c:68:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv ("PUBKEY"))
data/libssh2-1.8.0/tests/ssh2.c:69:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      pubkeyfile = getenv ("PUBKEY");
data/libssh2-1.8.0/example/direct_tcpip.c:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16384];
data/libssh2-1.8.0/example/direct_tcpip.c:94: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).
        local_listenport = atoi(argv[5]);
data/libssh2-1.8.0/example/direct_tcpip.c:98: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).
        remote_destport = atoi(argv[7]);
data/libssh2-1.8.0/example/scp.c:150: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 mem[1024];
data/libssh2-1.8.0/example/scp_nonblock.c:231: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 mem[1024*24];
data/libssh2-1.8.0/example/scp_write.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 mem[1024];
data/libssh2-1.8.0/example/scp_write.c:87:13:  [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).
    local = fopen(loclfile, "rb");
data/libssh2-1.8.0/example/scp_write_nonblock.c:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mem[1024*100];
data/libssh2-1.8.0/example/scp_write_nonblock.c:126:13:  [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).
    local = fopen(loclfile, "rb");
data/libssh2-1.8.0/example/sftp.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 buf[1024];
data/libssh2-1.8.0/example/sftp.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 mem[1024];
data/libssh2-1.8.0/example/sftp_RW_nonblock.c:90: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 mem[1000];
data/libssh2-1.8.0/example/sftp_RW_nonblock.c:168:19:  [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).
    tempstorage = fopen(STORAGE, "wb");
data/libssh2-1.8.0/example/sftp_RW_nonblock.c:273:19:  [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).
    tempstorage = fopen(STORAGE, "rb");
data/libssh2-1.8.0/example/sftp_append.c:52: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 mem[1024*100];
data/libssh2-1.8.0/example/sftp_append.c:92:13:  [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).
    local = fopen(loclfile, "rb");
data/libssh2-1.8.0/example/sftp_nonblock.c:247: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 mem[1024*24];
data/libssh2-1.8.0/example/sftp_write.c:51: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 mem[1024*100];
data/libssh2-1.8.0/example/sftp_write.c:91:13:  [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).
    local = fopen(loclfile, "rb");
data/libssh2-1.8.0/example/sftp_write_nonblock.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 mem[1024 * 100];
data/libssh2-1.8.0/example/sftp_write_nonblock.c:131:13:  [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).
    local = fopen(loclfile, "rb");
data/libssh2-1.8.0/example/sftp_write_sliding.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 mem[1024 * 1000];
data/libssh2-1.8.0/example/sftp_write_sliding.c:131:13:  [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).
    local = fopen(loclfile, "rb");
data/libssh2-1.8.0/example/sftpdir.c:246: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 mem[512];
data/libssh2-1.8.0/example/sftpdir.c:247: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 longentry[512];
data/libssh2-1.8.0/example/sftpdir_nonblock.c:193: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 mem[512];
data/libssh2-1.8.0/example/ssh2_echo.c:230: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 buffer[BUFSIZE];
data/libssh2-1.8.0/example/ssh2_exec.c:265: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 buffer[0x4000];
data/libssh2-1.8.0/example/subsystem_netconf.c:120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1048576]; /* avoid any buffer reallocation for simplicity */
data/libssh2-1.8.0/example/tcpip-forward.c:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16384];
data/libssh2-1.8.0/example/tcpip-forward.c:91: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).
        remote_wantport = atoi(argv[5]);
data/libssh2-1.8.0/example/tcpip-forward.c:95:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        local_destport = atoi(argv[7]);
data/libssh2-1.8.0/example/x11.c:134: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(temp_buff, ptr+1, strlen(ptr+1));
data/libssh2-1.8.0/example/x11.c:135: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).
            display_port = atoi(temp_buff);
data/libssh2-1.8.0/os400/ccsid.c: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                    string[1];
data/libssh2-1.8.0/os400/ccsid.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAX_CHAR_SIZE];
data/libssh2-1.8.0/os400/os400sys.c:95:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy((char *) dstaddr, (char *) srcaddr, srclen);
data/libssh2-1.8.0/os400/os400sys.c:161: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(dst, buf, len);
data/libssh2-1.8.0/src/agent.c:176: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[4];
data/libssh2-1.8.0/src/agent.c:284: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 mapname[23];
data/libssh2-1.8.0/src/agent.c:300:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(mapname, "PageantRequest%08x", (unsigned)GetCurrentThreadId());
data/libssh2-1.8.0/src/agent.c:339: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(transctx->response, p + 4, transctx->response_len);
data/libssh2-1.8.0/src/agent.c:479: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, s, *sig_len);
data/libssh2-1.8.0/src/agent.c:578: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(identity->external.blob, s, identity->external.blob_len);
data/libssh2-1.8.0/src/agent.c:610: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(identity->external.comment, s, comment_len);
data/libssh2-1.8.0/src/channel.c:136:27:  [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 const unsigned char reply_codes[3] = {
data/libssh2-1.8.0/src/channel.c:177: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(session->open_channel->channel_type, channel_type,
data/libssh2-1.8.0/src/channel.c:318:18:  [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 channel_id[4];
data/libssh2-1.8.0/src/channel.c:459:27:  [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 const unsigned char reply_codes[3] =
data/libssh2-1.8.0/src/channel.c:558:21:  [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(listener->host, host, session->fwdLstn_host_len);
data/libssh2-1.8.0/src/channel.c:797:27:  [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 const unsigned char reply_codes[3] =
data/libssh2-1.8.0/src/channel.c:924:27:  [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 const unsigned char reply_codes[3] =
data/libssh2-1.8.0/src/channel.c:1119:27:  [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 const unsigned char reply_codes[3] =
data/libssh2-1.8.0/src/channel.c:1164: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(s, auth_cookie, cookie_len);
data/libssh2-1.8.0/src/channel.c:1171:22:  [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 buffer[(LIBSSH2_X11_RANDOM_COOKIE_LEN / 2) +1];
data/libssh2-1.8.0/src/channel.c:1175:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf((char *)&s[i*2], "%02X", buffer[i]);
data/libssh2-1.8.0/src/channel.c:1269:27:  [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 const unsigned char reply_codes[3] =
data/libssh2-1.8.0/src/channel.c:1542: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(*exitsignal, channel->exit_signal, namelen);
data/libssh2-1.8.0/src/channel.c:1882: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(&buf[bytes_read],
data/libssh2-1.8.0/src/channel.c:2182: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 packet[5];    /* packet_type(1) + channelno(4) */
data/libssh2-1.8.0/src/channel.c:2479: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 channel_id[4];
data/libssh2-1.8.0/src/crypt.c:249:18:  [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 block[8];
data/libssh2-1.8.0/src/hostkey.c:210: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 hash[SHA_DIGEST_LENGTH];
data/libssh2-1.8.0/src/hostkey.c:430: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 hash[SHA_DIGEST_LENGTH];
data/libssh2-1.8.0/src/kex.c:259: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(session->server_hostkey, exchange_state->s,
data/libssh2-1.8.0/src/kex.c:280: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 fingerprint[50], *fprint = fingerprint;
data/libssh2-1.8.0/src/kex.c:308: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 fingerprint[64], *fprint = fingerprint;
data/libssh2-1.8.0/src/kex.c:513: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(session->session_id, exchange_state->h_sig_comp,
data/libssh2-1.8.0/src/kex.c:891: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(session->server_hostkey, exchange_state->s,
data/libssh2-1.8.0/src/kex.c:912: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 fingerprint[50], *fprint = fingerprint;
data/libssh2-1.8.0/src/kex.c:940: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 fingerprint[64], *fprint = fingerprint;
data/libssh2-1.8.0/src/kex.c:1147: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(session->session_id, exchange_state->h_sig_comp,
data/libssh2-1.8.0/src/kex.c:1377:27:  [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 const unsigned char p_value[128] = {
data/libssh2-1.8.0/src/kex.c:1438:27:  [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 const unsigned char p_value[256] = {
data/libssh2-1.8.0/src/kex.c:1787: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(buf, (*method)->name, mlen);
data/libssh2-1.8.0/src/kex.c:1806: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((buf), (prefvar), (prefvarlen));                         \
data/libssh2-1.8.0/src/kex.c:2672: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(s, prefs, prefs_len + 1);
data/libssh2-1.8.0/src/kex.c:2681: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(s, p + 1, strlen(s) - method_len);
data/libssh2-1.8.0/src/knownhost.c:168: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(entry->name, host, hostlen+1);
data/libssh2-1.8.0/src/knownhost.c:202: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(entry->key, key, keylen+1);
data/libssh2-1.8.0/src/knownhost.c:227: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(entry->key_type_name, key_type_name, key_type_len);
data/libssh2-1.8.0/src/knownhost.c:239: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(entry->comment, comment, commentlen+1);
data/libssh2-1.8.0/src/knownhost.c:360: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 hostbuff[270]; /* most host names can't be longer than like 256 */
data/libssh2-1.8.0/src/knownhost.c:420:30:  [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 hash[SHA_DIGEST_LENGTH];
data/libssh2-1.8.0/src/knownhost.c:638: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 hostbuf[256];
data/libssh2-1.8.0/src/knownhost.c:648: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(hostbuf, name, namelen);
data/libssh2-1.8.0/src/knownhost.c:678: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 saltbuf[32];
data/libssh2-1.8.0/src/knownhost.c:679: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 hostbuf[256];
data/libssh2-1.8.0/src/knownhost.c:697: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(saltbuf, salt, saltlen);
data/libssh2-1.8.0/src/knownhost.c:714: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(hostbuf, host, hostlen);
data/libssh2-1.8.0/src/knownhost.c:949:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2048];
data/libssh2-1.8.0/src/knownhost.c:957:12:  [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).
    file = fopen(filename, "r");
data/libssh2-1.8.0/src/knownhost.c:1171: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 buffer[2048];
data/libssh2-1.8.0/src/knownhost.c:1181:12:  [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).
    file = fopen(filename, "w");
data/libssh2-1.8.0/src/libgcrypt.c:93: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 hash[SHA_DIGEST_LENGTH];
data/libssh2-1.8.0/src/libgcrypt.c:177:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "r");
data/libssh2-1.8.0/src/libgcrypt.c:290:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "r");
data/libssh2-1.8.0/src/libgcrypt.c:415: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(*signature, tmp, size);
data/libssh2-1.8.0/src/libgcrypt.c:426: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 zhash[SHA_DIGEST_LENGTH + 1];
data/libssh2-1.8.0/src/libgcrypt.c:437: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(zhash + 1, hash, hash_len);
data/libssh2-1.8.0/src/libgcrypt.c:472: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 + (20 - size), tmp, size);
data/libssh2-1.8.0/src/libgcrypt.c:494: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 + 20 + (20 - size), tmp, size);
data/libssh2-1.8.0/src/libgcrypt.c:515: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 hash[SHA_DIGEST_LENGTH + 1];
data/libssh2-1.8.0/src/libgcrypt.h:75:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (out, gcry_md_read (ctx, 0), SHA_DIGEST_LENGTH), gcry_md_close (ctx)
data/libssh2-1.8.0/src/libgcrypt.h:86:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (out, gcry_md_read (ctx, 0), SHA256_DIGEST_LENGTH), gcry_md_close (ctx)
data/libssh2-1.8.0/src/libgcrypt.h:99:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (out, gcry_md_read (ctx, 0), MD5_DIGEST_LENGTH), gcry_md_close (ctx)
data/libssh2-1.8.0/src/libgcrypt.h:123:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (data, gcry_md_read (ctx, 0), \
data/libssh2-1.8.0/src/libssh2_priv.h:257: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 h_sig_comp[MAX_SHA_DIGEST_LEN];
data/libssh2-1.8.0/src/libssh2_priv.h:286: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 request[13];
data/libssh2-1.8.0/src/libssh2_priv.h:308: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 packet[17 + (sizeof(FwdNotReq) - 1)];
data/libssh2-1.8.0/src/libssh2_priv.h:326: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 packet[17 + (sizeof(X11FwdUnAvil) - 1)];
data/libssh2-1.8.0/src/libssh2_priv.h:389: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 setenv_local_channel[4];
data/libssh2-1.8.0/src/libssh2_priv.h:395: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 reqPTY_packet[41 + 256];
data/libssh2-1.8.0/src/libssh2_priv.h:397: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 reqPTY_local_channel[4];
data/libssh2-1.8.0/src/libssh2_priv.h:404: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 reqX11_local_channel[4];
data/libssh2-1.8.0/src/libssh2_priv.h:411: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 process_local_channel[4];
data/libssh2-1.8.0/src/libssh2_priv.h:421: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 adjust_adjust[9];     /* packet_type(1) + channel(4) + adjustment(4) */
data/libssh2-1.8.0/src/libssh2_priv.h:430: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 write_packet[13];
data/libssh2-1.8.0/src/libssh2_priv.h:436: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 close_packet[5];
data/libssh2-1.8.0/src/libssh2_priv.h:502: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[PACKETBUFSIZE];
data/libssh2-1.8.0/src/libssh2_priv.h:503: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 init[5];  /* first 5 bytes of the incoming data stream,
data/libssh2-1.8.0/src/libssh2_priv.h:525: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 outbuf[MAX_SSH_PACKET_LEN]; /* area for the outgoing data */
data/libssh2-1.8.0/src/libssh2_priv.h:557: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 listFetch_buffer[12];
data/libssh2-1.8.0/src/libssh2_priv.h:618: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 server_hostkey_md5[MD5_DIGEST_LENGTH];
data/libssh2-1.8.0/src/libssh2_priv.h:621: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 server_hostkey_sha1[SHA_DIGEST_LENGTH];
data/libssh2-1.8.0/src/libssh2_priv.h:663: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 banner_TxRx_banner[256];
data/libssh2-1.8.0/src/libssh2_priv.h:675: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 startup_service[sizeof("ssh-userauth") + 5 - 1];
data/libssh2-1.8.0/src/libssh2_priv.h:685: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 disconnect_data[256 + 13];
data/libssh2-1.8.0/src/libssh2_priv.h:777: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 pkeyInit_buffer[19];
data/libssh2-1.8.0/src/libssh2_priv.h:797: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 sftpInit_buffer[9];   /* sftp_header(5){excludes request_id}
data/libssh2-1.8.0/src/libssh2_priv.h:806: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 scpRecv_response[LIBSSH2_SCP_RESPONSE_BUFLEN];
data/libssh2-1.8.0/src/libssh2_priv.h:828: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 scpSend_response[LIBSSH2_SCP_RESPONSE_BUFLEN];
data/libssh2-1.8.0/src/mac.c:112: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 seqno_buf[4];
data/libssh2-1.8.0/src/mac.c:157: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 seqno_buf[4];
data/libssh2-1.8.0/src/mac.c:202: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 seqno_buf[4];
data/libssh2-1.8.0/src/mac.c:242: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 temp[SHA_DIGEST_LENGTH];
data/libssh2-1.8.0/src/mac.c:246: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, (char *) temp, 96 / 8);
data/libssh2-1.8.0/src/mac.c:275: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 seqno_buf[4];
data/libssh2-1.8.0/src/mac.c:315: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 temp[MD5_DIGEST_LENGTH];
data/libssh2-1.8.0/src/mac.c:318: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, (char *) temp, 96 / 8);
data/libssh2-1.8.0/src/mac.c:348: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 seqno_buf[4];
data/libssh2-1.8.0/src/mbedtls.c:117: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(block, output, olen);
data/libssh2-1.8.0/src/mbedtls.c:395: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 hash[SHA_DIGEST_LENGTH];
data/libssh2-1.8.0/src/mbedtls.c:475: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(p, "ssh-rsa", 7);
data/libssh2-1.8.0/src/mbedtls.c:513: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(mth, "ssh-rsa", mthlen);
data/libssh2-1.8.0/src/mbedtls.c:550:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/libssh2-1.8.0/src/mbedtls.c:581:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/libssh2-1.8.0/src/misc.c:66: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(copy, errmsg, len + 1);
data/libssh2-1.8.0/src/misc.c:231: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(*buf, str, len);
data/libssh2-1.8.0/src/misc.c:324: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.
  unsigned char ibuf[3];
data/libssh2-1.8.0/src/misc.c:325: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.
  unsigned char obuf[4];
data/libssh2-1.8.0/src/misc.c:417: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 buffer[1536];
data/libssh2-1.8.0/src/openssl.c:135: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 hash[SHA_DIGEST_LENGTH];
data/libssh2-1.8.0/src/openssl.c:205: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 hash[SHA_DIGEST_LENGTH];
data/libssh2-1.8.0/src/openssl.c:252: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[EVP_MAX_BLOCK_LENGTH];
data/libssh2-1.8.0/src/openssl.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(block, buf, blocksize);
data/libssh2-1.8.0/src/openssl.c:277: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 ctr[AES_BLOCK_SIZE];
data/libssh2-1.8.0/src/openssl.c:332: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(c->ctr, iv, AES_BLOCK_SIZE);
data/libssh2-1.8.0/src/openssl.c:345: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 b1[AES_BLOCK_SIZE];
data/libssh2-1.8.0/src/openssl.c:492: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, passphrase, passphrase_len);
data/libssh2-1.8.0/src/openssl.c:861: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(p, "ssh-rsa", 7);
data/libssh2-1.8.0/src/openssl.c:916: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(p, "ssh-dss", 7);
data/libssh2-1.8.0/src/openssl.c:963: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(method_buf, "ssh-rsa", 7);
data/libssh2-1.8.0/src/openssl.c:1018: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(method_buf, "ssh-dss", 7);
data/libssh2-1.8.0/src/os400qc3.c:478: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(e->header, data, e->end - e->header);
data/libssh2-1.8.0/src/os400qc3.c:527: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((char *) &va, (char *) &args, sizeof args);
data/libssh2-1.8.0/src/os400qc3.c:535: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(bp, p->header, p->end - p->header);
data/libssh2-1.8.0/src/os400qc3.c:562: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(e->beg, bytes, length);
data/libssh2-1.8.0/src/os400qc3.c:1071: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(keydbuf + sizeof *keyd, subjpubkeyinfo->header,
data/libssh2-1.8.0/src/os400qc3.c:1176: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 dummy[64];
data/libssh2-1.8.0/src/os400qc3.c:1219: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(lkey, (char *) key, keylen);
data/libssh2-1.8.0/src/os400qc3.c:1234: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 dummy[64];
data/libssh2-1.8.0/src/os400qc3.c:1284: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(algd.Init_Vector, iv, algo.size);
data/libssh2-1.8.0/src/os400qc3.c:1563: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(buf, mac, pkcs5->hashlen);
data/libssh2-1.8.0/src/os400qc3.c:1860: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(algd.Init_Vector, pkcs5.iv, pkcs5.ivlen);
data/libssh2-1.8.0/src/os400qc3.c:1935: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(p + 4, data, length);
data/libssh2-1.8.0/src/os400qc3.c:2072: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((char *) data, (char *) pkcs8->header, *datalen8);
data/libssh2-1.8.0/src/os400qc3.c:2151:16:  [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).
    FILE *fp = fopen(filename, fopenrmode);
data/libssh2-1.8.0/src/os400qc3.c:2180:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(filename, fopenrbmode);
data/libssh2-1.8.0/src/os400qc3.c:2262: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((char *) *method, p.method, *method_len);
data/libssh2-1.8.0/src/os400qc3.c:2437: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((char *) *method, p.method, *method_len);
data/libssh2-1.8.0/src/os400qc3.c:2484: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 sigbuf[8192];
data/libssh2-1.8.0/src/os400qc3.c:2500: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((char *) sig, sigbuf, siglen);
data/libssh2-1.8.0/src/packet.c:168:21:  [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(channel->channel_type, "forwarded-tcpip",
data/libssh2-1.8.0/src/packet.c:320: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(channel->channel_type, "x11",
data/libssh2-1.8.0/src/packet.c:833:29:  [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(channelp->exit_signal,
data/libssh2-1.8.0/src/packet.c:849:30:  [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 packet[5];
data/libssh2-1.8.0/src/packet.c:853:21:  [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(&packet[1], data+1, 4);
data/libssh2-1.8.0/src/packet.c:1169: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 i, all_packets[255];
data/libssh2-1.8.0/src/pem.c:87: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(line, filedata + off, len);
data/libssh2-1.8.0/src/pem.c:105: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[LINE_SIZE];
data/libssh2-1.8.0/src/pem.c:132: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(tmp + b64datalen, line, linelen);
data/libssh2-1.8.0/src/pem.c:170: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[LINE_SIZE];
data/libssh2-1.8.0/src/pem.c:198: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(tmp + b64datalen, line, linelen);
data/libssh2-1.8.0/src/publickey.c:137: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 buffer[4];
data/libssh2-1.8.0/src/publickey.c:367: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(s, "version", sizeof("version") - 1);
data/libssh2-1.8.0/src/publickey.c:568:41:  [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.
                    comment = (unsigned char *) attrs[i].value;
data/libssh2-1.8.0/src/publickey.c:594: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(pkey->add_s, "add", sizeof("add") - 1);
data/libssh2-1.8.0/src/publickey.c:600: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(pkey->add_s, comment, comment_len);
data/libssh2-1.8.0/src/publickey.c:606: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(pkey->add_s, name, name_len);
data/libssh2-1.8.0/src/publickey.c:610: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(pkey->add_s, blob, blob_len);
data/libssh2-1.8.0/src/publickey.c:617: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(pkey->add_s, name, name_len);
data/libssh2-1.8.0/src/publickey.c:621: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(pkey->add_s, blob, blob_len);
data/libssh2-1.8.0/src/publickey.c:629: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(pkey->add_s, attrs[i].name, attrs[i].name_len);
data/libssh2-1.8.0/src/publickey.c:633: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(pkey->add_s, attrs[i].value, attrs[i].value_len);
data/libssh2-1.8.0/src/publickey.c:711: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(pkey->remove_s, "remove", sizeof("remove") - 1);
data/libssh2-1.8.0/src/publickey.c:715: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(pkey->remove_s, name, name_len);
data/libssh2-1.8.0/src/publickey.c:719: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(pkey->remove_s, blob, blob_len);
data/libssh2-1.8.0/src/publickey.c:787: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(pkey->listFetch_s, "list", sizeof("list") - 1);
data/libssh2-1.8.0/src/session.c:177: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(session->remote.banner, session->banner_TxRx_banner, banner_len);
data/libssh2-1.8.0/src/session.c:201: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 banner_dup[256];
data/libssh2-1.8.0/src/session.c:213: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(banner_dup, banner, banner_len - 2);
data/libssh2-1.8.0/src/session.c:216: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(banner_dup, banner, 255);
data/libssh2-1.8.0/src/session.c:436: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(session->local.banner, banner, banner_len);
data/libssh2-1.8.0/src/session.c:742: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(session->startup_service + 5, "ssh-userauth",
data/libssh2-1.8.0/src/session.c:1276: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(*errmsg, error, msglen);
data/libssh2-1.8.0/src/sftp.c:1172:31:  [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 const unsigned char fopen_responses[2] =
data/libssh2-1.8.0/src/sftp.c:1275: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(fp->handle, data + 9, fp->handle_len);
data/libssh2-1.8.0/src/sftp.c:1373: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(buffer, &filep->data[ filep->data_len - filep->data_left],
data/libssh2-1.8.0/src/sftp.c:1543:35:  [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 const unsigned char read_responses[2] = {
data/libssh2-1.8.0/src/sftp.c:1657: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(sliding_bufferp, data + 9, rc32);
data/libssh2-1.8.0/src/sftp.c:1734:27:  [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 const unsigned char read_responses[2] = {
data/libssh2-1.8.0/src/sftp.c:1761: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(buffer, s, filename_len);
data/libssh2-1.8.0/src/sftp.c:1776: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(longentry, s, longentry_len);
data/libssh2-1.8.0/src/sftp.c:2286:27:  [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 const unsigned char fstat_responses[2] =
data/libssh2-1.8.0/src/sftp.c:2880:27:  [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 const unsigned char responses[2] =
data/libssh2-1.8.0/src/sftp.c:3015:27:  [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 const unsigned char responses[2] =
data/libssh2-1.8.0/src/sftp.c:3363:27:  [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 const unsigned char stat_responses[2] =
data/libssh2-1.8.0/src/sftp.c:3497:27:  [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 const unsigned char link_responses[2] =
data/libssh2-1.8.0/src/sftp.c:3615: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(target, data + 13, link_len);
data/libssh2-1.8.0/src/sftp.h:62: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 packet[1]; /* data */
data/libssh2-1.8.0/src/sftp.h:92: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 handle[SFTP_HANDLE_MAXLEN];
data/libssh2-1.8.0/src/sftp.h:155: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 partial_size[4];      /* buffer for size field   */
data/libssh2-1.8.0/src/transport.c:66: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 buffer[256];  /* Must be enough for width*4 + about 30 or so */
data/libssh2-1.8.0/src/transport.c:151: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(dest, source, blocksize);
data/libssh2-1.8.0/src/transport.c:167: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 macbuf[MAX_MACSIZE];
data/libssh2-1.8.0/src/transport.c:281: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 block[MAX_BLOCKSIZE];
data/libssh2-1.8.0/src/transport.c:423: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(p->init, &p->buf[p->readidx], 5);
data/libssh2-1.8.0/src/transport.c:427: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(block, &p->buf[p->readidx], blocksize);
data/libssh2-1.8.0/src/transport.c:483: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(p->wptr, &block[5], blocksize - 5);
data/libssh2-1.8.0/src/transport.c:558: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(p->wptr, &p->buf[p->readidx], numbytes);
data/libssh2-1.8.0/src/transport.c:791: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(&p->outbuf[5], data, data_len);
data/libssh2-1.8.0/src/transport.c:793: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(&p->outbuf[5+data_len], data2, data2_len);
data/libssh2-1.8.0/src/userauth.c:66:27:  [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 const unsigned char reply_codes[3] =
data/libssh2-1.8.0/src/userauth.c:214:27:  [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 const unsigned char reply_codes[4] =
data/libssh2-1.8.0/src/userauth.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(pubkey, pubkeyfiledata, pubkeyfiledata_len);
data/libssh2-1.8.0/src/userauth.c:564:10:  [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).
    fd = fopen(pubkeyfile, "r");
data/libssh2-1.8.0/src/userauth.c:818:18:  [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[5];
data/libssh2-1.8.0/src/userauth.c:989:31:  [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 const unsigned char reply_codes[3] =
data/libssh2-1.8.0/src/userauth.c:1061: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 reply_codes[4] =
data/libssh2-1.8.0/src/userauth.c:1106: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(session->userauth_pblc_method, pubkeydata + 4,
data/libssh2-1.8.0/src/userauth.c:1263: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 (s, session->userauth_pblc_packet,
data/libssh2-1.8.0/src/userauth.c:1589:27:  [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 const unsigned char reply_codes[4] = {
data/libssh2-1.8.0/src/userauth.c:1726: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(session->userauth_kybd_auth_name, s,
data/libssh2-1.8.0/src/userauth.c:1745: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(session->userauth_kybd_auth_instruction, s,
data/libssh2-1.8.0/src/userauth.c:1805:21:  [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(session->userauth_kybd_prompts[i].text, s,
data/libssh2-1.8.0/src/wincng.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(data, m, datalen);
data/libssh2-1.8.0/src/wincng.c:516: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(data, sig, datalen);
data/libssh2-1.8.0/src/wincng.c:542:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "r");
data/libssh2-1.8.0/src/wincng.c:870: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(key + offset, edata, elen);
data/libssh2-1.8.0/src/wincng.c:874: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(key + offset + mlen - nlen, ndata, nlen);
data/libssh2-1.8.0/src/wincng.c:876: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(key + offset, ndata + nlen - mlen, mlen);
data/libssh2-1.8.0/src/wincng.c:882: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(key + offset + p1len - plen, pdata, plen);
data/libssh2-1.8.0/src/wincng.c:884: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(key + offset, pdata + plen - p1len, p1len);
data/libssh2-1.8.0/src/wincng.c:888: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(key + offset + p2len - qlen, qdata, qlen);
data/libssh2-1.8.0/src/wincng.c:890: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(key + offset, qdata + qlen - p2len, p2len);
data/libssh2-1.8.0/src/wincng.c:894: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(key + offset + p1len - e1len, e1data, e1len);
data/libssh2-1.8.0/src/wincng.c:896: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(key + offset, e1data + e1len - p1len, p1len);
data/libssh2-1.8.0/src/wincng.c:900: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(key + offset + p2len - e2len, e2data, e2len);
data/libssh2-1.8.0/src/wincng.c:902: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(key + offset, e2data + e2len - p2len, p2len);
data/libssh2-1.8.0/src/wincng.c:906: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(key + offset + p1len - coefflen, coeffdata, coefflen);
data/libssh2-1.8.0/src/wincng.c:908: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(key + offset, coeffdata + coefflen - p1len, p1len);
data/libssh2-1.8.0/src/wincng.c:912: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(key + offset + mlen - dlen, ddata, dlen);
data/libssh2-1.8.0/src/wincng.c:914: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(key + offset, ddata + dlen - mlen, mlen);
data/libssh2-1.8.0/src/wincng.c:1099: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(data, hash, datalen);
data/libssh2-1.8.0/src/wincng.c:1190: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(dsakey->q + 20 - qlen, qdata, qlen);
data/libssh2-1.8.0/src/wincng.c:1192: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(dsakey->q, qdata + qlen - 20, 20);
data/libssh2-1.8.0/src/wincng.c:1195: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(key + offset + length - plen, pdata, plen);
data/libssh2-1.8.0/src/wincng.c:1197: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(key + offset, pdata + plen - length, length);
data/libssh2-1.8.0/src/wincng.c:1201: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(key + offset + length - glen, gdata, glen);
data/libssh2-1.8.0/src/wincng.c:1203: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(key + offset, gdata + glen - length, length);
data/libssh2-1.8.0/src/wincng.c:1207: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(key + offset + length - ylen, ydata, ylen);
data/libssh2-1.8.0/src/wincng.c:1209: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(key + offset, ydata + ylen - length, length);
data/libssh2-1.8.0/src/wincng.c:1215: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(key + offset + 20 - xlen, xdata, xlen);
data/libssh2-1.8.0/src/wincng.c:1217: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(key + offset, xdata + xlen - 20, 20);
data/libssh2-1.8.0/src/wincng.c:1385: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(data, hash, datalen);
data/libssh2-1.8.0/src/wincng.c:1397:21:  [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_fixed, sig, siglen);
data/libssh2-1.8.0/src/wincng.c:1442: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(key + offset, bignum, length);
data/libssh2-1.8.0/src/wincng.c:1478: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(mth, "ssh-rsa", mthlen);
data/libssh2-1.8.0/src/wincng.c:1504: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(mth, "ssh-dss", mthlen);
data/libssh2-1.8.0/src/wincng.c:1697: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(key + sizeof(BCRYPT_KEY_DATA_BLOB_HEADER),
data/libssh2-1.8.0/src/wincng.c:1718: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(pbIV, iv, dwIV);
data/libssh2-1.8.0/src/wincng.c:1770: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(block, pbOutput, cbOutput);
data/libssh2-1.8.0/src/wincng.c:1915: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(key + offset, p->bignum, p->length);
data/libssh2-1.8.0/src/wincng.c:1918: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(key + offset, m->bignum, m->length);
data/libssh2-1.8.0/src/wincng.c:1934:21:  [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(bignum + offset, a->bignum, a->length);
data/libssh2-1.8.0/src/wincng.c:2022: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(bn->bignum, bin, len);
data/libssh2-1.8.0/src/wincng.c:2048: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(bin, bn->bignum, bn->length);
data/libssh2-1.8.0/tests/openssh_fixture.c: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 command_buf[BUFSIZ];
data/libssh2-1.8.0/tests/openssh_fixture.c:84: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 buf[BUFSIZ];
data/libssh2-1.8.0/tests/openssh_fixture.c: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 command_buf[BUFSIZ];
data/libssh2-1.8.0/tests/openssh_fixture.c:159: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 command_buf[BUFSIZ];
data/libssh2-1.8.0/tests/openssh_fixture.c:188: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 command_buf[BUFSIZ];
data/libssh2-1.8.0/tests/openssh_fixture.c:205: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 command_buf[BUFSIZ];
data/libssh2-1.8.0/tests/test_hostkey_hash.c:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/libssh2-1.8.0/vms/man2help.c:22: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   expanded_filename[NAM$C_MAXRSS + 1]; 
data/libssh2-1.8.0/vms/man2help.c:52: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    ipart[6][256], *i, *p;
data/libssh2-1.8.0/vms/man2help.c:110: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    gevonden_file[NAM$C_MAXRSS + 1];
data/libssh2-1.8.0/vms/man2help.c:174: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    gevonden[NAM$C_MAXRSS + 1];
data/libssh2-1.8.0/vms/man2help.c:203: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 subjectname[ NAM$C_MAXRSS + 1 ];
data/libssh2-1.8.0/vms/man2help.c:210:7:  [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).
man = fopen( filespec, "r");
data/libssh2-1.8.0/vms/man2help.c:419:11:  [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).
    hlp = fopen( hlpfilename,"a+");
data/libssh2-1.8.0/vms/man2help.c:421:11:  [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).
    hlp = fopen( hlpfilename,"w");
data/libssh2-1.8.0/vms/man2help.c:479:38:  [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).
                        base_level = atoi( argv[ i + 1 ] );
data/libssh2-1.8.0/example/direct_tcpip.c:160:61:  [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).
    userauthlist = libssh2_userauth_list(session, username, strlen(username));
data/libssh2-1.8.0/example/sftp.c:77: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).
        n = strlen(buf);
data/libssh2-1.8.0/example/sftp.c:186:61:  [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).
    userauthlist = libssh2_userauth_list(session, username, strlen(username));
data/libssh2-1.8.0/example/sftpdir.c:73: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).
        responses[0].length = strlen(password);
data/libssh2-1.8.0/example/sftpdir.c:167:61:  [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).
    userauthlist = libssh2_userauth_list(session, username, strlen(username));
data/libssh2-1.8.0/example/ssh2.c:59: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).
        responses[0].length = strlen(password);
data/libssh2-1.8.0/example/ssh2.c:142:61:  [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).
    userauthlist = libssh2_userauth_list(session, username, strlen(username));
data/libssh2-1.8.0/example/ssh2_agent.c:121:61:  [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).
    userauthlist = libssh2_userauth_list(session, username, strlen(username));
data/libssh2-1.8.0/example/ssh2_echo.c:196:10:  [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(password) != 0 ) {
data/libssh2-1.8.0/example/ssh2_exec.c:209:10:  [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(password) != 0 ) {
data/libssh2-1.8.0/example/subsystem_netconf.c:204:61:  [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).
    userauthlist = libssh2_userauth_list(session, username, strlen(username));
data/libssh2-1.8.0/example/tcpip-forward.c:157:61:  [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).
    userauthlist = libssh2_userauth_list(session, username, strlen(username));
data/libssh2-1.8.0/example/x11.c:129: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).
            temp_buff = (char *) calloc(strlen(ptr+1), sizeof(char));
data/libssh2-1.8.0/example/x11.c:134:38:  [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(temp_buff, ptr+1, strlen(ptr+1));
data/libssh2-1.8.0/example/x11.c:221:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rc = read(sock, buf, bufsize);
data/libssh2-1.8.0/example/x11.c:443:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            rc = read(fileno(stdin), buf,1);
data/libssh2-1.8.0/include/libssh2.h:604:45:  [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).
                              (unsigned int)strlen(username),  \
data/libssh2-1.8.0/include/libssh2.h:605: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).
                              (password), (unsigned int)strlen(password), NULL)
data/libssh2-1.8.0/include/libssh2.h:618:58:  [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).
                                           (unsigned int)strlen(username), \
data/libssh2-1.8.0/include/libssh2.h:645: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).
                                        (unsigned int)strlen(username), \
data/libssh2-1.8.0/include/libssh2.h:649: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).
                                        (unsigned int)strlen(hostname), \
data/libssh2-1.8.0/include/libssh2.h:651: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).
                                        (unsigned int)strlen(username))
data/libssh2-1.8.0/include/libssh2.h:679:60:  [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).
                                             (unsigned int)strlen(username), \
data/libssh2-1.8.0/include/libssh2.h:736:45:  [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).
                              (unsigned int)strlen(varname), (value),   \
data/libssh2-1.8.0/include/libssh2.h:737:45:  [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).
                              (unsigned int)strlen(value))
data/libssh2-1.8.0/include/libssh2.h:748: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).
                                   (unsigned int)strlen(term),          \
data/libssh2-1.8.0/include/libssh2.h:778:60:  [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).
                                  (command), (unsigned int)strlen(command))
data/libssh2-1.8.0/include/libssh2.h:782:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                  (unsigned int)strlen(subsystem))
data/libssh2-1.8.0/include/libssh2_publickey.h:75: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).
  { (name), strlen(name), (value), strlen(value), (mandatory) },
data/libssh2-1.8.0/include/libssh2_publickey.h:75: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).
  { (name), strlen(name), (value), strlen(value), (mandatory) },
data/libssh2-1.8.0/include/libssh2_publickey.h:95: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).
  libssh2_publickey_add_ex((pkey), (name), strlen(name), (blob), (blob_len), \
data/libssh2-1.8.0/include/libssh2_publickey.h:104:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  libssh2_publickey_remove_ex((pkey), (name), strlen(name), (blob), (blob_len))
data/libssh2-1.8.0/include/libssh2_sftp.h:230:46:  [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).
    libssh2_sftp_open_ex((sftp), (filename), strlen(filename), (flags), \
data/libssh2-1.8.0/include/libssh2_sftp.h:233:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    libssh2_sftp_open_ex((sftp), (path), strlen(path), 0, 0, \
data/libssh2-1.8.0/include/libssh2_sftp.h:280: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).
    libssh2_sftp_rename_ex((sftp), (sourcefile), strlen(sourcefile), \
data/libssh2-1.8.0/include/libssh2_sftp.h:281: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).
                           (destfile), strlen(destfile),                \
data/libssh2-1.8.0/include/libssh2_sftp.h:290: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).
    libssh2_sftp_unlink_ex((sftp), (filename), strlen(filename))
data/libssh2-1.8.0/include/libssh2_sftp.h:304:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    libssh2_sftp_mkdir_ex((sftp), (path), strlen(path), (mode))
data/libssh2-1.8.0/include/libssh2_sftp.h:310:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    libssh2_sftp_rmdir_ex((sftp), (path), strlen(path))
data/libssh2-1.8.0/include/libssh2_sftp.h:318:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_STAT, \
data/libssh2-1.8.0/include/libssh2_sftp.h:321:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_LSTAT, \
data/libssh2-1.8.0/include/libssh2_sftp.h:324:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_SETSTAT, \
data/libssh2-1.8.0/include/libssh2_sftp.h:333:45:  [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).
    libssh2_sftp_symlink_ex((sftp), (orig), strlen(orig), (linkpath), \
data/libssh2-1.8.0/include/libssh2_sftp.h:334: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).
                            strlen(linkpath), LIBSSH2_SFTP_SYMLINK)
data/libssh2-1.8.0/include/libssh2_sftp.h:336:45:  [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).
    libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), \
data/libssh2-1.8.0/include/libssh2_sftp.h:339:45:  [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).
    libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), \
data/libssh2-1.8.0/os400/os400sys.c:191: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).
    i = strlen(version);
data/libssh2-1.8.0/os400/os400sys.c:209: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).
    i = strlen(version);
data/libssh2-1.8.0/src/agent.c:161:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (s_un.sun_path, path, sizeof s_un.sun_path);
data/libssh2-1.8.0/src/agent.c:319:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cds.cbData = 1 + strlen(mapname);
data/libssh2-1.8.0/src/agent.c:774:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                             strlen(username),
data/libssh2-1.8.0/src/channel.c:383: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).
        session->direct_host_len = strlen(host);
data/libssh2-1.8.0/src/channel.c:384: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).
        session->direct_shost_len = strlen(shost);
data/libssh2-1.8.0/src/channel.c:467: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).
        session->fwdLstn_host_len = strlen(host);
data/libssh2-1.8.0/src/channel.c:632:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t host_len = strlen(listener->host);
data/libssh2-1.8.0/src/channel.c:1122:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        auth_proto ? strlen(auth_proto) : (sizeof("MIT-MAGIC-COOKIE-1") - 1);
data/libssh2-1.8.0/src/channel.c:1124:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        auth_cookie ? strlen(auth_cookie) : LIBSSH2_X11_RANDOM_COOKIE_LEN;
data/libssh2-1.8.0/src/channel.c:1535:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            namelen = strlen(channel->exit_signal);
data/libssh2-1.8.0/src/kex.c:368: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).
                             strlen((char *) session->local.banner) - 2);
data/libssh2-1.8.0/src/kex.c:373: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).
                                strlen((char *) session->local.banner) - 2);
data/libssh2-1.8.0/src/kex.c:385: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).
                         strlen((char *) session->remote.banner));
data/libssh2-1.8.0/src/kex.c:390: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).
                            strlen((char *) session->remote.banner));
data/libssh2-1.8.0/src/kex.c:1000: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).
                             strlen((char *) session->local.banner) - 2);
data/libssh2-1.8.0/src/kex.c:1005: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).
                                  strlen((char *) session->local.banner) - 2);
data/libssh2-1.8.0/src/kex.c:1017: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).
                         strlen((char *) session->remote.banner));
data/libssh2-1.8.0/src/kex.c:1022: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).
                              strlen((char *) session->remote.banner));
data/libssh2-1.8.0/src/kex.c:1762: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).
        len += strlen((*method)->name) + 1;
data/libssh2-1.8.0/src/kex.c:1786: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).
        int mlen = strlen((*method)->name);
data/libssh2-1.8.0/src/kex.c:1799: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).
    ((prefvar) ? strlen(prefvar) :                              \
data/libssh2-1.8.0/src/kex.c:2017:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((strlen((*methodlist)->name) == name_len) &&
data/libssh2-1.8.0/src/kex.c:2043:56:  [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).
            size_t method_len = (p ? (size_t)(p - s) : strlen((char *) s));
data/libssh2-1.8.0/src/kex.c:2080: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).
                            strlen((*hostkeyp)->name));
data/libssh2-1.8.0/src/kex.c:2120:56:  [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).
            size_t method_len = (p ? (size_t)(p - s) : strlen((char *) s));
data/libssh2-1.8.0/src/kex.c:2156: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).
                            strlen((*kexp)->name));
data/libssh2-1.8.0/src/kex.c:2198:56:  [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).
            size_t method_len = (p ? (size_t)(p - s) : strlen((char *) s));
data/libssh2-1.8.0/src/kex.c:2224: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).
                            strlen((*cryptp)->name));
data/libssh2-1.8.0/src/kex.c:2253:56:  [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).
            size_t method_len = (p ? (size_t)(p - s) : strlen((char *) s));
data/libssh2-1.8.0/src/kex.c:2277: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).
                            strlen((*macp)->name));
data/libssh2-1.8.0/src/kex.c:2306:56:  [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).
            size_t method_len = (p ? (size_t)(p - s) : strlen((char *) s));
data/libssh2-1.8.0/src/kex.c:2331: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).
                            strlen((*compp)->name));
data/libssh2-1.8.0/src/kex.c:2606: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).
    int prefs_len = strlen(prefs);
data/libssh2-1.8.0/src/kex.c:2676:46:  [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 method_len = p ? (p - s) : (int) strlen(s);
data/libssh2-1.8.0/src/kex.c:2681:34:  [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(s, p + 1, strlen(s) - method_len);
data/libssh2-1.8.0/src/kex.c:2694: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(newprefs) == 0) {
data/libssh2-1.8.0/src/knownhost.c:142:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t hostlen = strlen(host);
data/libssh2-1.8.0/src/knownhost.c:180:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                   salt, strlen(salt));
data/libssh2-1.8.0/src/knownhost.c:195:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            keylen = strlen(key);
data/libssh2-1.8.0/src/knownhost.c:432: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).
                                        strlen(host));
data/libssh2-1.8.0/src/knownhost.c:960: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(libssh2_knownhost_readline(hosts, buf, strlen(buf), type)) {
data/libssh2-1.8.0/src/knownhost.c:1052: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).
    required_size = strlen(node->key);
data/libssh2-1.8.0/src/misc.c:63:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(errmsg);
data/libssh2-1.8.0/src/misc.c:335:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    insize = strlen(indata);
data/libssh2-1.8.0/src/misc.c:385:10:  [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).
  return strlen(base64data); /* return the length of the new data */
data/libssh2-1.8.0/src/openssl.c:486: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).
    int passphrase_len = strlen(passphrase);
data/libssh2-1.8.0/src/os400qc3.c:1502:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 strlen(passphrase));
data/libssh2-1.8.0/src/os400qc3.c:1555: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).
                               (void *) passphrase, strlen(passphrase));
data/libssh2-1.8.0/src/os400qc3.c:1943:19:  [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 methlen = strlen(method);
data/libssh2-1.8.0/src/os400qc3.c:2135:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(fp);
data/libssh2-1.8.0/src/os400qc3.c:2260:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *method_len = strlen(p.method);
data/libssh2-1.8.0/src/os400qc3.c:2435:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *method_len = strlen(p.method);
data/libssh2-1.8.0/src/packet.c:124: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).
                (strlen(listn->host) == listen_state->host_len) &&
data/libssh2-1.8.0/src/packet.c:1084: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).
    int i, packet_types_len = strlen((char *) packet_types);
data/libssh2-1.8.0/src/pem.c:54:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(line);
data/libssh2-1.8.0/src/pem.c:61:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(line);
data/libssh2-1.8.0/src/pem.c:126:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            linelen = strlen(line);
data/libssh2-1.8.0/src/pem.c:192:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            linelen = strlen(line);
data/libssh2-1.8.0/src/scp.c:48:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define _libssh2_shell_quotedsize(s)     (3 * strlen(s) + 2)
data/libssh2-1.8.0/src/scp.c:301:19:  [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).
        cmd_len = strlen((char *)session->scpRecv_command);
data/libssh2-1.8.0/src/scp.c:843:19:  [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).
        cmd_len = strlen((char *)session->scpSend_command);
data/libssh2-1.8.0/src/session.c:207: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).
            banner_len = strlen((char *) session->local.banner);
data/libssh2-1.8.0/src/session.c:420:34:  [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).
    size_t banner_len = banner ? strlen(banner) : 0;
data/libssh2-1.8.0/src/session.c:1112: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).
            descr_len = strlen(description);
data/libssh2-1.8.0/src/session.c:1115:24:  [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).
            lang_len = strlen(lang);
data/libssh2-1.8.0/src/session.c:1270: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).
        msglen = strlen(error);
data/libssh2-1.8.0/src/sftp.c:819: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).
                                                   strlen("sftp"));
data/libssh2-1.8.0/src/userauth.c:737: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).
                                strlen(pk_file->filename),
data/libssh2-1.8.0/src/userauth.c:1567:61:  [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).
                 _libssh2_userauth_publickey(session, user, strlen(user),
data/libssh2-1.8.0/tests/openssh_fixture.c:98: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).
                size_t end = strlen(buf) - 1;
data/libssh2-1.8.0/tests/simple.c:49: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).
    unsigned int src_len = strlen (src);
data/libssh2-1.8.0/tests/ssh2.c:107:61:  [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).
    userauthlist = libssh2_userauth_list(session, username, strlen(username));
data/libssh2-1.8.0/tests/test_hostkey.c:36: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).
                               EXPECTED_HOSTKEY, strlen(EXPECTED_HOSTKEY));
data/libssh2-1.8.0/tests/test_keyboard_interactive_auth_fails_with_wrong_response.c:28: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).
        responses[0].length = strlen(WRONG_PASSWORD);
data/libssh2-1.8.0/tests/test_keyboard_interactive_auth_fails_with_wrong_response.c:37: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).
        libssh2_userauth_list(session, USERNAME, strlen(USERNAME));
data/libssh2-1.8.0/tests/test_keyboard_interactive_auth_fails_with_wrong_response.c:51: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).
        session, USERNAME, strlen(USERNAME), kbd_callback);
data/libssh2-1.8.0/tests/test_keyboard_interactive_auth_succeeds_with_correct_response.c:29: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).
        responses[0].length = strlen(PASSWORD);
data/libssh2-1.8.0/tests/test_keyboard_interactive_auth_succeeds_with_correct_response.c:38: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).
        libssh2_userauth_list(session, USERNAME, strlen(USERNAME));
data/libssh2-1.8.0/tests/test_keyboard_interactive_auth_succeeds_with_correct_response.c:52: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).
        session, USERNAME, strlen(USERNAME), kbd_callback);
data/libssh2-1.8.0/tests/test_password_auth_fails_with_wrong_password.c:15: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).
        libssh2_userauth_list(session, USERNAME, strlen(USERNAME));
data/libssh2-1.8.0/tests/test_password_auth_fails_with_wrong_password.c:27:58:  [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).
    rc = libssh2_userauth_password_ex(session, USERNAME, strlen(USERNAME),
data/libssh2-1.8.0/tests/test_password_auth_fails_with_wrong_password.c:28: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).
                                      WRONG_PASSWORD, strlen(WRONG_PASSWORD),
data/libssh2-1.8.0/tests/test_password_auth_fails_with_wrong_username.c:15:56:  [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).
        libssh2_userauth_list(session, WRONG_USERNAME, strlen(WRONG_USERNAME));
data/libssh2-1.8.0/tests/test_password_auth_fails_with_wrong_username.c:28:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      strlen(WRONG_USERNAME), PASSWORD,
data/libssh2-1.8.0/tests/test_password_auth_fails_with_wrong_username.c:29:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      strlen(PASSWORD), NULL);
data/libssh2-1.8.0/tests/test_password_auth_succeeds_with_correct_credentials.c:15: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).
        libssh2_userauth_list(session, USERNAME, strlen(USERNAME));
data/libssh2-1.8.0/tests/test_password_auth_succeeds_with_correct_credentials.c:27:58:  [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).
    rc = libssh2_userauth_password_ex(session, USERNAME, strlen(USERNAME),
data/libssh2-1.8.0/tests/test_password_auth_succeeds_with_correct_credentials.c:28:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      PASSWORD, strlen(PASSWORD), NULL);
data/libssh2-1.8.0/tests/test_public_key_auth_fails_with_wrong_key.c:16: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).
        libssh2_userauth_list(session, USERNAME, strlen(USERNAME));
data/libssh2-1.8.0/tests/test_public_key_auth_fails_with_wrong_key.c:29: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).
        session, USERNAME, strlen(USERNAME), KEY_FILE_PUBLIC, KEY_FILE_PRIVATE,
data/libssh2-1.8.0/tests/test_public_key_auth_succeeds_with_correct_dsa_key.c:16: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).
        libssh2_userauth_list(session, USERNAME, strlen(USERNAME));
data/libssh2-1.8.0/tests/test_public_key_auth_succeeds_with_correct_dsa_key.c:29: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).
        session, USERNAME, strlen(USERNAME), KEY_FILE_PUBLIC, KEY_FILE_PRIVATE,
data/libssh2-1.8.0/tests/test_public_key_auth_succeeds_with_correct_rsa_key.c:16: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).
        libssh2_userauth_list(session, USERNAME, strlen(USERNAME));
data/libssh2-1.8.0/tests/test_public_key_auth_succeeds_with_correct_rsa_key.c:29: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).
        session, USERNAME, strlen(USERNAME), KEY_FILE_PUBLIC, KEY_FILE_PRIVATE,
data/libssh2-1.8.0/vms/man2help.c:71:38:  [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).
pf->dnam.naml$l_long_filename_size = strlen( inputfile);
data/libssh2-1.8.0/vms/man2help.c:112: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).
filespec.dsc$w_length = strlen(filename);

ANALYSIS SUMMARY:

Hits = 494
Lines analyzed = 44859 in approximately 1.11 seconds (40250 lines/second)
Physical Source Lines of Code (SLOC) = 31333
Hits@level = [0] 570 [1] 144 [2] 314 [3]   9 [4]  27 [5]   0
Hits@level+ = [0+] 1064 [1+] 494 [2+] 350 [3+]  36 [4+]  27 [5+]   0
Hits/KSLOC@level+ = [0+] 33.9578 [1+] 15.7661 [2+] 11.1703 [3+] 1.14895 [4+] 0.861711 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.