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/openssh-ssh1-7.5p1/addrmatch.c
Examining data/openssh-ssh1-7.5p1/atomicio.c
Examining data/openssh-ssh1-7.5p1/atomicio.h
Examining data/openssh-ssh1-7.5p1/audit-bsm.c
Examining data/openssh-ssh1-7.5p1/audit-linux.c
Examining data/openssh-ssh1-7.5p1/audit.c
Examining data/openssh-ssh1-7.5p1/audit.h
Examining data/openssh-ssh1-7.5p1/auth-bsdauth.c
Examining data/openssh-ssh1-7.5p1/auth-krb5.c
Examining data/openssh-ssh1-7.5p1/auth-options.c
Examining data/openssh-ssh1-7.5p1/auth-options.h
Examining data/openssh-ssh1-7.5p1/auth-pam.h
Examining data/openssh-ssh1-7.5p1/auth-passwd.c
Examining data/openssh-ssh1-7.5p1/auth-shadow.c
Examining data/openssh-ssh1-7.5p1/auth-sia.c
Examining data/openssh-ssh1-7.5p1/auth-sia.h
Examining data/openssh-ssh1-7.5p1/auth-skey.c
Examining data/openssh-ssh1-7.5p1/auth.h
Examining data/openssh-ssh1-7.5p1/auth2-chall.c
Examining data/openssh-ssh1-7.5p1/auth2-gss.c
Examining data/openssh-ssh1-7.5p1/auth2-hostbased.c
Examining data/openssh-ssh1-7.5p1/auth2-kbdint.c
Examining data/openssh-ssh1-7.5p1/auth2-none.c
Examining data/openssh-ssh1-7.5p1/auth2-passwd.c
Examining data/openssh-ssh1-7.5p1/auth2-pubkey.c
Examining data/openssh-ssh1-7.5p1/auth2.c
Examining data/openssh-ssh1-7.5p1/authfd.h
Examining data/openssh-ssh1-7.5p1/authfile.c
Examining data/openssh-ssh1-7.5p1/authfile.h
Examining data/openssh-ssh1-7.5p1/bitmap.c
Examining data/openssh-ssh1-7.5p1/bitmap.h
Examining data/openssh-ssh1-7.5p1/blocks.c
Examining data/openssh-ssh1-7.5p1/bufaux.c
Examining data/openssh-ssh1-7.5p1/bufbn.c
Examining data/openssh-ssh1-7.5p1/bufec.c
Examining data/openssh-ssh1-7.5p1/buffer.c
Examining data/openssh-ssh1-7.5p1/buffer.h
Examining data/openssh-ssh1-7.5p1/canohost.c
Examining data/openssh-ssh1-7.5p1/canohost.h
Examining data/openssh-ssh1-7.5p1/chacha.c
Examining data/openssh-ssh1-7.5p1/chacha.h
Examining data/openssh-ssh1-7.5p1/channels.c
Examining data/openssh-ssh1-7.5p1/channels.h
Examining data/openssh-ssh1-7.5p1/cipher-aes.c
Examining data/openssh-ssh1-7.5p1/cipher-aesctr.c
Examining data/openssh-ssh1-7.5p1/cipher-aesctr.h
Examining data/openssh-ssh1-7.5p1/cipher-chachapoly.c
Examining data/openssh-ssh1-7.5p1/cipher-chachapoly.h
Examining data/openssh-ssh1-7.5p1/cipher-ctr.c
Examining data/openssh-ssh1-7.5p1/cipher.h
Examining data/openssh-ssh1-7.5p1/cleanup.c
Examining data/openssh-ssh1-7.5p1/clientloop.h
Examining data/openssh-ssh1-7.5p1/compat.c
Examining data/openssh-ssh1-7.5p1/compat.h
Examining data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass1.c
Examining data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass2.c
Examining data/openssh-ssh1-7.5p1/crc32.c
Examining data/openssh-ssh1-7.5p1/crc32.h
Examining data/openssh-ssh1-7.5p1/crypto_api.h
Examining data/openssh-ssh1-7.5p1/deattack.c
Examining data/openssh-ssh1-7.5p1/deattack.h
Examining data/openssh-ssh1-7.5p1/defines.h
Examining data/openssh-ssh1-7.5p1/digest-libc.c
Examining data/openssh-ssh1-7.5p1/digest.h
Examining data/openssh-ssh1-7.5p1/dispatch.c
Examining data/openssh-ssh1-7.5p1/dispatch.h
Examining data/openssh-ssh1-7.5p1/dns.h
Examining data/openssh-ssh1-7.5p1/ed25519.c
Examining data/openssh-ssh1-7.5p1/entropy.c
Examining data/openssh-ssh1-7.5p1/entropy.h
Examining data/openssh-ssh1-7.5p1/fatal.c
Examining data/openssh-ssh1-7.5p1/fe25519.c
Examining data/openssh-ssh1-7.5p1/fe25519.h
Examining data/openssh-ssh1-7.5p1/ge25519.c
Examining data/openssh-ssh1-7.5p1/ge25519.h
Examining data/openssh-ssh1-7.5p1/groupaccess.c
Examining data/openssh-ssh1-7.5p1/groupaccess.h
Examining data/openssh-ssh1-7.5p1/gss-genr.c
Examining data/openssh-ssh1-7.5p1/gss-serv-krb5.c
Examining data/openssh-ssh1-7.5p1/gss-serv.c
Examining data/openssh-ssh1-7.5p1/hash.c
Examining data/openssh-ssh1-7.5p1/hmac.c
Examining data/openssh-ssh1-7.5p1/hmac.h
Examining data/openssh-ssh1-7.5p1/hostfile.c
Examining data/openssh-ssh1-7.5p1/hostfile.h
Examining data/openssh-ssh1-7.5p1/kex.c
Examining data/openssh-ssh1-7.5p1/kex.h
Examining data/openssh-ssh1-7.5p1/kexc25519.c
Examining data/openssh-ssh1-7.5p1/kexc25519c.c
Examining data/openssh-ssh1-7.5p1/kexc25519s.c
Examining data/openssh-ssh1-7.5p1/kexdh.c
Examining data/openssh-ssh1-7.5p1/kexecdh.c
Examining data/openssh-ssh1-7.5p1/kexecdhc.c
Examining data/openssh-ssh1-7.5p1/kexecdhs.c
Examining data/openssh-ssh1-7.5p1/kexgex.c
Examining data/openssh-ssh1-7.5p1/key.c
Examining data/openssh-ssh1-7.5p1/key.h
Examining data/openssh-ssh1-7.5p1/krl.c
Examining data/openssh-ssh1-7.5p1/krl.h
Examining data/openssh-ssh1-7.5p1/log.h
Examining data/openssh-ssh1-7.5p1/loginrec.c
Examining data/openssh-ssh1-7.5p1/loginrec.h
Examining data/openssh-ssh1-7.5p1/logintest.c
Examining data/openssh-ssh1-7.5p1/mac.c
Examining data/openssh-ssh1-7.5p1/mac.h
Examining data/openssh-ssh1-7.5p1/match.c
Examining data/openssh-ssh1-7.5p1/match.h
Examining data/openssh-ssh1-7.5p1/md-sha256.c
Examining data/openssh-ssh1-7.5p1/md5crypt.c
Examining data/openssh-ssh1-7.5p1/md5crypt.h
Examining data/openssh-ssh1-7.5p1/moduli.c
Examining data/openssh-ssh1-7.5p1/monitor.h
Examining data/openssh-ssh1-7.5p1/monitor_fdpass.c
Examining data/openssh-ssh1-7.5p1/monitor_fdpass.h
Examining data/openssh-ssh1-7.5p1/monitor_wrap.c
Examining data/openssh-ssh1-7.5p1/monitor_wrap.h
Examining data/openssh-ssh1-7.5p1/msg.c
Examining data/openssh-ssh1-7.5p1/msg.h
Examining data/openssh-ssh1-7.5p1/mux.c
Examining data/openssh-ssh1-7.5p1/myproposal.h
Examining data/openssh-ssh1-7.5p1/nchan.c
Examining data/openssh-ssh1-7.5p1/opacket.c
Examining data/openssh-ssh1-7.5p1/opacket.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/arc4random.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/base64.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/base64.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/basename.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bcrypt_pbkdf.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bindresvport.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/blf.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/blowfish.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-asprintf.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-closefrom.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cygwin_util.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cygwin_util.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-err.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-getpeereid.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-nextstep.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-nextstep.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-poll.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-poll.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-setres_id.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-setres_id.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-snprintf.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-statvfs.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-statvfs.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-waitpid.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/bsd-waitpid.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/chacha_private.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/charclass.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/daemon.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/dirname.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/explicit_bzero.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/fake-rfc2553.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/fake-rfc2553.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/fmt_scaled.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/getcwd.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/getgrouplist.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/getopt.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/getopt_long.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/glob.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname-ldns.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/glob.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/inet_aton.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/inet_ntoa.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/inet_ntop.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/kludge-fd_set.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/md5.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/md5.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/mktemp.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/openbsd-compat.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/openssl-compat.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-aix.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-aix.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-irix.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-irix.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-linux.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-solaris.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-solaris.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-tun.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-tun.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-uw.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-uw.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/pwcache.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/readpassphrase.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/readpassphrase.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/reallocarray.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/realpath.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/regress/closefromtest.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/regress/snprintftest.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/regress/strduptest.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/regress/strtonumtest.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/regress/opensslvertest.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/rmd160.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/rmd160.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/rresvport.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/setenv.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/setproctitle.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/sha1.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/sha1.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/sha2.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/sigact.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/sigact.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strcasestr.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strlcat.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strlcpy.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strmode.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strnlen.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strptime.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strsep.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strtoll.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strtonum.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strtoul.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/strtoull.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/sys-queue.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/sys-tree.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/timingsafe_bcmp.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/vis.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/vis.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/xcrypt.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname.h
Examining data/openssh-ssh1-7.5p1/openbsd-compat/openssl-compat.c
Examining data/openssh-ssh1-7.5p1/openbsd-compat/port-linux.c
Examining data/openssh-ssh1-7.5p1/packet.h
Examining data/openssh-ssh1-7.5p1/pathnames.h
Examining data/openssh-ssh1-7.5p1/pkcs11.h
Examining data/openssh-ssh1-7.5p1/platform-pledge.c
Examining data/openssh-ssh1-7.5p1/platform-tracing.c
Examining data/openssh-ssh1-7.5p1/platform.h
Examining data/openssh-ssh1-7.5p1/poly1305.c
Examining data/openssh-ssh1-7.5p1/poly1305.h
Examining data/openssh-ssh1-7.5p1/progressmeter.c
Examining data/openssh-ssh1-7.5p1/progressmeter.h
Examining data/openssh-ssh1-7.5p1/readconf.h
Examining data/openssh-ssh1-7.5p1/readpass.c
Examining data/openssh-ssh1-7.5p1/regress/check-perm.c
Examining data/openssh-ssh1-7.5p1/regress/misc/kexfuzz/kexfuzz.c
Examining data/openssh-ssh1-7.5p1/regress/modpipe.c
Examining data/openssh-ssh1-7.5p1/regress/netcat.c
Examining data/openssh-ssh1-7.5p1/regress/setuid-allowed.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/bitmap/tests.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/conversion/tests.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/hostkeys/test_iterate.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/hostkeys/tests.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/kex/test_kex.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/kex/tests.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/match/tests.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_fixed.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_fuzz.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_getput_basic.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/tests.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshkey/common.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshkey/common.h
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshkey/test_fuzz.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshkey/tests.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshkey/test_file.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/sshkey/test_sshkey.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c
Examining data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.h
Examining data/openssh-ssh1-7.5p1/regress/unittests/utf8/tests.c
Examining data/openssh-ssh1-7.5p1/rijndael.c
Examining data/openssh-ssh1-7.5p1/rijndael.h
Examining data/openssh-ssh1-7.5p1/sandbox-capsicum.c
Examining data/openssh-ssh1-7.5p1/sandbox-darwin.c
Examining data/openssh-ssh1-7.5p1/sandbox-null.c
Examining data/openssh-ssh1-7.5p1/sandbox-pledge.c
Examining data/openssh-ssh1-7.5p1/sandbox-rlimit.c
Examining data/openssh-ssh1-7.5p1/sandbox-seccomp-filter.c
Examining data/openssh-ssh1-7.5p1/sandbox-solaris.c
Examining data/openssh-ssh1-7.5p1/sandbox-systrace.c
Examining data/openssh-ssh1-7.5p1/sc25519.c
Examining data/openssh-ssh1-7.5p1/sc25519.h
Examining data/openssh-ssh1-7.5p1/servconf.c
Examining data/openssh-ssh1-7.5p1/servconf.h
Examining data/openssh-ssh1-7.5p1/serverloop.c
Examining data/openssh-ssh1-7.5p1/serverloop.h
Examining data/openssh-ssh1-7.5p1/session.c
Examining data/openssh-ssh1-7.5p1/session.h
Examining data/openssh-ssh1-7.5p1/sftp-client.c
Examining data/openssh-ssh1-7.5p1/sftp-client.h
Examining data/openssh-ssh1-7.5p1/sftp-common.c
Examining data/openssh-ssh1-7.5p1/sftp-common.h
Examining data/openssh-ssh1-7.5p1/sftp-glob.c
Examining data/openssh-ssh1-7.5p1/sftp-server-main.c
Examining data/openssh-ssh1-7.5p1/sftp-server.c
Examining data/openssh-ssh1-7.5p1/sftp.c
Examining data/openssh-ssh1-7.5p1/sftp.h
Examining data/openssh-ssh1-7.5p1/smult_curve25519_ref.c
Examining data/openssh-ssh1-7.5p1/ssh-add.c
Examining data/openssh-ssh1-7.5p1/ssh-ed25519.c
Examining data/openssh-ssh1-7.5p1/ssh-gss.h
Examining data/openssh-ssh1-7.5p1/ssh-keysign.c
Examining data/openssh-ssh1-7.5p1/ssh-pkcs11-helper.c
Examining data/openssh-ssh1-7.5p1/ssh-pkcs11.h
Examining data/openssh-ssh1-7.5p1/ssh-sandbox.h
Examining data/openssh-ssh1-7.5p1/ssh.h
Examining data/openssh-ssh1-7.5p1/ssh1.h
Examining data/openssh-ssh1-7.5p1/ssh2.h
Examining data/openssh-ssh1-7.5p1/ssh_api.c
Examining data/openssh-ssh1-7.5p1/ssh_api.h
Examining data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c
Examining data/openssh-ssh1-7.5p1/sshbuf-getput-crypto.c
Examining data/openssh-ssh1-7.5p1/sshbuf-misc.c
Examining data/openssh-ssh1-7.5p1/sshbuf.c
Examining data/openssh-ssh1-7.5p1/sshbuf.h
Examining data/openssh-ssh1-7.5p1/sshconnect.h
Examining data/openssh-ssh1-7.5p1/ssherr.c
Examining data/openssh-ssh1-7.5p1/ssherr.h
Examining data/openssh-ssh1-7.5p1/sshkey.h
Examining data/openssh-ssh1-7.5p1/sshlogin.c
Examining data/openssh-ssh1-7.5p1/sshlogin.h
Examining data/openssh-ssh1-7.5p1/sshpty.c
Examining data/openssh-ssh1-7.5p1/sshpty.h
Examining data/openssh-ssh1-7.5p1/sshtty.c
Examining data/openssh-ssh1-7.5p1/ttymodes.c
Examining data/openssh-ssh1-7.5p1/ttymodes.h
Examining data/openssh-ssh1-7.5p1/uidswap.c
Examining data/openssh-ssh1-7.5p1/uidswap.h
Examining data/openssh-ssh1-7.5p1/umac.c
Examining data/openssh-ssh1-7.5p1/umac.h
Examining data/openssh-ssh1-7.5p1/utf8.c
Examining data/openssh-ssh1-7.5p1/utf8.h
Examining data/openssh-ssh1-7.5p1/uuencode.c
Examining data/openssh-ssh1-7.5p1/uuencode.h
Examining data/openssh-ssh1-7.5p1/verify.c
Examining data/openssh-ssh1-7.5p1/xmalloc.c
Examining data/openssh-ssh1-7.5p1/xmalloc.h
Examining data/openssh-ssh1-7.5p1/log.c
Examining data/openssh-ssh1-7.5p1/clientloop.c
Examining data/openssh-ssh1-7.5p1/auth-rhosts.c
Examining data/openssh-ssh1-7.5p1/auth.c
Examining data/openssh-ssh1-7.5p1/misc.c
Examining data/openssh-ssh1-7.5p1/misc.h
Examining data/openssh-ssh1-7.5p1/platform.c
Examining data/openssh-ssh1-7.5p1/scp.c
Examining data/openssh-ssh1-7.5p1/dns.c
Examining data/openssh-ssh1-7.5p1/sshd.c
Examining data/openssh-ssh1-7.5p1/version.h
Examining data/openssh-ssh1-7.5p1/readconf.c
Examining data/openssh-ssh1-7.5p1/packet.c
Examining data/openssh-ssh1-7.5p1/libcrypto-compat.c
Examining data/openssh-ssh1-7.5p1/libcrypto-compat.h
Examining data/openssh-ssh1-7.5p1/auth-pam.c
Examining data/openssh-ssh1-7.5p1/authfd.c
Examining data/openssh-ssh1-7.5p1/cipher-3des1.c
Examining data/openssh-ssh1-7.5p1/cipher-bf1.c
Examining data/openssh-ssh1-7.5p1/cipher.c
Examining data/openssh-ssh1-7.5p1/dh.c
Examining data/openssh-ssh1-7.5p1/dh.h
Examining data/openssh-ssh1-7.5p1/digest-openssl.c
Examining data/openssh-ssh1-7.5p1/includes.h
Examining data/openssh-ssh1-7.5p1/kexdhc.c
Examining data/openssh-ssh1-7.5p1/kexdhs.c
Examining data/openssh-ssh1-7.5p1/kexgexc.c
Examining data/openssh-ssh1-7.5p1/kexgexs.c
Examining data/openssh-ssh1-7.5p1/monitor.c
Examining data/openssh-ssh1-7.5p1/rsa.c
Examining data/openssh-ssh1-7.5p1/rsa.h
Examining data/openssh-ssh1-7.5p1/ssh-agent.c
Examining data/openssh-ssh1-7.5p1/ssh-dss.c
Examining data/openssh-ssh1-7.5p1/ssh-ecdsa.c
Examining data/openssh-ssh1-7.5p1/ssh-keygen.c
Examining data/openssh-ssh1-7.5p1/ssh-keyscan.c
Examining data/openssh-ssh1-7.5p1/ssh-pkcs11-client.c
Examining data/openssh-ssh1-7.5p1/ssh-pkcs11.c
Examining data/openssh-ssh1-7.5p1/ssh-rsa.c
Examining data/openssh-ssh1-7.5p1/ssh.c
Examining data/openssh-ssh1-7.5p1/sshconnect.c
Examining data/openssh-ssh1-7.5p1/sshconnect1.c
Examining data/openssh-ssh1-7.5p1/sshconnect2.c
Examining data/openssh-ssh1-7.5p1/sshkey.c

FINAL RESULTS:

data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:777:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(cray_tmpdir,	pw->pw_uid, pw->pw_gid) != 0) {
data/openssh-ssh1-7.5p1/openbsd-compat/realpath.c:176:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
			slen = readlink(resolved, symlink, sizeof(symlink) - 1);
data/openssh-ssh1-7.5p1/scp.c:1090:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
					(void) chmod(np, mode);
data/openssh-ssh1-7.5p1/scp.c:1107:12:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				(void) chmod(vect[0], mode);
data/openssh-ssh1-7.5p1/scp.c:1176:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				if (chmod(np, omode)) {
data/openssh-ssh1-7.5p1/scp.c:1187:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				if (chmod(np, omode & ~mask)) {
data/openssh-ssh1-7.5p1/sftp-client.c:1419:24:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (preserve_flag && chmod(local_path, mode) == -1)
data/openssh-ssh1-7.5p1/sftp-server.c:913:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		r = chmod(name, a.perm & 07777);
data/openssh-ssh1-7.5p1/sftp-server.c:931:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		r = chown(name, a.uid, a.gid);
data/openssh-ssh1-7.5p1/sftp-server.c:969:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			r = chmod(name, a.perm & 07777);
data/openssh-ssh1-7.5p1/sftp-server.c:995:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			r = chown(name, a.uid, a.gid);
data/openssh-ssh1-7.5p1/sftp-server.c:1244:13:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	if ((len = readlink(path, buf, sizeof(buf) - 1)) == -1)
data/openssh-ssh1-7.5p1/sshpty.c:89:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown(tty, (uid_t) 0, (gid_t) 0) < 0)
data/openssh-ssh1-7.5p1/sshpty.c:91:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(tty, (mode_t) 0666) < 0)
data/openssh-ssh1-7.5p1/sshpty.c:216:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(tty, pw->pw_uid, gid) < 0) {
data/openssh-ssh1-7.5p1/sshpty.c:230:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(tty, mode) < 0) {
data/openssh-ssh1-7.5p1/auth.c:741:2:  [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.
	vsnprintf(buf, sizeof(buf), fmt, args);
data/openssh-ssh1-7.5p1/auth.h:123:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    __attribute__((__format__ (printf, 3, 4)));
data/openssh-ssh1-7.5p1/auth.h:153:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    __attribute__((__format__ (printf, 2, 3)))
data/openssh-ssh1-7.5p1/auth.h:203:65:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void	 auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/channels.c:4372:2:  [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(buf, sizeof buf, _PATH_UNIX_X, dnr);
data/openssh-ssh1-7.5p1/cipher-3des1.c:87:28:  [4] (crypto) EVP_des_cbc:
  DES only supports a 56-bit keysize, which is too small given today's
  computers (CWE-327). Use a different patent-free encryption algorithm with
  a larger keysize, such as 3DES or AES.
	if (EVP_CipherInit(c->k1, EVP_des_cbc(), k1, NULL, enc) == 0 ||
data/openssh-ssh1-7.5p1/cipher-3des1.c:88:28:  [4] (crypto) EVP_des_cbc:
  DES only supports a 56-bit keysize, which is too small given today's
  computers (CWE-327). Use a different patent-free encryption algorithm with
  a larger keysize, such as 3DES or AES.
	    EVP_CipherInit(c->k2, EVP_des_cbc(), k2, NULL, !enc) == 0 ||
data/openssh-ssh1-7.5p1/cipher-3des1.c:89:28:  [4] (crypto) EVP_des_cbc:
  DES only supports a 56-bit keysize, which is too small given today's
  computers (CWE-327). Use a different patent-free encryption algorithm with
  a larger keysize, such as 3DES or AES.
	    EVP_CipherInit(c->k3, EVP_des_cbc(), k3, NULL, enc) == 0) {
data/openssh-ssh1-7.5p1/cipher.c:91:45:  [4] (crypto) EVP_des_cbc:
  DES only supports a 56-bit keysize, which is too small given today's
  computers (CWE-327). Use a different patent-free encryption algorithm with
  a larger keysize, such as 3DES or AES.
	{ "des",	SSH_CIPHER_DES, 8, 8, 0, 0, 0, 1, EVP_des_cbc },
data/openssh-ssh1-7.5p1/clientloop.c:378: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.
			if ((r = snprintf(cmd, sizeof(cmd),
data/openssh-ssh1-7.5p1/clientloop.c:394:8:  [4] (shell) system:
  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.
			if (system(cmd) == 0)
data/openssh-ssh1-7.5p1/clientloop.c:404:4:  [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(cmd, sizeof(cmd),
data/openssh-ssh1-7.5p1/clientloop.c:411:8:  [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.
			f = popen(cmd, "r");
data/openssh-ssh1-7.5p1/defines.h:692:7:  [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.
  int snprintf (char *, size_t, const char *, ...);
data/openssh-ssh1-7.5p1/defines.h:694:9:  [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.
  char *crypt (const char *, const char *);
data/openssh-ssh1-7.5p1/log.c:444:3:  [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.
		vsnprintf(msgbuf, sizeof(msgbuf), fmtbuf, args);
data/openssh-ssh1-7.5p1/log.c:446:3:  [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.
		vsnprintf(msgbuf, sizeof(msgbuf), fmt, args);
data/openssh-ssh1-7.5p1/log.h:62:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/log.h:63:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void     error(const char *, ...) __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/log.h:65:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/log.h:67:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/log.h:68:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void     logit(const char *, ...) __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/log.h:69:59:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void     verbose(const char *, ...) __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/log.h:70:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void     debug(const char *, ...) __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/log.h:71:58:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void     debug2(const char *, ...) __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/log.h:72:58:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void     debug3(const char *, ...) __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/log.h:77:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/openssh-ssh1-7.5p1/logintest.c:163:2:  [4] (shell) system:
  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.
	system(cmdstring);
data/openssh-ssh1-7.5p1/logintest.c:181:2:  [4] (shell) system:
  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.
	system(cmdstring);
data/openssh-ssh1-7.5p1/logintest.c:210:2:  [4] (shell) system:
  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.
	system(cmdstring);
data/openssh-ssh1-7.5p1/misc.h:81:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	     __attribute__((format(printf, 2, 3)));
data/openssh-ssh1-7.5p1/misc.h:83:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	     __attribute__((format(printf, 3, 4)));
data/openssh-ssh1-7.5p1/misc.h:143:62:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int	 ask_permission(const char *, ...) __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/opacket.c:322:2:  [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.
	vsnprintf(buf, sizeof(buf), fmt, args);
data/openssh-ssh1-7.5p1/opacket.c:334:2:  [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.
	vsnprintf(buf, sizeof(buf), fmt, args);
data/openssh-ssh1-7.5p1/opacket.h:104:28:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/opacket.h:106:28:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    __attribute__((format(printf, 1, 2)))
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-asprintf.c:42:8:  [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.
	ret = vsnprintf(string, INIT_SZ, fmt, ap2);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-asprintf.c:56: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.
			ret = vsnprintf(newstr, len, fmt, ap2);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:313:4:  [4] (shell) execl:
  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.
			execl("/bin/passwd", "passwd", username, 0);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:583:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	if (setshares(ue.ue_uid, valid_acct, printf, 0, 0)) {
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:735:3:  [4] (shell) execl:
  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.
		execl(CLEANTMPCMD, CLEANTMPCMD, login, jtmp, (char *)NULL);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-err.c:38:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, args);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-err.c:52:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, args);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-err.c:67:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, args);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.h:129:56:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void err(int, const char *, ...) __attribute__((format(printf, 2, 3)));
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.h:132:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void errx(int, const char *, ...) __attribute__((format(printf, 2, 3)));
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.h:135:52:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void warn(const char *, ...) __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-snprintf.c:862:1:  [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.
vsnprintf (char *str, size_t count, const char *fmt, va_list args)
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-snprintf.c:870:1:  [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(char *str, size_t count, SNPRINTF_CONST char *fmt, ...)
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-snprintf.c:876:8:  [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.
	ret = vsnprintf(str, count, fmt, ap);
data/openssh-ssh1-7.5p1/openbsd-compat/inet_ntop.c:92:6:  [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.
	l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]);
data/openssh-ssh1-7.5p1/openbsd-compat/mktemp.c:110:19:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
__warn_references(mktemp,
data/openssh-ssh1-7.5p1/openbsd-compat/mktemp.c:114:1:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
mktemp(char *path)
data/openssh-ssh1-7.5p1/openbsd-compat/openbsd-compat.h:209:5:  [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.
int snprintf(char *, size_t, SNPRINTF_CONST char *, ...);
data/openssh-ssh1-7.5p1/openbsd-compat/openbsd-compat.h:275:5:  [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.
int vsnprintf(char *, size_t, const char *, va_list);
data/openssh-ssh1-7.5p1/openbsd-compat/port-solaris.c:172:2:  [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(ctl_path, sizeof(ctl_path),
data/openssh-ssh1-7.5p1/openbsd-compat/port-tun.c:88:3:  [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(ifr.ifr_name, sizeof(ifr.ifr_name), name, tun);
data/openssh-ssh1-7.5p1/openbsd-compat/readpassphrase.c:206:1:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
getpass(const char *prompt)
data/openssh-ssh1-7.5p1/openbsd-compat/regress/snprintftest.c:41:8:  [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.
	ret = vsnprintf(str, count, fmt, ap);
data/openssh-ssh1-7.5p1/openbsd-compat/setproctitle.c:147:8:  [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.
			r = vsnprintf(buf + len, sizeof(buf) - len , fmt, ap);
data/openssh-ssh1-7.5p1/openbsd-compat/xcrypt.c:63: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.
#  define crypt DES_crypt
data/openssh-ssh1-7.5p1/openbsd-compat/xcrypt.c:114:13:  [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.
		crypted = crypt(password, salt);
data/openssh-ssh1-7.5p1/openbsd-compat/xcrypt.c:119:13:  [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.
		crypted = crypt(password, salt);
data/openssh-ssh1-7.5p1/openbsd-compat/xcrypt.c:123:12:  [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.
	crypted = crypt(password, salt);
data/openssh-ssh1-7.5p1/packet.c:2078:2:  [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.
	vsnprintf(buf, sizeof(buf), fmt, args);
data/openssh-ssh1-7.5p1/packet.c:2172:2:  [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.
	vsnprintf(buf, sizeof(buf), fmt, args);
data/openssh-ssh1-7.5p1/packet.c:3031:2:  [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.
	vsnprintf(buf, sizeof(buf), fmt, args);
data/openssh-ssh1-7.5p1/packet.h:111:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/openssh-ssh1-7.5p1/packet.h:130:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 2, 3)))
data/openssh-ssh1-7.5p1/packet.h:132:90:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void     ssh_packet_send_debug(struct ssh *, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
data/openssh-ssh1-7.5p1/packet.h:172:28:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    __attribute__((format(printf, 2, 3)));
data/openssh-ssh1-7.5p1/readconf.c:523:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(argv[0], argv);
data/openssh-ssh1-7.5p1/readpass.c:79:3:  [4] (shell) execlp:
  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.
		execlp(askpass, askpass, msg, (char *)NULL);
data/openssh-ssh1-7.5p1/readpass.c:177:2:  [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.
	vsnprintf(prompt, sizeof(prompt), fmt, args);
data/openssh-ssh1-7.5p1/regress/check-perm.c:28:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, args);
data/openssh-ssh1-7.5p1/regress/netcat.c:323:8:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
			if (mktemp(unix_dg_tmp_socket_buf) == NULL)
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:44:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf x; \
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:178:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(ret, F_OK) != 0) {
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:247:2:  [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.
	vsnprintf(subtest_info, sizeof(subtest_info), fmt, ap);
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.h:47:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/scp.c:210:3:  [4] (shell) execvp:
  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.
		execvp(a->list[0], a->list);
data/openssh-ssh1-7.5p1/scp.c:290:3:  [4] (shell) execvp:
  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.
		execvp(ssh_program, args.list);
data/openssh-ssh1-7.5p1/scp.c:339:3:  [4] (shell) execvp:
  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.
		execvp(ssh_program, args.list);
data/openssh-ssh1-7.5p1/scp.c:1284:10:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(void) vfprintf(fp, fmt, ap);
data/openssh-ssh1-7.5p1/session.c:1189:7:  [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.
		f = popen(cmd, "w");
data/openssh-ssh1-7.5p1/session.c:1202:7:  [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.
		f = popen(_PATH_BSHELL " " _PATH_SSH_SYSTEM_RC, "w");
data/openssh-ssh1-7.5p1/session.c:1224:7:  [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.
		f = popen(cmd, "w");
data/openssh-ssh1-7.5p1/session.c:1420:3:  [4] (shell) execl:
  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.
		execl(_PATH_PASSWD_PROG, "passwd", s->pw->pw_name,
data/openssh-ssh1-7.5p1/session.c:1423:3:  [4] (shell) execl:
  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.
		execl(_PATH_PASSWD_PROG, "passwd", (char *)NULL);
data/openssh-ssh1-7.5p1/sftp-client.c:96:52:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    const char *errfmt, ...) __attribute__((format(printf, 4, 5)));
data/openssh-ssh1-7.5p1/sftp-client.c:247:3:  [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.
		vsnprintf(errmsg, sizeof(errmsg), errfmt, args);
data/openssh-ssh1-7.5p1/sftp.c:315:4:  [4] (shell) execl:
  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.
			execl(shell, shell, "-c", args, (char *)NULL);
data/openssh-ssh1-7.5p1/sftp.c:318:4:  [4] (shell) execl:
  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.
			execl(shell, shell, (char *)NULL);
data/openssh-ssh1-7.5p1/sftp.c:343:3:  [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(buf, len, _PATH_LS " %s", args);
data/openssh-ssh1-7.5p1/sftp.c:2228:3:  [4] (shell) execvp:
  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.
		execvp(path, args);
data/openssh-ssh1-7.5p1/ssh-agent.c:1362:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(format, SSH_AUTHSOCKET_ENV_NAME);
data/openssh-ssh1-7.5p1/ssh-agent.c:1363:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(format, SSH_AGENTPID_ENV_NAME);
data/openssh-ssh1-7.5p1/ssh-agent.c:1406:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(format, SSH_AUTHSOCKET_ENV_NAME, socket_name,
data/openssh-ssh1-7.5p1/ssh-agent.c:1422:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(format, SSH_AUTHSOCKET_ENV_NAME, socket_name,
data/openssh-ssh1-7.5p1/ssh-agent.c:1424:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(format, SSH_AGENTPID_ENV_NAME, pidstrbuf,
data/openssh-ssh1-7.5p1/ssh-agent.c:1434:3:  [4] (shell) execvp:
  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.
		execvp(av[0], av);
data/openssh-ssh1-7.5p1/ssh-pkcs11-client.c:177:3:  [4] (shell) execlp:
  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.
		execlp(_PATH_SSH_PKCS11_HELPER, _PATH_SSH_PKCS11_HELPER,
data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c:274:13:  [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.
	if ((len = vsnprintf(NULL, 0, fmt, ap2)) < 0) {
data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c:286:11:  [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.
	if ((r = vsnprintf((char *)p, len + 1, fmt, ap2)) != len) {
data/openssh-ssh1-7.5p1/sshbuf.h:175:28:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    __attribute__((format(printf, 2, 3)));
data/openssh-ssh1-7.5p1/sshbuf.h:346:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf x; \
data/openssh-ssh1-7.5p1/sshconnect.c:157:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(argv[0], argv);
data/openssh-ssh1-7.5p1/sshconnect.c:234:3:  [4] (shell) execvp:
  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.
		execvp(argv[0], argv);
data/openssh-ssh1-7.5p1/sshconnect.c:1509:3:  [4] (shell) execlp:
  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.
		execlp(shell, shell, "-c", args, (char *)NULL);
data/openssh-ssh1-7.5p1/sshconnect2.c:1663:3:  [4] (shell) execl:
  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.
		execl(_PATH_SSH_KEY_SIGN, _PATH_SSH_KEY_SIGN, (char *)NULL);
data/openssh-ssh1-7.5p1/sshd.c:300:2:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execv(saved_argv[0], saved_argv);
data/openssh-ssh1-7.5p1/sshd.c:1921:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(rexec_argv[0], rexec_argv);
data/openssh-ssh1-7.5p1/utf8.h:19:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	     __attribute__((format(printf, 1, 2)));
data/openssh-ssh1-7.5p1/utf8.h:21:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	     __attribute__((format(printf, 2, 3)));
data/openssh-ssh1-7.5p1/utf8.h:24:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	     __attribute__((format(printf, 4, 5)));
data/openssh-ssh1-7.5p1/xmalloc.h:25:44:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                __attribute__((__format__ (printf, 2, 3)))
data/openssh-ssh1-7.5p1/auth-pam.c:439:13:  [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.
	char *tz = getenv("TZ");
data/openssh-ssh1-7.5p1/auth.c:496:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(name, buf) == NULL) {
data/openssh-ssh1-7.5p1/auth.c:501:24:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (pw_dir != NULL && realpath(pw_dir, homedir) != NULL)
data/openssh-ssh1-7.5p1/auth2-pubkey.c:460:13:  [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 ((cp = getenv("LANG")) != NULL)
data/openssh-ssh1-7.5p1/authfd.c:97: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.
	authsocket = getenv(SSH_AUTHSOCKET_ENV_NAME);
data/openssh-ssh1-7.5p1/authfd.c:175:6:  [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(SSH_AUTHSOCKET_ENV_NAME))
data/openssh-ssh1-7.5p1/channels.c:4414: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.
	display = getenv("DISPLAY");
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass1.c:75:17:  [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.
	grab_server = (getenv("GNOME_SSH_ASKPASS_GRAB_SERVER") != NULL);
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass1.c:76: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.
	grab_pointer = (getenv("GNOME_SSH_ASKPASS_GRAB_POINTER") != NULL);
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass2.c:93:17:  [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.
	grab_server = (getenv("GNOME_SSH_ASKPASS_GRAB_SERVER") != NULL);
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass2.c:94: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.
	grab_pointer = (getenv("GNOME_SSH_ASKPASS_GRAB_POINTER") != NULL);
data/openssh-ssh1-7.5p1/defines.h:586:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt
data/openssh-ssh1-7.5p1/defines.h:592:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt(ac, av, o)  BSDgetopt(ac, av, o)
data/openssh-ssh1-7.5p1/misc.c:1141:16:  [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 ((tmpdir = getenv("TMPDIR")) != NULL) {
data/openssh-ssh1-7.5p1/mux.c:1367: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.
	display = getenv("DISPLAY");
data/openssh-ssh1-7.5p1/mux.c:1838: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.
	term = getenv("TERM");
data/openssh-ssh1-7.5p1/openbsd-compat/getopt.h:57:6:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int	 getopt_long(int, char * const *, const char *,
data/openssh-ssh1-7.5p1/openbsd-compat/getopt.h:63:6:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int	 getopt(int, char * const *, const char *);
data/openssh-ssh1-7.5p1/openbsd-compat/getopt_long.c:316:22:  [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.
		posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
data/openssh-ssh1-7.5p1/openbsd-compat/getopt_long.c:490:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt(int nargc, char * const *nargv, const char *options)
data/openssh-ssh1-7.5p1/openbsd-compat/getopt_long.c:510:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long(int nargc, char * const *nargv, const char *options,
data/openssh-ssh1-7.5p1/openbsd-compat/glob.c:392:32:  [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 (issetugid() != 0 || (h = getenv("HOME")) == NULL) {
data/openssh-ssh1-7.5p1/openbsd-compat/glob.c:394:39:  [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 ((getuid() != geteuid()) || (h = getenv("HOME")) == NULL) {
data/openssh-ssh1-7.5p1/openbsd-compat/openbsd-compat.h:77:11:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
#  define realpath(x, y) _ssh_compat_realpath(x, y)
data/openssh-ssh1-7.5p1/openbsd-compat/openbsd-compat.h:80:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
char *realpath(const char *path, char *resolved);
data/openssh-ssh1-7.5p1/openbsd-compat/realpath.c:61:1:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
realpath(const char *path, char *resolved)
data/openssh-ssh1-7.5p1/readconf.c:493: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.
	if ((shell = getenv("SHELL")) == NULL)
data/openssh-ssh1-7.5p1/readpass.c:144:34:  [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 ((flags & RP_USE_ASKPASS) && getenv("DISPLAY") == NULL)
data/openssh-ssh1-7.5p1/readpass.c:147: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.
	if (use_askpass && getenv("DISPLAY")) {
data/openssh-ssh1-7.5p1/readpass.c:148:7:  [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(SSH_ASKPASS_ENV))
data/openssh-ssh1-7.5p1/readpass.c:149:14:  [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.
			askpass = getenv(SSH_ASKPASS_ENV);
data/openssh-ssh1-7.5p1/regress/check-perm.c:102:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(name, buf) == NULL) {
data/openssh-ssh1-7.5p1/regress/check-perm.c:107:24:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (pw_dir != NULL && realpath(pw_dir, homedir) != NULL)
data/openssh-ssh1-7.5p1/regress/check-perm.c:168:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "hm:")) != -1) {
data/openssh-ssh1-7.5p1/regress/misc/kexfuzz/kexfuzz.c:354:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "hcdrvD:f:K:k:i:")) != -1) {
data/openssh-ssh1-7.5p1/regress/modpipe.c:91:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "wm:")) != -1) {
data/openssh-ssh1-7.5p1/regress/netcat.c:162:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv,
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:137:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "vqd:")) != -1) {
data/openssh-ssh1-7.5p1/scp.c:410:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q12346S:o:F:")) != -1)
data/openssh-ssh1-7.5p1/session.c:1030:41:  [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.
		child_set_env(&env, &envsize, "PATH", getenv("PATH"));
data/openssh-ssh1-7.5p1/session.c:1056:6:  [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("TZ"))
data/openssh-ssh1-7.5p1/session.c:1057:39:  [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.
		child_set_env(&env, &envsize, "TZ", getenv("TZ"));
data/openssh-ssh1-7.5p1/session.c:1111:13:  [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 ((cp = getenv("KRB5CCNAME")) != NULL)
data/openssh-ssh1-7.5p1/session.c:1119:13:  [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 ((cp = getenv("AUTHSTATE")) != NULL)
data/openssh-ssh1-7.5p1/session.c:1318:6:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	if (chroot(path) == -1)
data/openssh-ssh1-7.5p1/sftp-server.c:1161:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(path, resolvedname) == NULL) {
data/openssh-ssh1-7.5p1/sftp-server.c:1518:28:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (!skipargs && (ch = getopt(argc, argv,
data/openssh-ssh1-7.5p1/sftp-server.c:1598: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.
	if ((cp = getenv("SSH_CONNECTION")) != NULL) {
data/openssh-ssh1-7.5p1/sftp-server.c:1602:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			    getenv("SSH_CONNECTION"));
data/openssh-ssh1-7.5p1/sftp.c:305: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.
	if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
data/openssh-ssh1-7.5p1/sftp.c:393:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "afPpRr")) != -1) {
data/openssh-ssh1-7.5p1/sftp.c:428:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "s")) != -1) {
data/openssh-ssh1-7.5p1/sftp.c:452:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "l")) != -1) {
data/openssh-ssh1-7.5p1/sftp.c:476:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "1Safhlnrt")) != -1) {
data/openssh-ssh1-7.5p1/sftp.c:529:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "hi")) != -1) {
data/openssh-ssh1-7.5p1/sftp.c:555:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "")) != -1) {
data/openssh-ssh1-7.5p1/sftp.c:2297:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv,
data/openssh-ssh1-7.5p1/ssh-add.c:510:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "klLcdDxXE:e:s:t:")) != -1) {
data/openssh-ssh1-7.5p1/ssh-agent.c:815:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(provider, canonical_provider) == NULL) {
data/openssh-ssh1-7.5p1/ssh-agent.c:869:6:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (realpath(provider, canonical_provider) == NULL) {
data/openssh-ssh1-7.5p1/ssh-agent.c:1278:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(ac, av, "cDdksE:a:P:t:")) != -1) {
data/openssh-ssh1-7.5p1/ssh-agent.c:1336:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		shell = getenv("SHELL");
data/openssh-ssh1-7.5p1/ssh-agent.c:1344: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.
		pidstr = getenv(SSH_AGENTPID_ENV_NAME);
data/openssh-ssh1-7.5p1/ssh-keygen.c:2333:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "ABHLQXceghiklopquvxy"
data/openssh-ssh1-7.5p1/ssh-keyscan.c:720:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "cHv46p:T:t:f:")) != -1) {
data/openssh-ssh1-7.5p1/ssh.c:608:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(ac, av, "1246ab:c:e:fgi:kl:m:no:p:qstvx"
data/openssh-ssh1-7.5p1/ssh.c:1744:8:  [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.
		cp = getenv("TERM");
data/openssh-ssh1-7.5p1/ssh.c:1777: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.
	display = getenv("DISPLAY");
data/openssh-ssh1-7.5p1/ssh.c:1877: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.
	display = getenv("DISPLAY");
data/openssh-ssh1-7.5p1/ssh.c:1904:54:  [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.
	client_session2_setup(id, tty_flag, subsystem_flag, getenv("TERM"),
data/openssh-ssh1-7.5p1/sshconnect.c:113: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.
	if ((shell = getenv("SHELL")) == NULL)
data/openssh-ssh1-7.5p1/sshconnect.c:192: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.
	if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
data/openssh-ssh1-7.5p1/sshconnect.c:1501: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.
	if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
data/openssh-ssh1-7.5p1/sshd.c:546:7:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
		if (chroot(_PATH_PRIVSEP_CHROOT_DIR) == -1)
data/openssh-ssh1-7.5p1/sshd.c:1407:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(ac, av,
data/openssh-ssh1-7.5p1/sshd.c:1553:6:  [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("KRB5CCNAME") != NULL)
data/openssh-ssh1-7.5p1/utf8.c:316:13:  [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 ((cp = getenv(vars[i])) == NULL)
data/openssh-ssh1-7.5p1/addrmatch.c:157:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, a, sizeof(*dst));
data/openssh-ssh1-7.5p1/addrmatch.c:317:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 addrbuf[64], *mp, *cp;
data/openssh-ssh1-7.5p1/addrmatch.c:342: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(n, &tmp, sizeof(*n));
data/openssh-ssh1-7.5p1/atomicio.c:115:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(iov, _iov, (size_t)iovcnt * sizeof(*_iov));
data/openssh-ssh1-7.5p1/atomicio.c:154:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			iov[0].iov_base = ((char *)iov[0].iov_base) + rem;
data/openssh-ssh1-7.5p1/audit-bsm.c:153: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(addr, &in4->sin_addr, sizeof(struct in_addr));
data/openssh-ssh1-7.5p1/audit-bsm.c:159: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(addr, &in6->sin6_addr, sizeof(struct in6_addr));
data/openssh-ssh1-7.5p1/audit-bsm.c:239:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 naflags[512];
data/openssh-ssh1-7.5p1/audit-bsm.c:333:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 textbuf[BSM_TEXTBUFSZ];
data/openssh-ssh1-7.5p1/audit-bsm.c:354:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/audit-bsm.c:397:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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    textbuf[BSM_TEXTBUFSZ];
data/openssh-ssh1-7.5p1/auth-krb5.c:244:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ccname[40];
data/openssh-ssh1-7.5p1/auth-krb5.c:253:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	tmpfd = mkstemp(ccname + strlen("FILE:"));
data/openssh-ssh1-7.5p1/auth-pam.c:990:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 input[PAM_MAX_MSG_SIZE];
data/openssh-ssh1-7.5p1/auth-passwd.c:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/auth-rhosts.c:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[RBUFLN];/* Must not be larger than host, user, dummy below. */
data/openssh-ssh1-7.5p1/auth-rhosts.c:67:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(filename, O_RDONLY|O_NONBLOCK)) == -1)
data/openssh-ssh1-7.5p1/auth-rhosts.c:86:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[RBUFLN], userbuf[RBUFLN], dummy[RBUFLN];
data/openssh-ssh1-7.5p1/auth-rhosts.c:193:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/auth-shadow.c:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/auth-shadow.c:92:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/auth-skey.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 challenge[1024];
data/openssh-ssh1-7.5p1/auth.c:401:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *file, ret[PATH_MAX];
data/openssh-ssh1-7.5p1/auth.c:491:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[PATH_MAX], homedir[PATH_MAX];
data/openssh-ssh1-7.5p1/auth.c:568:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[1024];
data/openssh-ssh1-7.5p1/auth.c:573:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) {
data/openssh-ssh1-7.5p1/auth.c:734:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/auth.c:810:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[NI_MAXHOST], ntop2[NI_MAXHOST];
data/openssh-ssh1-7.5p1/auth2-pubkey.c:382:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret, sshbuf_ptr(buf), sshbuf_len(buf));
data/openssh-ssh1-7.5p1/auth2-pubkey.c:402:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *cp, errmsg[512];
data/openssh-ssh1-7.5p1/auth2-pubkey.c:466:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
data/openssh-ssh1-7.5p1/auth2-pubkey.c:565:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[SSH_MAX_PUBKEY_BYTES], *cp, *ep, *line_opts;
data/openssh-ssh1-7.5p1/auth2-pubkey.c:646:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 serial_s[16];
data/openssh-ssh1-7.5p1/auth2-pubkey.c:766:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[SSH_MAX_PUBKEY_BYTES];
data/openssh-ssh1-7.5p1/auth2.c:111:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(options.banner, O_RDONLY)) == -1)
data/openssh-ssh1-7.5p1/authfd.c:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/authfile.c:61:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0600)) < 0)
data/openssh-ssh1-7.5p1/authfile.c:221:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(filename, O_RDONLY)) < 0) {
data/openssh-ssh1-7.5p1/authfile.c:279:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(filename, O_RDONLY)) < 0)
data/openssh-ssh1-7.5p1/authfile.c:305:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[SSH_MAX_PUBKEY_BYTES];
data/openssh-ssh1-7.5p1/authfile.c:312: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).
	if ((f = fopen(filename, "r")) == NULL)
data/openssh-ssh1-7.5p1/authfile.c:353:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 file[PATH_MAX];
data/openssh-ssh1-7.5p1/authfile.c:363:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(filename, O_RDONLY)) < 0)
data/openssh-ssh1-7.5p1/authfile.c:513:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[SSH_MAX_PUBKEY_BYTES];
data/openssh-ssh1-7.5p1/authfile.c:521: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).
	if ((f = fopen(filename, "r")) == NULL)
data/openssh-ssh1-7.5p1/canohost.c:59:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&a4->sin_addr, &inaddr, sizeof(inaddr));
data/openssh-ssh1-7.5p1/canohost.c:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ntop[NI_MAXHOST];
data/openssh-ssh1-7.5p1/canohost.c:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *host, myname[NI_MAXHOST];
data/openssh-ssh1-7.5p1/canohost.c:160:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/canohost.c:191:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atoi(strport);
data/openssh-ssh1-7.5p1/chacha.c:52: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.
static const char sigma[16] = "expand 32-byte k";
data/openssh-ssh1-7.5p1/chacha.c:53: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.
static const char tau[16] = "expand 16-byte k";
data/openssh-ssh1-7.5p1/channels.c:696:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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], *cp;
data/openssh-ssh1-7.5p1/channels.c:1036:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ucp + 12 + ((proto_len + 3) & ~3),
data/openssh-ssh1-7.5p1/channels.c:1122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 username[256];
data/openssh-ssh1-7.5p1/channels.c:1240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 dest_addr[255+1], ntop[INET6_ADDRSTRLEN];
data/openssh-ssh1-7.5p1/channels.c:1421:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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], *remote_ipaddr;
data/openssh-ssh1-7.5p1/channels.c:1481:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/channels.c:1730:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[CHAN_RBUF];
data/openssh-ssh1-7.5p1/channels.c:1871:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[CHAN_RBUF];
data/openssh-ssh1-7.5p1/channels.c:1956:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[CHAN_RBUF];
data/openssh-ssh1-7.5p1/channels.c:3190:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ntop[NI_MAXHOST], strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/channels.c:3964:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ntop[NI_MAXHOST], strport[MAXIMUM(NI_MAXSERV,sizeof(sunaddr->sun_path))];
data/openssh-ssh1-7.5p1/channels.c:4040:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/channels.c:4256:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/channels.c:4371:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/channels.c:4408:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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], *cp;
data/openssh-ssh1-7.5p1/channels.c:4410:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/channels.c:4427:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[PATH_MAX];
data/openssh-ssh1-7.5p1/cipher-3des1.c:138: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(EVP_CIPHER_CTX_iv_noconst(c->k1), iv, 8);
data/openssh-ssh1-7.5p1/cipher-3des1.c:139: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(EVP_CIPHER_CTX_iv_noconst(c->k2), iv + 8, 8);
data/openssh-ssh1-7.5p1/cipher-3des1.c:140: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(EVP_CIPHER_CTX_iv_noconst(c->k3), iv + 16, 8);
data/openssh-ssh1-7.5p1/cipher-3des1.c:142: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(iv, EVP_CIPHER_CTX_iv(c->k1), 8);
data/openssh-ssh1-7.5p1/cipher-3des1.c:143: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(iv + 8, EVP_CIPHER_CTX_iv(c->k2), 8);
data/openssh-ssh1-7.5p1/cipher-3des1.c:144: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(iv + 16, EVP_CIPHER_CTX_iv(c->k3), 8);
data/openssh-ssh1-7.5p1/cipher-aes.c:66: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(c->r_iv, iv, RIJNDAEL_BLOCKSIZE);
data/openssh-ssh1-7.5p1/cipher-aes.c:98: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(c->r_iv, cprev, RIJNDAEL_BLOCKSIZE);
data/openssh-ssh1-7.5p1/cipher-aes.c:103: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(buf, cnow, RIJNDAEL_BLOCKSIZE);
data/openssh-ssh1-7.5p1/cipher-aes.c:111: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(c->r_iv, buf, RIJNDAEL_BLOCKSIZE);
data/openssh-ssh1-7.5p1/cipher-aes.c:137: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(c->r_iv, iv, len);
data/openssh-ssh1-7.5p1/cipher-aes.c:139: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(iv, c->r_iv, len);
data/openssh-ssh1-7.5p1/cipher-aesctr.c:65:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(x->ctr, iv, AES_BLOCK_SIZE);
data/openssh-ssh1-7.5p1/cipher-bf1.c:66: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 (&(ctx->oiv[0]), iv, 8);
data/openssh-ssh1-7.5p1/cipher-bf1.c:67:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&(ctx->iv[0]), &(ctx->oiv[0]), 8);
data/openssh-ssh1-7.5p1/cipher-ctr.c:96: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(c->aes_counter, iv, AES_BLOCK_SIZE);
data/openssh-ssh1-7.5p1/cipher-ctr.c:121: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(c->aes_counter, iv, len);
data/openssh-ssh1-7.5p1/cipher-ctr.c: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(iv, c->aes_counter, len);
data/openssh-ssh1-7.5p1/cipher.c:162: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(ret + rlen, c->name, nlen + 1);
data/openssh-ssh1-7.5p1/cipher.c:454:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, src, aadlen);
data/openssh-ssh1-7.5p1/cipher.c:460: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(dest, src, aadlen + len);
data/openssh-ssh1-7.5p1/cipher.c:484: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(dest, src, aadlen);
data/openssh-ssh1-7.5p1/cipher.c:600: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(iv, cc->ac_ctx.ctr, len);
data/openssh-ssh1-7.5p1/cipher.c:628:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(iv, EVP_CIPHER_CTX_iv(cc->evp), len);
data/openssh-ssh1-7.5p1/cipher.c:674:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(EVP_CIPHER_CTX_iv_noconst(cc->evp), iv, evplen);
data/openssh-ssh1-7.5p1/cipher.c:703: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(dat, EVP_X_STATE(cc->evp), plen);
data/openssh-ssh1-7.5p1/cipher.c:720: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(EVP_X_STATE(cc->evp), dat, plen);
data/openssh-ssh1-7.5p1/clientloop.c:310:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 cmd[1024], line[512], xdisplay[512];
data/openssh-ssh1-7.5p1/clientloop.c:311:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 xauthfile[PATH_MAX], xauthdir[PATH_MAX];
data/openssh-ssh1-7.5p1/clientloop.c:312: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.
	static char proto[512], data[512];
data/openssh-ssh1-7.5p1/clientloop.c:467:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[1];
data/openssh-ssh1-7.5p1/clientloop.c:693:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/openssh-ssh1-7.5p1/clientloop.c:759:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[SSH_IOBUFSZ];
data/openssh-ssh1-7.5p1/clientloop.c:808:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 errmsg[256];
data/openssh-ssh1-7.5p1/clientloop.c:1059:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[1024];
data/openssh-ssh1-7.5p1/clientloop.c:1092:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[1024];
data/openssh-ssh1-7.5p1/clientloop.c:1148:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 b[16];
data/openssh-ssh1-7.5p1/clientloop.c:1332:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[SSH_IOBUFSZ];
data/openssh-ssh1-7.5p1/clientloop.c:1388:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/openssh-ssh1-7.5p1/clientloop.c:1509:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/openssh-ssh1-7.5p1/compat.c:234:11:  [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).
		switch (atoi(p)) {
data/openssh-ssh1-7.5p1/defines.h:368:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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	sun_path[108];		/* path name (gag) */
data/openssh-ssh1-7.5p1/defines.h:630:29:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define memmove(s1, s2, n) bcopy((s2), (s1), (n))
data/openssh-ssh1-7.5p1/defines.h:693:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int mkstemp (char *);
data/openssh-ssh1-7.5p1/dh.c:149:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[4096];
data/openssh-ssh1-7.5p1/dh.c:154: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).
	if ((f = fopen(_PATH_DH_MODULI, "r")) == NULL) {
data/openssh-ssh1-7.5p1/digest-libc.c:193:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(to->mdctx, from->mdctx, digest->ctx_len);
data/openssh-ssh1-7.5p1/dns.c:158:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*digest, rdata + 2, *digest_len);
data/openssh-ssh1-7.5p1/ed25519.c:33: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 extsk[64];
data/openssh-ssh1-7.5p1/ed25519.c:59: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 r[32];
data/openssh-ssh1-7.5p1/ed25519.c:60: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 s[32];
data/openssh-ssh1-7.5p1/ed25519.c:61: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 extsk[64];
data/openssh-ssh1-7.5p1/ed25519.c:63: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 hmg[crypto_hash_sha512_BYTES];
data/openssh-ssh1-7.5p1/ed25519.c:64: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 hram[crypto_hash_sha512_BYTES];
data/openssh-ssh1-7.5p1/ed25519.c:111: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 t2[32];
data/openssh-ssh1-7.5p1/ed25519.c:114: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 hram[crypto_hash_sha512_BYTES];
data/openssh-ssh1-7.5p1/entropy.c:214:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[RANDOM_SEED_SIZE];
data/openssh-ssh1-7.5p1/fe25519.c:100:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void fe25519_unpack(fe25519 *r, const unsigned char x[32])
data/openssh-ssh1-7.5p1/fe25519.c:108:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void fe25519_pack(unsigned char r[32], const fe25519 *x)
data/openssh-ssh1-7.5p1/fe25519.h:40:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void fe25519_unpack(fe25519 *r, const unsigned char x[32]);
data/openssh-ssh1-7.5p1/fe25519.h:42:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void fe25519_pack(unsigned char r[32], const fe25519 *x);
data/openssh-ssh1-7.5p1/ge25519.c:196:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int ge25519_unpackneg_vartime(ge25519_p3 *r, const unsigned char p[32])
data/openssh-ssh1-7.5p1/ge25519.c:243:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void ge25519_pack(unsigned char r[32], const ge25519_p3 *p)
data/openssh-ssh1-7.5p1/ge25519.c:266: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 b[127];
data/openssh-ssh1-7.5p1/ge25519.c:308:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  signed char b[85];
data/openssh-ssh1-7.5p1/ge25519.h:33:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int ge25519_unpackneg_vartime(ge25519 *r, const unsigned char p[32]);
data/openssh-ssh1-7.5p1/ge25519.h:35:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void ge25519_pack(unsigned char r[32], const ge25519 *p);
data/openssh-ssh1-7.5p1/gss-genr.c:69:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ctx->oid->elements, data, len);
data/openssh-ssh1-7.5p1/gss-serv.c:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 lname[NI_MAXHOST];
data/openssh-ssh1-7.5p1/gss-serv.c:266:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(name->value, tok+offset, name->length);
data/openssh-ssh1-7.5p1/hash.c:17:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 iv[64] = {
data/openssh-ssh1-7.5p1/hash.c:32: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 h[64];
data/openssh-ssh1-7.5p1/hash.c:33: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 padded[256];
data/openssh-ssh1-7.5p1/hmac.c:72:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ctx->buf, key, klen);
data/openssh-ssh1-7.5p1/hostfile.c:101:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(b64salt, s, b64len);
data/openssh-ssh1-7.5p1/hostfile.c:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 uu_salt[512], uu_result[512];
data/openssh-ssh1-7.5p1/hostfile.c:125: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.
	static char encoded[1024];
data/openssh-ssh1-7.5p1/hostfile.c:189:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 marker[32], *sp, *cp = *cpp;
data/openssh-ssh1-7.5p1/hostfile.c:203: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(marker, cp, sp - cp);
data/openssh-ssh1-7.5p1/hostfile.c:461:6:  [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).
	f = fopen(filename, "a");
data/openssh-ssh1-7.5p1/hostfile.c:566:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((fd = mkstemp(temp)) == -1) {
data/openssh-ssh1-7.5p1/hostfile.c:678:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[8192], oline[8192], ktype[128];
data/openssh-ssh1-7.5p1/hostfile.c:690: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).
	if ((f = fopen(path, "r")) == NULL)
data/openssh-ssh1-7.5p1/hostfile.c:815:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ktype, lineinfo.rawkey, l);
data/openssh-ssh1-7.5p1/kex.c:69: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.
static const char *proposal_names[PROPOSAL_MAX] = {
data/openssh-ssh1-7.5p1/kex.c:133: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(ret + rlen, k->name, nlen + 1);
data/openssh-ssh1-7.5p1/kex.c:245:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
kex_prop2buf(struct sshbuf *b, char *proposal[PROPOSAL_MAX])
data/openssh-ssh1-7.5p1/kex.c:531:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
kex_new(struct ssh *ssh, char *proposal[PROPOSAL_MAX], struct kex **kexp)
data/openssh-ssh1-7.5p1/kex.c:617:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
kex_setup(struct ssh *ssh, char *proposal[PROPOSAL_MAX])
data/openssh-ssh1-7.5p1/kex.c:747:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
proposals_match(char *my[PROPOSAL_MAX], char *peer[PROPOSAL_MAX])
data/openssh-ssh1-7.5p1/kex.c:747: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.
proposals_match(char *my[PROPOSAL_MAX], char *peer[PROPOSAL_MAX])
data/openssh-ssh1-7.5p1/kex.c:1022:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(id, obuf, ssh_digest_bytes(SSH_DIGEST_MD5));
data/openssh-ssh1-7.5p1/kex.h:174:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int	 kex_new(struct ssh *, char *[PROPOSAL_MAX], struct kex **);
data/openssh-ssh1-7.5p1/kex.h:175: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.
int	 kex_setup(struct ssh *, char *[PROPOSAL_MAX]);
data/openssh-ssh1-7.5p1/kex.h:180:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int	 kex_prop2buf(struct sshbuf *, char *proposal[PROPOSAL_MAX]);
data/openssh-ssh1-7.5p1/kexc25519.c:87:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *client_version_string,
data/openssh-ssh1-7.5p1/kexc25519.c:88:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *server_version_string,
data/openssh-ssh1-7.5p1/kexc25519c.c:156: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(kex->session_id, hash, kex->session_id_len);
data/openssh-ssh1-7.5p1/kexc25519s.c:133: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(kex->session_id, hash, kex->session_id_len);
data/openssh-ssh1-7.5p1/kexdhc.c:207: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(kex->session_id, hash, kex->session_id_len);
data/openssh-ssh1-7.5p1/kexdhs.c:194: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(kex->session_id, hash, kex->session_id_len);
data/openssh-ssh1-7.5p1/kexecdhc.c:203: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(kex->session_id, hash, kex->session_id_len);
data/openssh-ssh1-7.5p1/kexecdhs.c:168: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(kex->session_id, hash, kex->session_id_len);
data/openssh-ssh1-7.5p1/kexgexc.c:258: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(kex->session_id, hash, kex->session_id_len);
data/openssh-ssh1-7.5p1/kexgexs.c:228: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(kex->session_id, hash, kex->session_id_len);
data/openssh-ssh1-7.5p1/krl.c:255: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(irs, &rs, sizeof(*irs));
data/openssh-ssh1-7.5p1/krl.c:925:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 timestamp[64];
data/openssh-ssh1-7.5p1/krl.c:1277:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_RDONLY)) == -1) {
data/openssh-ssh1-7.5p1/libcrypto-compat.c:373: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(ret, meth, sizeof(*meth));
data/openssh-ssh1-7.5p1/log.c:365:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) {
data/openssh-ssh1-7.5p1/log.c:398:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 msgbuf[MSGBUFSIZ];
data/openssh-ssh1-7.5p1/log.c:399:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 fmtbuf[MSGBUFSIZ];
data/openssh-ssh1-7.5p1/loginrec.c:427:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&li->hostaddr.sa, sa, bufsize);
data/openssh-ssh1-7.5p1/loginrec.c:711: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(ut->ut_addr_v6, sa6->sin6_addr.s6_addr, 16);
data/openssh-ssh1-7.5p1/loginrec.c:793: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(utx->ut_addr_v6, sa6->sin6_addr.s6_addr, 16);
data/openssh-ssh1-7.5p1/loginrec.c:872:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
data/openssh-ssh1-7.5p1/loginrec.c:1097:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
data/openssh-ssh1-7.5p1/loginrec.c:1191:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(WTMP_FILE, O_RDONLY)) < 0) {
data/openssh-ssh1-7.5p1/loginrec.c:1269:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(WTMPX_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
data/openssh-ssh1-7.5p1/loginrec.c:1356:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(WTMPX_FILE, O_RDONLY)) < 0) {
data/openssh-ssh1-7.5p1/loginrec.c:1433:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[UT_LINESIZE];
data/openssh-ssh1-7.5p1/loginrec.c:1480:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 lastlog_file[1024];
data/openssh-ssh1-7.5p1/loginrec.c:1499:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*fd = open(lastlog_file, filemode, 0600);
data/openssh-ssh1-7.5p1/loginrec.c:1675:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(_PATH_BTMP, O_WRONLY | O_APPEND)) < 0) {
data/openssh-ssh1-7.5p1/loginrec.c:1710:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ut.ut_addr, &(a4->sin_addr),
data/openssh-ssh1-7.5p1/loginrec.c:1716:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ut.ut_addr_v6, &(a6->sin6_addr),
data/openssh-ssh1-7.5p1/loginrec.h:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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       progname[LINFO_PROGSIZE];     /* name of program (for PAM) */
data/openssh-ssh1-7.5p1/loginrec.h:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[LINFO_LINESIZE];         /* tty/pty name */
data/openssh-ssh1-7.5p1/loginrec.h:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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       username[LINFO_NAMESIZE];     /* login username */
data/openssh-ssh1-7.5p1/loginrec.h:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       hostname[LINFO_HOSTSIZE];     /* remote hostname */
data/openssh-ssh1-7.5p1/logintest.c:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 cmdstring[256], stripline[8];
data/openssh-ssh1-7.5p1/logintest.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 username[32];
data/openssh-ssh1-7.5p1/logintest.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 s_t0[64],s_t1[64],s_t2[64];
data/openssh-ssh1-7.5p1/logintest.c:95:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 s_logintime[64], s_logouttime[64]; /* ctime() strings */
data/openssh-ssh1-7.5p1/logintest.c:120: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((void *)&(sa_in4.sin_addr), (void *)&(he->h_addr_list[0][0]),
data/openssh-ssh1-7.5p1/logintest.c:225:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 full[17], strip[9], abbrev[5];
data/openssh-ssh1-7.5p1/mac.c:109: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(ret + rlen, m->name, nlen + 1);
data/openssh-ssh1-7.5p1/mac.c:214: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(digest, u.m, dlen);
data/openssh-ssh1-7.5p1/match.c:123:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 sub[1024];
data/openssh-ssh1-7.5p1/match.c:259:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *sproposals[MAX_PROP];
data/openssh-ssh1-7.5p1/md5crypt.c:29: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.
	static char buf[5];
data/openssh-ssh1-7.5p1/md5crypt.c:53: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.
	static char passwd[120], salt_copy[9], *p;
data/openssh-ssh1-7.5p1/md5crypt.c:55:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 final[16];
data/openssh-ssh1-7.5p1/md5crypt.c:77:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(salt_copy, sp, sl);
data/openssh-ssh1-7.5p1/misc.c:592:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 user[128], *ret;
data/openssh-ssh1-7.5p1/misc.c:605: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(user, filename, slash);
data/openssh-ssh1-7.5p1/misc.c:644:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[4096];
data/openssh-ssh1-7.5p1/misc.c:790:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[100];
data/openssh-ssh1-7.5p1/misc.c:800:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(name, O_RDWR);
data/openssh-ssh1-7.5p1/misc.c:805:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((fd = open(name, O_RDWR)) >= 0)
data/openssh-ssh1-7.5p1/misc.c:860:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
data/openssh-ssh1-7.5p1/misc.c:882:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 b[3], *r;
data/openssh-ssh1-7.5p1/misc.c:1206: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.
	static char iptos_str[sizeof "0xff"];
data/openssh-ssh1-7.5p1/misc.c:1333:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(_PATH_TTY, O_RDONLY | O_NOCTTY)) >= 0) {
data/openssh-ssh1-7.5p1/moduli.c:452:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[PATH_MAX];
data/openssh-ssh1-7.5p1/moduli.c:460:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((r = mkstemp(tmp)) == -1) {
data/openssh-ssh1-7.5p1/moduli.c:485: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).
	if ((fp = fopen(cpfile, "r")) == NULL)
data/openssh-ssh1-7.5p1/moduli.c:499:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 lp[QLINESIZE + 1];
data/openssh-ssh1-7.5p1/moduli.c:516: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.
	static char buf[128];
data/openssh-ssh1-7.5p1/monitor.c:661: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(session_id2, p, session_id2_len);
data/openssh-ssh1-7.5p1/monitor.c:926:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 challenge[1024];
data/openssh-ssh1-7.5p1/monitor.c:1477:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd0 = open(_PATH_DEVNULL, O_RDONLY)) < 0)
data/openssh-ssh1-7.5p1/monitor_fdpass.c:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[CMSG_SPACE(sizeof(int))];
data/openssh-ssh1-7.5p1/monitor_fdpass.c:120:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[CMSG_SPACE(sizeof(int))];
data/openssh-ssh1-7.5p1/mux.c:249:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024], *cp;
data/openssh-ssh1-7.5p1/mux.c:1261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 rbuf[16+1];
data/openssh-ssh1-7.5p1/mux.c:1830:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((devnull = open(_PATH_DEVNULL, O_RDONLY)) == -1)
data/openssh-ssh1-7.5p1/mux.c:2032:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((devnull = open(_PATH_DEVNULL, O_RDONLY)) == -1)
data/openssh-ssh1-7.5p1/opacket.c:318:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/opacket.c:330:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/openbsd-compat/arc4random.c:90:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(SSH_RANDOM_DEV, O_RDONLY)) == -1)
data/openssh-ssh1-7.5p1/openbsd-compat/arc4random.c:177:4:  [2] (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, rs_buf + RSBUFSZ - rs_have, m);
data/openssh-ssh1-7.5p1/openbsd-compat/arc4random.c:194:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(val, rs_buf + RSBUFSZ - rs_have, sizeof(*val));
data/openssh-ssh1-7.5p1/openbsd-compat/basename.c:29: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.
	static char bname[MAXPATHLEN];
data/openssh-ssh1-7.5p1/openbsd-compat/basename.c:62:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(bname, startp, len);
data/openssh-ssh1-7.5p1/openbsd-compat/bcrypt_pbkdf.c:134:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(countsalt, salt, saltlen);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-closefrom.c:73: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 fdpath[PATH_MAX], *endp;
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:94: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 cray_tmpdir[TPATHSIZ + 1];		    /* job TMPDIR path */
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:195:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 acct_name[MAXACID] = { "" }; /* used to read acct name */
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:205:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[MAXHOSTNAMELEN];
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:695:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(UTMP_FILE, O_RDONLY)) != -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:721: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.
	static char jtmp[TPATHSIZ];
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cygwin_util.c:51:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return (open(filename, flags | O_BINARY, mode));
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cygwin_util.c:63:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char cyg_privsep_user[DNLEN + UNLEN + 2];
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cygwin_util.h:60:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open binary_open
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.c:124:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_WRONLY);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.c:251:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		return(memcpy(cp, str, len));
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:87:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:102:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1)
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:119:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((*aslave = open(pts, O_RDWR | O_NOCTTY)) == -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:140:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1)
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:144:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((*aslave = open(ttname, O_RDWR | O_NOCTTY)) == -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ptbuf[64], ttbuf[64];
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:164:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((*amaster = open(ptbuf, O_RDWR|O_NOCTTY)) == -1)
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:167:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((*aslave = open(ttbuf, O_RDWR|O_NOCTTY)) == -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:177:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ptbuf[64], ttbuf[64];
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:192:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:196:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1)
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:201:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((*aslave = open(ttbuf, O_RDWR | O_NOCTTY)) == -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-snprintf.c:548:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 convert[20];
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-snprintf.c:708:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 iconvert[311];
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-snprintf.c:709:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 fconvert[311];
data/openssh-ssh1-7.5p1/openbsd-compat/chacha_private.h:51: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.
static const char sigma[16] = "expand 32-byte k";
data/openssh-ssh1-7.5p1/openbsd-compat/chacha_private.h:52: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.
static const char tau[16] = "expand 16-byte k";
data/openssh-ssh1-7.5p1/openbsd-compat/daemon.c:71:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/dirname.c:31: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.
	static char dname[MAXPATHLEN];
data/openssh-ssh1-7.5p1/openbsd-compat/dirname.c:68:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dname, path, len);
data/openssh-ssh1-7.5p1/openbsd-compat/fake-rfc2553.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tmpserv[16];
data/openssh-ssh1-7.5p1/openbsd-compat/fake-rfc2553.h:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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		__ss_pad2[_SS_PADSIZE];
data/openssh-ssh1-7.5p1/openbsd-compat/getcwd.c:173: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(bup, dp->d_name, dp->d_namlen + 1);
data/openssh-ssh1-7.5p1/openbsd-compat/getcwd.c:210: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(bpt, dp->d_name, dp->d_namlen);
data/openssh-ssh1-7.5p1/openbsd-compat/getopt_long.c:163:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 **) nargv)[pos] = nargv[cstart];
data/openssh-ssh1-7.5p1/openbsd-compat/getopt_long.c:165:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 **)nargv)[cstart] = swap;
data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname-ldns.c:140:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rrset->rri_name,
data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname-ldns.c:230: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(rdata->rdi_data + rdata_offset,
data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname.c:332:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(rdata->rdi_data, rr->rdata, rr->size);
data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname.c:397:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&resp->header, cp, HFIXEDSZ);
data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname.c:452:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAXDNAME];
data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname.c:499:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAXDNAME];
data/openssh-ssh1-7.5p1/openbsd-compat/getrrsetbyname.c:550: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(curr->rdata, *cp, curr->size);
data/openssh-ssh1-7.5p1/openbsd-compat/glob.c:386:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	if (((char *) patbuf)[0] == EOS) {
data/openssh-ssh1-7.5p1/openbsd-compat/glob.c:703:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[MAXPATHLEN];
data/openssh-ssh1-7.5p1/openbsd-compat/glob.c:865:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(statv[pglob->gl_offs + pglob->gl_pathc], sb,
data/openssh-ssh1-7.5p1/openbsd-compat/glob.c:986:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[MAXPATHLEN];
data/openssh-ssh1-7.5p1/openbsd-compat/glob.c:1004:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[MAXPATHLEN];
data/openssh-ssh1-7.5p1/openbsd-compat/glob.c:1016:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[MAXPATHLEN];
data/openssh-ssh1-7.5p1/openbsd-compat/inet_ntoa.c:49: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.
	static char b[18];
data/openssh-ssh1-7.5p1/openbsd-compat/inet_ntop.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[sizeof "255.255.255.255"];
data/openssh-ssh1-7.5p1/openbsd-compat/inet_ntop.c:117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"];
data/openssh-ssh1-7.5p1/openbsd-compat/md5.c:82:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ctx->buffer + have, input, need);
data/openssh-ssh1-7.5p1/openbsd-compat/md5.c: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(ctx->buffer + have, input, len);
data/openssh-ssh1-7.5p1/openbsd-compat/md5.c:128:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *ctx)
data/openssh-ssh1-7.5p1/openbsd-compat/mktemp.c:82:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(path, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
data/openssh-ssh1-7.5p1/openbsd-compat/mktemp.c:121:1:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
mkstemp(char *path)
data/openssh-ssh1-7.5p1/openbsd-compat/openbsd-compat.h:114:5:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
int mkstemp(char *path);
data/openssh-ssh1-7.5p1/openbsd-compat/port-aix.c:63:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char old_registry[REGISTRY_SIZE] = "";
data/openssh-ssh1-7.5p1/openbsd-compat/port-linux.c:210:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(newctx, oldctx, len);
data/openssh-ssh1-7.5p1/openbsd-compat/port-linux.c:272: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).
		if ((fp = fopen(oom_adj_path, "r+")) != NULL) {
data/openssh-ssh1-7.5p1/openbsd-compat/port-linux.c:300: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).
	    (fp = fopen(oom_adj_path, "w")) == NULL)
data/openssh-ssh1-7.5p1/openbsd-compat/port-solaris.c:143:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ctl_path[256];
data/openssh-ssh1-7.5p1/openbsd-compat/port-solaris.c:212:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/openbsd-compat/port-tun.c:65:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open("/dev/net/tun", O_RDWR)) == -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/port-tun.c:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[100];
data/openssh-ssh1-7.5p1/openbsd-compat/port-tun.c:138:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(name, O_RDWR);
data/openssh-ssh1-7.5p1/openbsd-compat/port-tun.c:143:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((fd = open(name, O_RDWR)) >= 0)
data/openssh-ssh1-7.5p1/openbsd-compat/port-tun.c:209:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 rbuf[CHAN_RBUF];
data/openssh-ssh1-7.5p1/openbsd-compat/port-tun.c:220:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(buf, ptr + sizeof(u_int32_t), len);
data/openssh-ssh1-7.5p1/openbsd-compat/port-uw.c:98: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).
	if ((fd = fopen (password_file, "r")) == NULL) {
data/openssh-ssh1-7.5p1/openbsd-compat/pwcache.c:55: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.
	static char nbuf[15];		/* 32 bits == 10 digits */
data/openssh-ssh1-7.5p1/openbsd-compat/pwcache.c:90: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.
	static char nbuf[15];		/* 32 bits == 10 digits */
data/openssh-ssh1-7.5p1/openbsd-compat/readpassphrase.c:88:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    (input = output = open(_PATH_TTY, O_RDWR)) == -1) {
data/openssh-ssh1-7.5p1/openbsd-compat/readpassphrase.c:208: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.
	static char buf[_PASSWORD_LEN + 1];
data/openssh-ssh1-7.5p1/openbsd-compat/realpath.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX];
data/openssh-ssh1-7.5p1/openbsd-compat/realpath.c: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(next_token, left, s - left);
data/openssh-ssh1-7.5p1/openbsd-compat/regress/closefromtest.c:40:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[512];
data/openssh-ssh1-7.5p1/openbsd-compat/regress/closefromtest.c:43:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fds[i] = open("/dev/null", O_RDONLY)) == -1)
data/openssh-ssh1-7.5p1/openbsd-compat/regress/snprintftest.c:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 b[5];
data/openssh-ssh1-7.5p1/openbsd-compat/rmd160.c:121:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ctx->buffer + have, input, need);
data/openssh-ssh1-7.5p1/openbsd-compat/rmd160.c:133: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(ctx->buffer + have, input+off, len-off);
data/openssh-ssh1-7.5p1/openbsd-compat/rmd160.c:172:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(x, block, RMD160_BLOCK_LENGTH);
data/openssh-ssh1-7.5p1/openbsd-compat/setenv.c:116: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(P, environ, cnt * sizeof(char *));
data/openssh-ssh1-7.5p1/openbsd-compat/setenv.c:175:4:  [2] (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, environ, cnt * sizeof(char *));
data/openssh-ssh1-7.5p1/openbsd-compat/setproctitle.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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], ptitle[1024];
data/openssh-ssh1-7.5p1/openbsd-compat/sha1.c:63:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy(block, buffer, SHA1_BLOCK_LENGTH);
data/openssh-ssh1-7.5p1/openbsd-compat/sha1.c:134: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.
		(void)memcpy(&context->buffer[j], data, (i = 64-j));
data/openssh-ssh1-7.5p1/openbsd-compat/sha1.c:142:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy(&context->buffer[j], &data[i], len - i);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:291:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(context->state, sha256_initial_hash_value,
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:471:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&context->buffer[usedspace], data, freespace);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:478:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&context->buffer[usedspace], data, len);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:494: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(context->buffer, data, len);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:558: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(digest, context->state, SHA256_DIGEST_LENGTH);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:571:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(context->state, sha512_initial_hash_value,
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:752:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&context->buffer[usedspace], data, freespace);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:759:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&context->buffer[usedspace], data, len);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:775: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(context->buffer, data, len);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:839: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(digest, context->state, SHA512_DIGEST_LENGTH);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:852:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(context->state, sha384_initial_hash_value,
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:896: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(digest, context->state, SHA384_DIGEST_LENGTH);
data/openssh-ssh1-7.5p1/openbsd-compat/vis.c:177:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tbuf[5];
data/openssh-ssh1-7.5p1/openbsd-compat/vis.c:198:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(dst, tbuf, i);
data/openssh-ssh1-7.5p1/openbsd-compat/xcrypt.c:78: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.
	static char salt[32];
data/openssh-ssh1-7.5p1/packet.c:381:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/packet.c:828:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(state->ssh1_key, key, keylen);
data/openssh-ssh1-7.5p1/packet.c:1404:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[8192];
data/openssh-ssh1-7.5p1/packet.c:2070:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/packet.c:2113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 remote_id[512];
data/openssh-ssh1-7.5p1/packet.c:2157:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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], remote_id[512];
data/openssh-ssh1-7.5p1/packet.c:3026:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/pkcs11.h:199: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 manufacturer_id[32];
data/openssh-ssh1-7.5p1/pkcs11.h:201: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 library_description[32];
data/openssh-ssh1-7.5p1/pkcs11.h:216: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 slot_description[64];
data/openssh-ssh1-7.5p1/pkcs11.h:217: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 manufacturer_id[32];
data/openssh-ssh1-7.5p1/pkcs11.h:232: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 label[32];
data/openssh-ssh1-7.5p1/pkcs11.h:233: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 manufacturer_id[32];
data/openssh-ssh1-7.5p1/pkcs11.h:234: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 model[16];
data/openssh-ssh1-7.5p1/pkcs11.h:235: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 serial_number[16];
data/openssh-ssh1-7.5p1/pkcs11.h:249: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 utc_time[16];
data/openssh-ssh1-7.5p1/pkcs11.h:469: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 year[4];
data/openssh-ssh1-7.5p1/pkcs11.h:470: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 month[2];
data/openssh-ssh1-7.5p1/pkcs11.h:471: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 day[2];
data/openssh-ssh1-7.5p1/poly1305.c:34:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsigned char key[POLY1305_KEYLEN]) {
data/openssh-ssh1-7.5p1/poly1305.c:34:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsigned char key[POLY1305_KEYLEN]) {
data/openssh-ssh1-7.5p1/poly1305.c:34:104:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsigned char key[POLY1305_KEYLEN]) {
data/openssh-ssh1-7.5p1/poly1305.c:45:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 mp[16];
data/openssh-ssh1-7.5p1/progressmeter.c:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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_WINSIZE + 1];
data/openssh-ssh1-7.5p1/readconf.c:497:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1)
data/openssh-ssh1-7.5p1/readconf.c:504:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *argv[4];
data/openssh-ssh1-7.5p1/readconf.c:559:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 thishost[NI_MAXHOST], shorthost[NI_MAXHOST], portstr[NI_MAXSERV];
data/openssh-ssh1-7.5p1/readconf.c:833:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 **cpptr, fwdarg[256];
data/openssh-ssh1-7.5p1/readconf.c:1729:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[4096];
data/openssh-ssh1-7.5p1/readconf.c:1736: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).
	if ((f = fopen(filename, "r")) == NULL)
data/openssh-ssh1-7.5p1/readconf.c:2514:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[8];
data/openssh-ssh1-7.5p1/readconf.h:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *system_hostfiles[SSH_MAX_HOSTS_FILES];
data/openssh-ssh1-7.5p1/readconf.h:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *user_hostfiles[SSH_MAX_HOSTS_FILES];
data/openssh-ssh1-7.5p1/readconf.h:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *identity_files[SSH_MAX_IDENTITY_FILES];
data/openssh-ssh1-7.5p1/readconf.h:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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	*certificate_files[SSH_MAX_CERTIFICATE_FILES];
data/openssh-ssh1-7.5p1/readconf.h:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *send_env[MAX_SEND_ENV];
data/openssh-ssh1-7.5p1/readconf.h:150:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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	*canonical_domains[MAX_CANON_DOMAINS];
data/openssh-ssh1-7.5p1/readpass.c:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/readpass.c:134:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ttyfd = open(_PATH_TTY, O_RDWR);
data/openssh-ssh1-7.5p1/readpass.c:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, prompt[1024];
data/openssh-ssh1-7.5p1/regress/check-perm.c:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 component[PATH_MAX];
data/openssh-ssh1-7.5p1/regress/check-perm.c:55:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(component, path, cp - path);
data/openssh-ssh1-7.5p1/regress/check-perm.c:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[PATH_MAX], homedir[PATH_MAX];
data/openssh-ssh1-7.5p1/regress/check-perm.c:162:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 errmsg[256];
data/openssh-ssh1-7.5p1/regress/misc/kexfuzz/kexfuzz.c:77:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((dumpfile = fopen(ctx->dump_path, "w+")) == NULL)
data/openssh-ssh1-7.5p1/regress/misc/kexfuzz/kexfuzz.c:207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *myproposal[PROPOSAL_MAX] = { KEX_CLIENT };
data/openssh-ssh1-7.5p1/regress/misc/kexfuzz/kexfuzz.c:216:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(kex_params.proposal, myproposal, sizeof(myproposal));
data/openssh-ssh1-7.5p1/regress/misc/kexfuzz/kexfuzz.c:390:19:  [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).
			packet_index = atoi(optarg);
data/openssh-ssh1-7.5p1/regress/misc/kexfuzz/kexfuzz.c:413:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(kpath, O_RDONLY)) == -1)
data/openssh-ssh1-7.5p1/regress/misc/kexfuzz/kexfuzz.c:429:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(data_path, O_RDONLY)) == -1)
data/openssh-ssh1-7.5p1/regress/modpipe.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 what[16+1];
data/openssh-ssh1-7.5p1/regress/netcat.c:116: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 *portlist[PORT_MAX+1];
data/openssh-ssh1-7.5p1/regress/netcat.c:153:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unix_dg_tmp_socket_buf[UNIX_DG_TMP_SOCKET_SIZE];
data/openssh-ssh1-7.5p1/regress/netcat.c:397: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/openssh-ssh1-7.5p1/regress/netcat.c:489:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					    ntohs(atoi(portlist[i])),
data/openssh-ssh1-7.5p1/regress/netcat.c:773:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 netinbuf[BUFSIZE];
data/openssh-ssh1-7.5p1/regress/netcat.c:775:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 stdinbuf[BUFSIZE];
data/openssh-ssh1-7.5p1/regress/netcat.c:998:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[CMSG_SPACE(sizeof(int))];
data/openssh-ssh1-7.5p1/regress/netcat.c:1055:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/regress/netcat.c:1247:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 remote_host[NI_MAXHOST];
data/openssh-ssh1-7.5p1/regress/netcat.c:1248:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 remote_port[NI_MAXSERV];
data/openssh-ssh1-7.5p1/regress/netcat.c:1403:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(addr, res->ai_addr, res->ai_addrlen);
data/openssh-ssh1-7.5p1/regress/netcat.c:1433:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 prompt[512];
data/openssh-ssh1-7.5p1/regress/netcat.c:1434: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.
	static char pw[256];
data/openssh-ssh1-7.5p1/regress/netcat.c:1451:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[1024];
data/openssh-ssh1-7.5p1/regress/netcat.c:1510:4:  [2] (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 + 5, host, hlen);			
data/openssh-ssh1-7.5p1/regress/netcat.c:1511:4:  [2] (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 + 5 + hlen, &serverport, sizeof serverport);
data/openssh-ssh1-7.5p1/regress/netcat.c:1520:4:  [2] (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 + 4, &in4->sin_addr, sizeof in4->sin_addr);
data/openssh-ssh1-7.5p1/regress/netcat.c:1521:4:  [2] (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 + 8, &in4->sin_port, sizeof in4->sin_port);
data/openssh-ssh1-7.5p1/regress/netcat.c:1530:4:  [2] (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 + 4, &in6->sin6_addr, sizeof in6->sin6_addr);
data/openssh-ssh1-7.5p1/regress/netcat.c:1531:4:  [2] (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 + 20, &in6->sin6_port,
data/openssh-ssh1-7.5p1/regress/netcat.c:1570: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(buf + 2, &in4->sin_port, sizeof in4->sin_port);
data/openssh-ssh1-7.5p1/regress/netcat.c:1571: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(buf + 4, &in4->sin_addr, sizeof in4->sin_addr);
data/openssh-ssh1-7.5p1/regress/netcat.c:1610:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 resp[1024];
data/openssh-ssh1-7.5p1/regress/unittests/conversion/tests.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/regress/unittests/kex/test_kex.c:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *myproposal[PROPOSAL_MAX] = { KEX_CLIENT };
data/openssh-ssh1-7.5p1/regress/unittests/kex/test_kex.c:99:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(kex_params.proposal, myproposal, sizeof(myproposal));
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[512], *p;
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:34:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	out = tmpfile();
data/openssh-ssh1-7.5p1/regress/unittests/sshkey/common.c:46:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ASSERT_INT_NE(fd = open(test_data_file(name), O_RDONLY), -1);
data/openssh-ssh1-7.5p1/regress/unittests/sshkey/test_sshkey.c:140:4:  [2] (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 + o, "nanananana", l - o);
data/openssh-ssh1-7.5p1/regress/unittests/sshkey/test_sshkey.c:143: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(s + o, banana, sizeof(the_banana));
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:186:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:205:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:225:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret->seed, p, l);
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:320: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(fuzz->fuzzed, fuzz->seed, fuzz->slen);
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:327: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(fuzz->fuzzed, fuzz->seed, fuzz->slen);
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:338: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(fuzz->fuzzed, fuzz->seed, fuzz->slen);
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:345: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(fuzz->fuzzed, fuzz->seed, fuzz->slen);
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:357: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(fuzz->fuzzed, fuzz->seed, fuzz->slen);
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:363: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(fuzz->fuzzed, fuzz->seed, fuzz->slen);
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:117:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char subtest_info[512];
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:172: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.
	static char ret[PATH_MAX];
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:198:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:393:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[64];
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:470:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[8];
data/openssh-ssh1-7.5p1/regress/unittests/utf8/tests.c:21:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[16];
data/openssh-ssh1-7.5p1/regress/unittests/utf8/tests.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[16];
data/openssh-ssh1-7.5p1/sandbox-seccomp-filter.c:277:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 msg[256];
data/openssh-ssh1-7.5p1/sandbox-systrace.c:150:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((dev_systrace = open("/dev/systrace", O_RDONLY)) == -1)
data/openssh-ssh1-7.5p1/sc25519.c:36: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 t[32];
data/openssh-ssh1-7.5p1/sc25519.c:102:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_from32bytes(sc25519 *r, const unsigned char x[32])
data/openssh-ssh1-7.5p1/sc25519.c:111:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void shortsc25519_from16bytes(shortsc25519 *r, const unsigned char x[16])
data/openssh-ssh1-7.5p1/sc25519.c:117:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_from64bytes(sc25519 *r, const unsigned char x[64])
data/openssh-ssh1-7.5p1/sc25519.c:134:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_to32bytes(unsigned char r[32], const sc25519 *x)
data/openssh-ssh1-7.5p1/sc25519.c:221:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_window3(signed char r[85], const sc25519 *s)
data/openssh-ssh1-7.5p1/sc25519.c:258:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_window5(signed char r[51], const sc25519 *s)
data/openssh-ssh1-7.5p1/sc25519.c:295:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_2interleave2(unsigned char r[127], const sc25519 *s1, const sc25519 *s2)
data/openssh-ssh1-7.5p1/sc25519.h:44:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_from32bytes(sc25519 *r, const unsigned char x[32]);
data/openssh-ssh1-7.5p1/sc25519.h:46:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void shortsc25519_from16bytes(shortsc25519 *r, const unsigned char x[16]);
data/openssh-ssh1-7.5p1/sc25519.h:48:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_from64bytes(sc25519 *r, const unsigned char x[64]);
data/openssh-ssh1-7.5p1/sc25519.h:52:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_to32bytes(unsigned char r[32], const sc25519 *x);
data/openssh-ssh1-7.5p1/sc25519.h:71:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_window3(signed char r[85], const sc25519 *s);
data/openssh-ssh1-7.5p1/sc25519.h:76:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_window5(signed char r[51], const sc25519 *s);
data/openssh-ssh1-7.5p1/sc25519.h:78:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void sc25519_2interleave2(unsigned char r[127], const sc25519 *s1, const sc25519 *s2);
data/openssh-ssh1-7.5p1/scp.c:368: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 cmd[CMDNEEDS];		/* must hold "rcp -r -p -d\0" */
data/openssh-ssh1-7.5p1/scp.c:579:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[(20 + 7 + 2) * 2 + 2];
data/openssh-ssh1-7.5p1/scp.c:774:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *last, *name, buf[2048], encname[PATH_MAX];
data/openssh-ssh1-7.5p1/scp.c:783:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(name, O_RDONLY|O_NONBLOCK, 0)) < 0)
data/openssh-ssh1-7.5p1/scp.c:882:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *last, *vect[1], path[PATH_MAX];
data/openssh-ssh1-7.5p1/scp.c:942:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ch, *cp, *np, *targ, *why, *vect[1], buf[2048], visbuf[2048];
data/openssh-ssh1-7.5p1/scp.c:1113:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
data/openssh-ssh1-7.5p1/scp.c:1228:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ch, *cp, resp, rbuf[2048], visbuf[2048];
data/openssh-ssh1-7.5p1/servconf.c:602:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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, *ret, cwd[PATH_MAX];
data/openssh-ssh1-7.5p1/servconf.c:632:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/servconf.c:1259:11:  [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).
		value = atoi(arg);
data/openssh-ssh1-7.5p1/servconf.c:1871:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[4096], *cp;
data/openssh-ssh1-7.5p1/servconf.c:1876: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).
	if ((f = fopen(filename, "r")) == NULL) {
data/openssh-ssh1-7.5p1/servconf.c:1891:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(cp, "\n", 2);
data/openssh-ssh1-7.5p1/servconf.c:2189:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 addr[NI_MAXHOST], port[NI_MAXSERV], *s = NULL;
data/openssh-ssh1-7.5p1/servconf.h:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *host_key_files[MAX_HOSTKEYS];	/* Files containing host keys. */
data/openssh-ssh1-7.5p1/servconf.h:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *host_cert_files[MAX_HOSTCERTS];	/* Files containing host certs. */
data/openssh-ssh1-7.5p1/servconf.h:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *allow_users[MAX_ALLOW_USERS];
data/openssh-ssh1-7.5p1/servconf.h:132:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *deny_users[MAX_DENY_USERS];
data/openssh-ssh1-7.5p1/servconf.h:134:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *allow_groups[MAX_ALLOW_GROUPS];
data/openssh-ssh1-7.5p1/servconf.h:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *deny_groups[MAX_DENY_GROUPS];
data/openssh-ssh1-7.5p1/servconf.h:139:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *subsystem_name[MAX_SUBSYSTEMS];
data/openssh-ssh1-7.5p1/servconf.h:140:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *subsystem_command[MAX_SUBSYSTEMS];
data/openssh-ssh1-7.5p1/servconf.h:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *subsystem_args[MAX_SUBSYSTEMS];
data/openssh-ssh1-7.5p1/servconf.h:144:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *accept_env[MAX_ACCEPT_ENV];
data/openssh-ssh1-7.5p1/servconf.h:164:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *authorized_keys_files[MAX_AUTHKEYS_FILES];
data/openssh-ssh1-7.5p1/servconf.h:189:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   *auth_methods[MAX_AUTH_METHODS];
data/openssh-ssh1-7.5p1/serverloop.c:286:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/session.c:621:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 session_type[1024];
data/openssh-ssh1-7.5p1/session.c:752:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/session.c:756: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).
		f = fopen(login_getcapstr(lc, "welcome", "/etc/motd",
data/openssh-ssh1-7.5p1/session.c:759: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).
		f = fopen("/etc/motd", "r");
data/openssh-ssh1-7.5p1/session.c:776:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/session.c:864:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[4096];
data/openssh-ssh1-7.5p1/session.c:868:6:  [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).
	f = fopen(filename, "r");
data/openssh-ssh1-7.5p1/session.c:982:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/session.c:1174:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 cmd[1024];
data/openssh-ssh1-7.5p1/session.c:1243:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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], *nl, *def_nl = _PATH_NOLOGIN;
data/openssh-ssh1-7.5p1/session.c:1263: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).
	if ((f = fopen(nl, "r")) != NULL) {
data/openssh-ssh1-7.5p1/session.c:1279:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 component[PATH_MAX];
data/openssh-ssh1-7.5p1/session.c:1296:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(component, path, cp - path);
data/openssh-ssh1-7.5p1/session.c:1482:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *argv[ARGV_MAX];
data/openssh-ssh1-7.5p1/session.c:1574:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 cell[64];
data/openssh-ssh1-7.5p1/session.c:1648:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 argv0[256];
data/openssh-ssh1-7.5p1/session.c:2400: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.
	static char buf[1024];
data/openssh-ssh1-7.5p1/session.c:2438:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 display[512], auth_display[512];
data/openssh-ssh1-7.5p1/session.c:2439:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[NI_MAXHOST];
data/openssh-ssh1-7.5p1/session.c:2496: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(&my_addr, he->h_addr_list[0], sizeof(struct in_addr));
data/openssh-ssh1-7.5p1/session.h:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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	tty[TTYSZ];
data/openssh-ssh1-7.5p1/sftp-client.c:241:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 errmsg[256];
data/openssh-ssh1-7.5p1/sftp-client.c:637:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&(*dir)[ents]->a, &a, sizeof(a));
data/openssh-ssh1-7.5p1/sftp-client.c:1222:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	local_fd = open(local_path,
data/openssh-ssh1-7.5p1/sftp-client.c:1585:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((local_fd = open(local_path, O_RDONLY, 0)) == -1) {
data/openssh-ssh1-7.5p1/sftp-common.c:219:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1];
data/openssh-ssh1-7.5p1/sftp-common.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 sbuf[FMT_SCALED_STRSIZE];
data/openssh-ssh1-7.5p1/sftp-glob.c:68: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.
	static char buf[sizeof(struct dirent) + MAXPATHLEN];
data/openssh-ssh1-7.5p1/sftp-server.c:243: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.
	static char ret[128];
data/openssh-ssh1-7.5p1/sftp-server.c:699:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(name, flags, mode);
data/openssh-ssh1-7.5p1/sftp-server.c:918:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[64];
data/openssh-ssh1-7.5p1/sftp-server.c:975:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[64];
data/openssh-ssh1-7.5p1/sftp-server.c:1053:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 pathname[PATH_MAX];
data/openssh-ssh1-7.5p1/sftp-server.c:1148:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 resolvedname[PATH_MAX];
data/openssh-ssh1-7.5p1/sftp-server.c:1236:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[PATH_MAX];
data/openssh-ssh1-7.5p1/sftp.c:972:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 s_used[FMT_SCALED_STRSIZE], s_avail[FMT_SCALED_STRSIZE];
data/openssh-ssh1-7.5p1/sftp.c:973:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 s_root[FMT_SCALED_STRSIZE], s_total[FMT_SCALED_STRSIZE];
data/openssh-ssh1-7.5p1/sftp.c:974:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 s_icapacity[16], s_dcapacity[16];
data/openssh-ssh1-7.5p1/sftp.c:1090: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.
	static char argvs[MAXARGLEN];
data/openssh-ssh1-7.5p1/sftp.c:1091: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.
	static char *argv[MAXARGS + 1];
data/openssh-ssh1-7.5p1/sftp.c:1431:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path_buf[PATH_MAX];
data/openssh-ssh1-7.5p1/sftp.c:1759:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *tmp, **list, argterm[3];
data/openssh-ssh1-7.5p1/sftp.c:1850:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *tmp, *tmp2, ins[8];
data/openssh-ssh1-7.5p1/sftp.c:1926:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ins + 1, tmp2 + i, clen);
data/openssh-ssh1-7.5p1/sftp.c:1988:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(line, lf->buffer, cursor);
data/openssh-ssh1-7.5p1/sftp.c:1996:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(line, lf->buffer, len);
data/openssh-ssh1-7.5p1/sftp.c:2041:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 cmd[2048];
data/openssh-ssh1-7.5p1/sftp.c:2352:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			    (infile = fopen(optarg, "r")) == NULL)
data/openssh-ssh1-7.5p1/smult_curve25519_ref.c:124:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void mainloop(unsigned int work[64],const unsigned char e[32])
data/openssh-ssh1-7.5p1/smult_curve25519_ref.c:252: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 e[32];
data/openssh-ssh1-7.5p1/ssh-add.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 msg[1024], *certpath = NULL;
data/openssh-ssh1-7.5p1/ssh-add.c:192:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	} else if ((fd = open(filename, O_RDONLY)) < 0) {
data/openssh-ssh1-7.5p1/ssh-add.c:413:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 prompt[100], *p1, *p2;
data/openssh-ssh1-7.5p1/ssh-add.c:586:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[PATH_MAX];
data/openssh-ssh1-7.5p1/ssh-agent.c:139: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 socket_name[PATH_MAX];
data/openssh-ssh1-7.5p1/ssh-agent.c:140: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 socket_dir[PATH_MAX];
data/openssh-ssh1-7.5p1/ssh-agent.c:1110:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/ssh-agent.c:1256:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 pidstrbuf[1 + 3 * sizeof pid];
data/openssh-ssh1-7.5p1/ssh-agent.c:1447:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
data/openssh-ssh1-7.5p1/ssh-dss.c:97:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*sigp, sigblob, SIGBLOB_LEN);
data/openssh-ssh1-7.5p1/ssh-dss.c:117:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*sigp, sshbuf_ptr(b), len);
data/openssh-ssh1-7.5p1/ssh-dss.c:155: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(sigblob, signature, signaturelen);
data/openssh-ssh1-7.5p1/ssh-ecdsa.c:97: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(*sigp, sshbuf_ptr(b), len);
data/openssh-ssh1-7.5p1/ssh-ed25519.c:78: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(*sigp, sshbuf_ptr(b), len);
data/openssh-ssh1-7.5p1/ssh-ed25519.c:141:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sm, sigblob, len);
data/openssh-ssh1-7.5p1/ssh-ed25519.c:142:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sm+len, data, datalen);
data/openssh-ssh1-7.5p1/ssh-keygen.c:109: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 identity_file[1024];
data/openssh-ssh1-7.5p1/ssh-keygen.c:183: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 hostname[NI_MAXHOST];
data/openssh-ssh1-7.5p1/ssh-keygen.c:233:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/openssh-ssh1-7.5p1/ssh-keygen.c:311:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 comment[61];
data/openssh-ssh1-7.5p1/ssh-keygen.c:596:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[1024];
data/openssh-ssh1-7.5p1/ssh-keygen.c:598:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 encoded[8096];
data/openssh-ssh1-7.5p1/ssh-keygen.c:601: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).
	if ((fp = fopen(identity_file, "r")) == NULL)
data/openssh-ssh1-7.5p1/ssh-keygen.c:646: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).
	if ((fp = fopen(identity_file, "r")) == NULL)
data/openssh-ssh1-7.5p1/ssh-keygen.c:692: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).
	if ((fp = fopen(identity_file, "r")) == NULL)
data/openssh-ssh1-7.5p1/ssh-keygen.c:924:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	} else if ((f = fopen(path, "r")) == NULL)
data/openssh-ssh1-7.5p1/ssh-keygen.c:1024:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 comment[1024];
data/openssh-ssh1-7.5p1/ssh-keygen.c:1068:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(identity_file, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/openssh-ssh1-7.5p1/ssh-keygen.c:1220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *cp, tmp[PATH_MAX], old[PATH_MAX];
data/openssh-ssh1-7.5p1/ssh-keygen.c:1249:13:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		if ((fd = mkstemp(tmp)) == -1)
data/openssh-ssh1-7.5p1/ssh-keygen.c:1431:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 new_comment[1024], *comment, *passphrase;
data/openssh-ssh1-7.5p1/ssh-keygen.c:1510:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(identity_file, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/openssh-ssh1-7.5p1/ssh-keygen.c:1621:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 valid[64], *otmp, *tmp, *cp, *out, *comment, **plist = NULL;
data/openssh-ssh1-7.5p1/ssh-keygen.c:1690:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(out, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
data/openssh-ssh1-7.5p1/ssh-keygen.c:1742:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[32], *fmt;
data/openssh-ssh1-7.5p1/ssh-keygen.c:1911:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 valid[64], *key_fp, *ca_fp;
data/openssh-ssh1-7.5p1/ssh-keygen.c:1961:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *cp, line[SSH_MAX_PUBKEY_BYTES];
data/openssh-ssh1-7.5p1/ssh-keygen.c:1975:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	} else if ((f = fopen(identity_file, "r")) == NULL)
data/openssh-ssh1-7.5p1/ssh-keygen.c:2016:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_RDONLY)) == -1)
data/openssh-ssh1-7.5p1/ssh-keygen.c:2034:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path, *cp, *ep, line[SSH_MAX_PUBKEY_BYTES];
data/openssh-ssh1-7.5p1/ssh-keygen.c:2044:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	} else if ((krl_spec = fopen(path, "r")) == NULL)
data/openssh-ssh1-7.5p1/ssh-keygen.c:2201:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(identity_file, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
data/openssh-ssh1-7.5p1/ssh-keygen.c:2289:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 dotsshdir[PATH_MAX], comment[1024], *passphrase1, *passphrase2;
data/openssh-ssh1-7.5p1/ssh-keygen.c:2300:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out_file[PATH_MAX], *checkpoint = NULL;
data/openssh-ssh1-7.5p1/ssh-keygen.c:2624:15:  [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 *out = fopen(out_file, "w");
data/openssh-ssh1-7.5p1/ssh-keygen.c:2641:15:  [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 *out = fopen(out_file, "a");
data/openssh-ssh1-7.5p1/ssh-keygen.c:2644:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((in = fopen(identity_file, "r")) == NULL) {
data/openssh-ssh1-7.5p1/ssh-keygen.c:2703:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 yesno[3];
data/openssh-ssh1-7.5p1/ssh-keygen.c:2768:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(identity_file, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1)
data/openssh-ssh1-7.5p1/ssh-keyscan.c:272:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *myproposal[PROPOSAL_MAX] = { KEX_CLIENT };
data/openssh-ssh1-7.5p1/ssh-keyscan.c:368:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/ssh-keyscan.c:485:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256], *cp;
data/openssh-ssh1-7.5p1/ssh-keyscan.c:486:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 remote_version[sizeof buf];
data/openssh-ssh1-7.5p1/ssh-keyscan.c:632:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(r, read_wait, read_wait_nfdset * sizeof(fd_mask));
data/openssh-ssh1-7.5p1/ssh-keyscan.c:633:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(e, read_wait, read_wait_nfdset * sizeof(fd_mask));
data/openssh-ssh1-7.5p1/ssh-keyscan.c:702:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *tname, *cp, line[NI_MAXHOST];
data/openssh-ssh1-7.5p1/ssh-keyscan.c:821:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		else if ((fp = fopen(argv[j], "r")) == NULL)
data/openssh-ssh1-7.5p1/ssh-keysign.c:190:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(_PATH_DEVNULL, O_RDWR)) < 2)
data/openssh-ssh1-7.5p1/ssh-keysign.c:198:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	key_fd[i++] = open(_PATH_HOST_DSA_KEY_FILE, O_RDONLY);
data/openssh-ssh1-7.5p1/ssh-keysign.c:199:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	key_fd[i++] = open(_PATH_HOST_ECDSA_KEY_FILE, O_RDONLY);
data/openssh-ssh1-7.5p1/ssh-keysign.c:200:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	key_fd[i++] = open(_PATH_HOST_ED25519_KEY_FILE, O_RDONLY);
data/openssh-ssh1-7.5p1/ssh-keysign.c:201:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	key_fd[i++] = open(_PATH_HOST_RSA_KEY_FILE, O_RDONLY);
data/openssh-ssh1-7.5p1/ssh-pkcs11-client.c:133:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(to, signature, slen);
data/openssh-ssh1-7.5p1/ssh-pkcs11-helper.c:279:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4*4096];
data/openssh-ssh1-7.5p1/ssh-pkcs11.c:327: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(k11->keyid, keyid_attrib->pValue, k11->keyid_len);
data/openssh-ssh1-7.5p1/ssh-rsa.c:148: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(*sigp, sshbuf_ptr(b), len);
data/openssh-ssh1-7.5p1/ssh.c:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/ssh.c:281:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 addr[NI_MAXHOST], strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/ssh.c:374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *cp, *fullhost, newname[NI_MAXHOST];
data/openssh-ssh1-7.5p1/ssh.c:463:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[PATH_MAX];
data/openssh-ssh1-7.5p1/ssh.c:515:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, *cp, *line, *argv0, buf[PATH_MAX], *host_arg, *logfile;
data/openssh-ssh1-7.5p1/ssh.c:516:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 thishost[NI_MAXHOST], shorthost[NI_MAXHOST], portstr[NI_MAXSERV];
data/openssh-ssh1-7.5p1/ssh.c:517:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 cname[NI_MAXHOST], uidstr[32], *conn_hash_hex;
data/openssh-ssh1-7.5p1/ssh.c:1097:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char port_s[8];
data/openssh-ssh1-7.5p1/ssh.c:1499:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
data/openssh-ssh1-7.5p1/ssh.c:1916:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		in = open(_PATH_DEVNULL, O_RDONLY);
data/openssh-ssh1-7.5p1/ssh.c:2041:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *filename, *cp, thishost[NI_MAXHOST];
data/openssh-ssh1-7.5p1/ssh.c:2047:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *identity_files[SSH_MAX_IDENTITY_FILES];
data/openssh-ssh1-7.5p1/ssh.c:2049:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *certificate_files[SSH_MAX_CERTIFICATE_FILES];
data/openssh-ssh1-7.5p1/ssh.c:2170:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(options.identity_files, identity_files, sizeof(identity_files));
data/openssh-ssh1-7.5p1/ssh.c:2171:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(options.identity_keys, identity_keys, sizeof(identity_keys));
data/openssh-ssh1-7.5p1/ssh.c:2174:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(options.certificate_files,
data/openssh-ssh1-7.5p1/ssh.c:2176:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(options.certificates, certificates, sizeof(certificates));
data/openssh-ssh1-7.5p1/ssh_api.c:75: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 *myproposal[PROPOSAL_MAX] = { KEX_CLIENT };
data/openssh-ssh1-7.5p1/ssh_api.c:319:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256], remote_version[256];	/* must be same size! */
data/openssh-ssh1-7.5p1/ssh_api.c:386:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];
data/openssh-ssh1-7.5p1/ssh_api.h:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *proposal[PROPOSAL_MAX];
data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c:40: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(v, p, len);
data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c:115:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*valp, val, len);
data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c:207:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*valp, p, len);
data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c:244: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(p, v, len);
data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c:361: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(d + 4, v, len);
data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c:426: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(d + 4 + prepend, s, len);
data/openssh-ssh1-7.5p1/sshbuf-getput-crypto.c:185: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(dp + 2, d, len_bytes);
data/openssh-ssh1-7.5p1/sshbuf-misc.c:157: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(r, s, l);
data/openssh-ssh1-7.5p1/sshconnect.c:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *tmp, *ret, strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/sshconnect.c:126:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *argv[10];
data/openssh-ssh1-7.5p1/sshconnect.c:206:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *argv[10];
data/openssh-ssh1-7.5p1/sshconnect.c:432:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ntop[NI_MAXHOST], strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/sshconnect.c:471: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(hostaddr, ai->ai_addr, ai->ai_addrlen);
data/openssh-ssh1-7.5p1/sshconnect.c:548:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256], remote_version[256];	/* must be same size! */
data/openssh-ssh1-7.5p1/sshconnect.c:749:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ntop[NI_MAXHOST];
data/openssh-ssh1-7.5p1/sshconnect.c:816:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 hostline[1000], *hostp, *fp, *ra;
data/openssh-ssh1-7.5p1/sshconnect.c:817:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 msg[1024];
data/openssh-ssh1-7.5p1/sshconnect.c:960:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 msg1[1024], msg2[1024];
data/openssh-ssh1-7.5p1/sshconnect.c:1250:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 valid[64], *fp = NULL, *cafp = NULL;
data/openssh-ssh1-7.5p1/sshconnect1.c:227:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[300], *passphrase = NULL, *comment, *authfile;
data/openssh-ssh1-7.5p1/sshconnect1.c:417:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 prompt[1024];
data/openssh-ssh1-7.5p1/sshconnect1.c:775:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 prompt[80];
data/openssh-ssh1-7.5p1/sshconnect2.c:160:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *myproposal[PROPOSAL_MAX] = { KEX_CLIENT };
data/openssh-ssh1-7.5p1/sshconnect2.c:897:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 prompt[150];
data/openssh-ssh1-7.5p1/sshconnect2.c:937:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 prompt[150];
data/openssh-ssh1-7.5p1/sshconnect2.c:1233:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 prompt[300], *passphrase, *comment;
data/openssh-ssh1-7.5p1/sshd.c:366:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[256];			/* Must not be larger than remote_version. */
data/openssh-ssh1-7.5p1/sshd.c:367:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 remote_version[256];	/* Must be at least as big as buf. */
data/openssh-ssh1-7.5p1/sshd.c:1003:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
data/openssh-ssh1-7.5p1/sshd.c:1022:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ntop[NI_MAXHOST], strport[NI_MAXSERV];
data/openssh-ssh1-7.5p1/sshd.c:1329:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 text[sizeof(opts) * 3 + 1];
data/openssh-ssh1-7.5p1/sshd.c:1869: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).
			FILE *f = fopen(options.pid_file, "w");
data/openssh-ssh1-7.5p1/sshd.c:1932:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
data/openssh-ssh1-7.5p1/sshd.c:2151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *myproposal[PROPOSAL_MAX] = { KEX_SERVER };
data/openssh-ssh1-7.5p1/sshkey.c:221: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(ret + rlen, kt->name, nlen + 1);
data/openssh-ssh1-7.5p1/sshkey.c:855: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(*blobp, sshbuf_ptr(b), len);
data/openssh-ssh1-7.5p1/sshkey.c:968:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *retval, hex[5];
data/openssh-ssh1-7.5p1/sshkey.c:1073:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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	*retval, *p, title[FLDSIZE_X], hash[FLDSIZE_X];
data/openssh-ssh1-7.5p1/sshkey.c:1132:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, title, tlen);
data/openssh-ssh1-7.5p1/sshkey.c:1152:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, hash, hlen);
data/openssh-ssh1-7.5p1/sshkey.c:1868:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(n->ed25519_pk, k->ed25519_pk, ED25519_PK_SZ);
data/openssh-ssh1-7.5p1/sshkey.c:2429:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pk->ed25519_pk, k->ed25519_pk, ED25519_PK_SZ);
data/openssh-ssh1-7.5p1/sshkey.c:2662:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 from[32], to[32], ret[64];
data/openssh-ssh1-7.5p1/sshkey.c:3673:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cp + 2, cp, 2);
data/openssh-ssh1-7.5p1/sshlogin.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *time_string, hostname[HOST_NAME_MAX+1] = "", buf[512];
data/openssh-ssh1-7.5p1/sshpty.c:107:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(tty, O_RDWR|O_NOCTTY);
data/openssh-ssh1-7.5p1/sshpty.c:120:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/tty", O_RDWR);
data/openssh-ssh1-7.5p1/sshpty.c:129:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(_PATH_TTY, O_RDWR | O_NOCTTY);
data/openssh-ssh1-7.5p1/sshpty.c:142:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(_PATH_TTY, O_RDWR | O_NOCTTY);
data/openssh-ssh1-7.5p1/sshpty.c:157:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(tty, O_RDWR);
data/openssh-ssh1-7.5p1/sshpty.c:164:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(_PATH_TTY, O_WRONLY);
data/openssh-ssh1-7.5p1/sshpty.c:249:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(_PATH_TTY, O_RDWR | O_NOCTTY)) >= 0) {
data/openssh-ssh1-7.5p1/umac.c:197: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,out_buf,AES_BLOCK_LEN);
data/openssh-ssh1-7.5p1/umac.c:204: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,out_buf,nbytes);
data/openssh-ssh1-7.5p1/umac.c:618: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(hc->data+j, buf, i);
data/openssh-ssh1-7.5p1/umac.c:633: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(hc->data + j, buf, nbytes);
data/openssh-ssh1-7.5p1/umac.c:972: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(ahc->poly_key_8+i, buf+24*i, 8);
data/openssh-ssh1-7.5p1/umac.c:982:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(ahc->ip_keys+4*i, buf+(8*i+4)*sizeof(UINT64),
data/openssh-ssh1-7.5p1/utf8.c:169: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(dp, sp, len);
data/openssh-ssh1-7.5p1/addrmatch.c:465:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(cp) > INET6_ADDRSTRLEN + 3) {
data/openssh-ssh1-7.5p1/addrmatch.c:472: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).
		if (strspn(cp, VALID_CIDR_CHARS) != strlen(cp)) {
data/openssh-ssh1-7.5p1/atomicio.c:62:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	pfd.events = f == read ? POLLIN : POLLOUT;
data/openssh-ssh1-7.5p1/auth-krb5.c:183:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(authctxt->krb5_ticket_file) + 6;
data/openssh-ssh1-7.5p1/auth-krb5.c:252:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	old_umask = umask(0177);
data/openssh-ssh1-7.5p1/auth-krb5.c:253:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tmpfd = mkstemp(ccname + strlen("FILE:"));
data/openssh-ssh1-7.5p1/auth-krb5.c:255:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(old_umask);
data/openssh-ssh1-7.5p1/auth-options.c:98: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).
	size_t opt_len = strlen(opt);
data/openssh-ssh1-7.5p1/auth-options.c:174:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp(opts, cp, strlen(cp)) == 0) {
data/openssh-ssh1-7.5p1/auth-options.c:175:12:  [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).
			opts += strlen(cp);
data/openssh-ssh1-7.5p1/auth-options.c:177: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).
			forced_command = xmalloc(strlen(opts) + 1);
data/openssh-ssh1-7.5p1/auth-options.c:204:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp(opts, cp, strlen(cp)) == 0) {
data/openssh-ssh1-7.5p1/auth-options.c:205:12:  [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).
			opts += strlen(cp);
data/openssh-ssh1-7.5p1/auth-options.c:207: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).
			authorized_principals = xmalloc(strlen(opts) + 1);
data/openssh-ssh1-7.5p1/auth-options.c:235:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp(opts, cp, strlen(cp)) == 0) {
data/openssh-ssh1-7.5p1/auth-options.c:239:12:  [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).
			opts += strlen(cp);
data/openssh-ssh1-7.5p1/auth-options.c:240: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).
			s = xmalloc(strlen(opts) + 1);
data/openssh-ssh1-7.5p1/auth-options.c:277:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp(opts, cp, strlen(cp)) == 0) {
data/openssh-ssh1-7.5p1/auth-options.c:281: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).
			char *patterns = xmalloc(strlen(opts) + 1);
data/openssh-ssh1-7.5p1/auth-options.c:283:12:  [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).
			opts += strlen(cp);
data/openssh-ssh1-7.5p1/auth-options.c:332:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp(opts, cp, strlen(cp)) == 0) {
data/openssh-ssh1-7.5p1/auth-options.c:335: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).
			char *patterns = xmalloc(strlen(opts) + 1);
data/openssh-ssh1-7.5p1/auth-options.c:337:12:  [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).
			opts += strlen(cp);
data/openssh-ssh1-7.5p1/auth-options.c:362: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).
			if (host == NULL || strlen(host) >= NI_MAXHOST) {
data/openssh-ssh1-7.5p1/auth-options.c:387:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp(opts, cp, strlen(cp)) == 0) {
data/openssh-ssh1-7.5p1/auth-options.c:389:12:  [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).
			opts += strlen(cp);
data/openssh-ssh1-7.5p1/auth-options.c:390: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).
			tun = xmalloc(strlen(opts) + 1);
data/openssh-ssh1-7.5p1/auth-pam.c:580: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).
			len = strlen(PAM_MSG_MEMBER(msg, i, msg));
data/openssh-ssh1-7.5p1/auth-pam.c:740: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).
		mlen = strlen(msg);
data/openssh-ssh1-7.5p1/auth-pam.c:772:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (**prompts != NULL && strlen(**prompts) != 0) {
data/openssh-ssh1-7.5p1/auth-pam.c:787: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).
				    strlen(**prompts));
data/openssh-ssh1-7.5p1/auth-pam.c:831: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).
	size_t i, l = wire_password != NULL ? strlen(wire_password) : 0;
data/openssh-ssh1-7.5p1/auth-pam.c:1103:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name) + strlen(value) + 2;
data/openssh-ssh1-7.5p1/auth-pam.c:1103: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).
	len = strlen(name) + strlen(value) + 2;
data/openssh-ssh1-7.5p1/auth-pam.c:1173: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).
			len = strlen(PAM_MSG_MEMBER(msg, i, msg));
data/openssh-ssh1-7.5p1/auth-passwd.c:92:6:  [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) > MAX_PASSWORD_LEN)
data/openssh-ssh1-7.5p1/auth-passwd.c:161: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).
		buffer_append(&loginmsg, buf, strlen(buf));
data/openssh-ssh1-7.5p1/auth-passwd.c:168: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).
		buffer_append(&loginmsg, buf, strlen(buf));
data/openssh-ssh1-7.5p1/auth-rhosts.c:106:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf,
data/openssh-ssh1-7.5p1/auth-shadow.c:77: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).
		buffer_append(&loginmsg, buf, strlen(buf));
data/openssh-ssh1-7.5p1/auth-shadow.c:137: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).
		buffer_append(&loginmsg, buf, strlen(buf));
data/openssh-ssh1-7.5p1/auth.c:145:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(LOCKED_PASSWD_PREFIX)) == 0)
data/openssh-ssh1-7.5p1/auth2-chall.c:123:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(devices[i]->name));
data/openssh-ssh1-7.5p1/auth2-chall.c:321: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).
		explicit_bzero(response[i], strlen(response[i]));
data/openssh-ssh1-7.5p1/auth2-hostbased.c:178: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 (((len = strlen(chost)) > 0) && chost[len - 1] == '.') {
data/openssh-ssh1-7.5p1/auth2-pubkey.c:288: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).
		arg = argv[argc++] = xcalloc(1, strlen(s + i) + 1);
data/openssh-ssh1-7.5p1/auth2-pubkey.c:582: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).
		ep = cp + strlen(cp) - 1;
data/openssh-ssh1-7.5p1/auth2.c:124:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = atomicio(read, fd, banner, len);
data/openssh-ssh1-7.5p1/auth2.c:431:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(authmethods[i]->name));
data/openssh-ssh1-7.5p1/auth2.c:546: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).
	size_t l = strlen(method);
data/openssh-ssh1-7.5p1/auth2.c:557:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(submethod);
data/openssh-ssh1-7.5p1/auth2.c:578: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).
	size_t l = strlen(method);
data/openssh-ssh1-7.5p1/auth2.c:586:12:  [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).
		p += 1 + strlen(submethod); /* include colon */
data/openssh-ssh1-7.5p1/authfd.c:144:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio(read, sock, buf, 4) != 4)
data/openssh-ssh1-7.5p1/authfd.c:158:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (atomicio(read, sock, buf, l) != l)
data/openssh-ssh1-7.5p1/authfile.c:123:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) {
data/openssh-ssh1-7.5p1/channels.c:701: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).
	buffer_append(&buffer, buf, strlen(buf));
data/openssh-ssh1-7.5p1/channels.c:735:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			buffer_append(&buffer, buf, strlen(buf));
data/openssh-ssh1-7.5p1/channels.c:1013: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).
	if (proto_len != strlen(x11_saved_proto) ||
data/openssh-ssh1-7.5p1/channels.c:1170:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(p);
data/openssh-ssh1-7.5p1/channels.c:1187: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).
		len = strlen(p);
data/openssh-ssh1-7.5p1/channels.c:1736:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(c->rfd, buf, sizeof(buf));
data/openssh-ssh1-7.5p1/channels.c:1898:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(c->efd, buf, sizeof(buf));
data/openssh-ssh1-7.5p1/channels.c:1962:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(c->rfd, buf, MINIMUM(rlen, CHAN_RBUF));
data/openssh-ssh1-7.5p1/channels.c:3204:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(host) >= NI_MAXHOST) {
data/openssh-ssh1-7.5p1/channels.c:3343:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(fwd->connect_path) > sizeof(sunaddr.sun_path)) {
data/openssh-ssh1-7.5p1/channels.c:3355:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(fwd->connect_host) >= NI_MAXHOST) {
data/openssh-ssh1-7.5p1/channels.c:3376:6:  [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(fwd->listen_path) > sizeof(sunaddr.sun_path)) {
data/openssh-ssh1-7.5p1/channels.c:3384:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	omask = umask(fwd_opts->streamlocal_bind_mask);
data/openssh-ssh1-7.5p1/channels.c:3387:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(omask);
data/openssh-ssh1-7.5p1/channels.c:4050:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(name) > sizeof(sunaddr->sun_path)) {
data/openssh-ssh1-7.5p1/channels.c:4601:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	u_int data_len = (u_int) strlen(data) / 2;
data/openssh-ssh1-7.5p1/cipher.c:156: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).
		nlen = strlen(c->name);
data/openssh-ssh1-7.5p1/cipher.c:550: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).
	    passphrase, strlen(passphrase),
data/openssh-ssh1-7.5p1/clientloop.c:293: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).
	dlen = strlen(display);
data/openssh-ssh1-7.5p1/clientloop.c:413:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			    sscanf(line, "%*s %511s %511s", proto, data) == 2)
data/openssh-ssh1-7.5p1/clientloop.c:487:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fileno(stdin), buf, 1);
data/openssh-ssh1-7.5p1/clientloop.c:707: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).
		buffer_append(&stderr_buffer, buf, strlen(buf));
data/openssh-ssh1-7.5p1/clientloop.c:767:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(connection_in, buf, sizeof(buf));
data/openssh-ssh1-7.5p1/clientloop.c:776: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).
			buffer_append(&stderr_buffer, buf, strlen(buf));
data/openssh-ssh1-7.5p1/clientloop.c:796: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).
			buffer_append(&stderr_buffer, buf, strlen(buf));
data/openssh-ssh1-7.5p1/clientloop.c:845:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(errmsg));
data/openssh-ssh1-7.5p1/clientloop.c:1063:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buffer_append(b, string, strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1075: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).
		buffer_append(b, string, strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1082:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buffer_append(b, string, strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1130: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).
				buffer_append(berr, string, strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1159: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).
					    strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1165: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).
				buffer_append(berr, string, strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1178: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).
					    strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1206: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).
					    strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1218: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).
				buffer_append(berr, string, strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1238: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).
				buffer_append(berr, string, strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1282: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).
				buffer_append(berr, string, strlen(string));
data/openssh-ssh1-7.5p1/clientloop.c:1284: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).
				buffer_append(berr, s, strlen(s));
data/openssh-ssh1-7.5p1/clientloop.c:1337:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fileno(stdin), buf, sizeof(buf));
data/openssh-ssh1-7.5p1/clientloop.c:1350: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).
				buffer_append(&stderr_buffer, buf, strlen(buf));
data/openssh-ssh1-7.5p1/clientloop.c:1406: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).
				buffer_append(&stderr_buffer, buf, strlen(buf));
data/openssh-ssh1-7.5p1/clientloop.c:1757: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).
		buffer_append(&stderr_buffer, buf, strlen(buf));
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass1.c:134:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(passphrase, '\0', strlen(passphrase));
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass2.c:135:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(GRAB_WAIT * 1000);
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass2.c:148:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(GRAB_WAIT * 1000);
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass2.c:171: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).
		local = g_locale_from_utf8(passphrase, strlen(passphrase),
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass2.c:175: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).
			memset(local, '\0', strlen(local));
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass2.c:183:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(passphrase, '\b', strlen(passphrase));
data/openssh-ssh1-7.5p1/contrib/gnome-ssh-askpass2.c:185:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(passphrase, '\0', strlen(passphrase));
data/openssh-ssh1-7.5p1/entropy.c:91:6:  [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(socket_path) >= sizeof(addr_un->sun_path))
data/openssh-ssh1-7.5p1/entropy.c:108:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(socket_path) + 1;
data/openssh-ssh1-7.5p1/entropy.c:148:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio(read, fd, buf, len) != (size_t)len) {
data/openssh-ssh1-7.5p1/fe25519.c:16:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
static crypto_uint32 equal(crypto_uint32 a,crypto_uint32 b) /* 16-bit inputs */
data/openssh-ssh1-7.5p1/fe25519.c:87:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  crypto_uint32 m = equal(r->v[31],127);
data/openssh-ssh1-7.5p1/fe25519.c:89:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    m &= equal(r->v[i],255);
data/openssh-ssh1-7.5p1/fe25519.c:123:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  r = equal(t.v[0],0);
data/openssh-ssh1-7.5p1/fe25519.c:125:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    r &= equal(t.v[i],0);
data/openssh-ssh1-7.5p1/ge25519.c:152:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
static unsigned char equal(signed char b,signed char c)
data/openssh-ssh1-7.5p1/ge25519.c:175:55:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  cmov_aff(t, &ge25519_base_multiples_affine[5*pos+1],equal(b,1) | equal(b,-1));
data/openssh-ssh1-7.5p1/ge25519.c:175:68:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  cmov_aff(t, &ge25519_base_multiples_affine[5*pos+1],equal(b,1) | equal(b,-1));
data/openssh-ssh1-7.5p1/ge25519.c:176:55:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  cmov_aff(t, &ge25519_base_multiples_affine[5*pos+2],equal(b,2) | equal(b,-2));
data/openssh-ssh1-7.5p1/ge25519.c:176:68:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  cmov_aff(t, &ge25519_base_multiples_affine[5*pos+2],equal(b,2) | equal(b,-2));
data/openssh-ssh1-7.5p1/ge25519.c:177:55:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  cmov_aff(t, &ge25519_base_multiples_affine[5*pos+3],equal(b,3) | equal(b,-3));
data/openssh-ssh1-7.5p1/ge25519.c:177:68:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  cmov_aff(t, &ge25519_base_multiples_affine[5*pos+3],equal(b,3) | equal(b,-3));
data/openssh-ssh1-7.5p1/ge25519.c:178:55:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  cmov_aff(t, &ge25519_base_multiples_affine[5*pos+4],equal(b,-4));
data/openssh-ssh1-7.5p1/gss-genr.c:220: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).
	gssbuf.length = strlen(gssbuf.value);
data/openssh-ssh1-7.5p1/gss-serv-krb5.c:186:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(client->store.filename) + 6;
data/openssh-ssh1-7.5p1/hmac.c:190: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).
	hmac_test(key1, sizeof(key1), data1, strlen(data1), dig1, sizeof(dig1));
data/openssh-ssh1-7.5p1/hmac.c:191: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).
	hmac_test(key2, strlen(key2), data2, strlen(data2), dig2, sizeof(dig2));
data/openssh-ssh1-7.5p1/hmac.c:191: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).
	hmac_test(key2, strlen(key2), data2, strlen(data2), dig2, sizeof(dig2));
data/openssh-ssh1-7.5p1/hostfile.c:142: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).
	    ssh_hmac_update(ctx, host, strlen(host)) < 0 ||
data/openssh-ssh1-7.5p1/hostfile.c:546:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	omask = umask(077);
data/openssh-ssh1-7.5p1/hostfile.c:649:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(omask);
data/openssh-ssh1-7.5p1/hostfile.c:660: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).
	size_t nlen = strlen(names);
data/openssh-ssh1-7.5p1/hostfile.c:667: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).
		return nlen == strlen(hashed_host) &&
data/openssh-ssh1-7.5p1/kex.c:127: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).
		nlen = strlen(k->name);
data/openssh-ssh1-7.5p1/kex.c:188:6:  [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(b) > 1024*1024)
data/openssh-ssh1-7.5p1/kex.c:190:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(a) + strlen(b) + 2;
data/openssh-ssh1-7.5p1/kex.c:190: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).
	len = strlen(a) + strlen(b) + 2;
data/openssh-ssh1-7.5p1/log.c:459: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).
		(void)write(log_stderr_fd, msgbuf, strlen(msgbuf));
data/openssh-ssh1-7.5p1/loginrec.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).
		    (unsigned long)strlen(pw->pw_name),
data/openssh-ssh1-7.5p1/loginrec.c:566: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).
	if ((strncmp(src, "/dev/", 5) == 0) || (dstsize < (strlen(src) + 5)))
data/openssh-ssh1-7.5p1/loginrec.c:611:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(src);
data/openssh-ssh1-7.5p1/loginrec.c:618:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dst, src, (size_t)dstsize);
data/openssh-ssh1-7.5p1/loginrec.c:696:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ut->ut_name, li->username,
data/openssh-ssh1-7.5p1/loginrec.c:699:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ut->ut_host, li->hostname,
data/openssh-ssh1-7.5p1/loginrec.c:769:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(utx->ut_user, li->username,
data/openssh-ssh1-7.5p1/loginrec.c:781:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(utx->ut_host, li->hostname,
data/openssh-ssh1-7.5p1/loginrec.c:804: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).
	utx->ut_syslen = MIN(strlen(li->hostname), sizeof(utx->ut_host));
data/openssh-ssh1-7.5p1/loginrec.c:892:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) &&
data/openssh-ssh1-7.5p1/loginrec.c:1211:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) {
data/openssh-ssh1-7.5p1/loginrec.c:1376:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (atomicio(read, fd, &utx, sizeof(utx)) != sizeof(utx)) {
data/openssh-ssh1-7.5p1/loginrec.c:1597:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = atomicio(read, fd, &last, sizeof(last));
data/openssh-ssh1-7.5p1/loginrec.c:1693:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ut.ut_user, username, sizeof(ut.ut_user));
data/openssh-ssh1-7.5p1/loginrec.c:1702:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ut.ut_host, hostname, sizeof(ut.ut_host));
data/openssh-ssh1-7.5p1/mac.c:103: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).
		nlen = strlen(m->name);
data/openssh-ssh1-7.5p1/match.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).
	u_int i, subi, len = strlen(pattern);
data/openssh-ssh1-7.5p1/match.c:282: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).
					    strlen(c) : (u_int)(cp - c);
data/openssh-ssh1-7.5p1/match.c:290:11:  [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).
		*next = strlen(c);
data/openssh-ssh1-7.5p1/match.c:303: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).
	size_t len = strlen(proposal) + 1;
data/openssh-ssh1-7.5p1/md5crypt.c:47: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).
	return (strncmp(salt, magic, strlen(magic)) == 0);
data/openssh-ssh1-7.5p1/md5crypt.c:64: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).
	if(strncmp(sp, magic, strlen(magic)) == 0)
data/openssh-ssh1-7.5p1/md5crypt.c:65: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).
		sp += strlen(magic);
data/openssh-ssh1-7.5p1/md5crypt.c:83: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).
	MD5_Update(&ctx, pw, strlen(pw));
data/openssh-ssh1-7.5p1/md5crypt.c:86: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).
	MD5_Update(&ctx, magic, strlen(magic));
data/openssh-ssh1-7.5p1/md5crypt.c:93: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).
	MD5_Update(&ctx1, pw, strlen(pw));
data/openssh-ssh1-7.5p1/md5crypt.c:95: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).
	MD5_Update(&ctx1, pw, strlen(pw));
data/openssh-ssh1-7.5p1/md5crypt.c:98:11:  [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).
	for(pl = strlen(pw); pl > 0; pl -= 16)
data/openssh-ssh1-7.5p1/md5crypt.c:105: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).
	for (j = 0, i = strlen(pw); i != 0; i >>= 1)
data/openssh-ssh1-7.5p1/md5crypt.c:124: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).
			MD5_Update(&ctx1, pw, strlen(pw));
data/openssh-ssh1-7.5p1/md5crypt.c:132: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).
			MD5_Update(&ctx1, pw, strlen(pw));
data/openssh-ssh1-7.5p1/md5crypt.c:137: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).
			MD5_Update(&ctx1, pw, strlen(pw));
data/openssh-ssh1-7.5p1/md5crypt.c:142: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).
	p = passwd + strlen(passwd);
data/openssh-ssh1-7.5p1/misc.c:183: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).
		memmove(*s, *s + 1, strlen(*s)); /* move nul too */
data/openssh-ssh1-7.5p1/misc.c:408: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).
		s = *cp + strlen(*cp); /* skip to end (see first case below) */
data/openssh-ssh1-7.5p1/misc.c:431:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (*host == '[' && host[strlen(host) - 1] == ']') {
data/openssh-ssh1-7.5p1/misc.c:432:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		host[strlen(host) - 1] = '\0';
data/openssh-ssh1-7.5p1/misc.c:613:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(pw->pw_dir);
data/openssh-ssh1-7.5p1/misc.c:705:11:  [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 (buf[strlen(buf) - 1] == '\n' || feof(f)) {
data/openssh-ssh1-7.5p1/misc.c:711:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while (fgetc(f) != '\n' && !feof(f))
data/openssh-ssh1-7.5p1/moduli.c:630:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(lp) < 14 || *lp == '!' || *lp == '#') {
data/openssh-ssh1-7.5p1/monitor.c:426:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio(read, pmonitor->m_log_recvfd,
data/openssh-ssh1-7.5p1/monitor.c:444:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio(read, pmonitor->m_log_recvfd,
data/openssh-ssh1-7.5p1/monitor.c:813:6:  [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(authctxt->style) == 0) {
data/openssh-ssh1-7.5p1/monitor.c:835: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).
	explicit_bzero(passwd, strlen(passwd));
data/openssh-ssh1-7.5p1/monitor.c:1317: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 (((len = strlen(p)) > 0) && p[len - 1] == '.')
data/openssh-ssh1-7.5p1/monitor_wrap.c:154:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) {
data/openssh-ssh1-7.5p1/monitor_wrap.c:164:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio(read, sock, buffer_ptr(m), msg_len) != msg_len)
data/openssh-ssh1-7.5p1/monitor_wrap.c:323:6:  [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(banner) == 0) {
data/openssh-ssh1-7.5p1/monitor_wrap.c:524:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buffer_append(&loginmsg, msg, strlen(msg));
data/openssh-ssh1-7.5p1/monitor_wrap.c:590:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buffer_append(&loginmsg, msg, strlen(msg));
data/openssh-ssh1-7.5p1/msg.c:74:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) {
data/openssh-ssh1-7.5p1/msg.c:89:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio(read, fd, p, msg_len) != msg_len) {
data/openssh-ssh1-7.5p1/mux.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).
	buffer_append(&cctx->cmd, cmd, strlen(cmd));
data/openssh-ssh1-7.5p1/mux.c:1288:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	old_umask = umask(0177);
data/openssh-ssh1-7.5p1/mux.c:1291:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(old_umask);
data/openssh-ssh1-7.5p1/mux.c:1461:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, p + have, need - have);
data/openssh-ssh1-7.5p1/openbsd-compat/arc4random.c:93:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, s + o, len - o);
data/openssh-ssh1-7.5p1/openbsd-compat/basename.c:41: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).
	endp = path + strlen(path) - 1;
data/openssh-ssh1-7.5p1/openbsd-compat/blowfish.c:685: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).
	blf_key(&c, (u_int8_t *) key2, strlen(key2));
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-closefrom.c:35: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).
# define NAMLEN(dirent) strlen((dirent)->d_name)
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:697:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (read(fd, (char *)&utmp, sizeof(utmp)) == sizeof(utmp)) {
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:700:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(ut->ut_tpath, utmp.ut_tpath, sizeof(utmp.ut_tpath));
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:701:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(ut->ut_host, utmp.ut_host, sizeof(utmp.ut_host));
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:702:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(ut->ut_name, utmp.ut_name, sizeof(utmp.ut_name));
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-cray.c:801:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ut->ut_tpath, cray_tmpdir, TPATHSIZ);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.c:170:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
int usleep(unsigned int useconds)
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.c:248:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str) + 1;
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-misc.h:82:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
int usleep(unsigned int useconds);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:182: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 num_minors = strlen(ptyminors);
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-openpty.c:183:17:  [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 num_ptys = strlen(ptymajors) * num_minors;
data/openssh-ssh1-7.5p1/openbsd-compat/bsd-snprintf.c:426:12:  [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).
					max = strlen(strvalue);
data/openssh-ssh1-7.5p1/openbsd-compat/dirname.c:43: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).
	endp = path + strlen(path) - 1;
data/openssh-ssh1-7.5p1/openbsd-compat/getopt_long.c:193: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).
		current_argv_len = strlen(current_argv);
data/openssh-ssh1-7.5p1/openbsd-compat/getopt_long.c:201:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(long_options[i].name) == current_argv_len) {
data/openssh-ssh1-7.5p1/openbsd-compat/inet_ntop.c:182: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).
			tp += strlen(tp);
data/openssh-ssh1-7.5p1/openbsd-compat/mktemp.c:56:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(path);
data/openssh-ssh1-7.5p1/openbsd-compat/port-aix.c:80: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).
	len = sizeof("LOGNAME= NAME= ") + (2 * strlen(pw->pw_name));
data/openssh-ssh1-7.5p1/openbsd-compat/port-aix.c:160:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += strlen(p) + 1;
data/openssh-ssh1-7.5p1/openbsd-compat/port-aix.c:204: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).
			buffer_append(ctxt->loginmsg, msg, strlen(msg));
data/openssh-ssh1-7.5p1/openbsd-compat/port-aix.c:262:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buffer_append(loginmsg, msg, strlen(msg));
data/openssh-ssh1-7.5p1/openbsd-compat/port-linux.c:207:11:  [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).
	newlen = strlen(oldctx) + strlen(newname) + 1;
data/openssh-ssh1-7.5p1/openbsd-compat/port-linux.c:207: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).
	newlen = strlen(oldctx) + strlen(newname) + 1;
data/openssh-ssh1-7.5p1/openbsd-compat/readpassphrase.c:137: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).
		(void)write(output, prompt, strlen(prompt));
data/openssh-ssh1-7.5p1/openbsd-compat/readpassphrase.c:140:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nr = read(input, &ch, 1)) == 1 && ch != '\n' && ch != '\r') {
data/openssh-ssh1-7.5p1/openbsd-compat/realpath.c:101: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).
		resolved_len = strlen(resolved);
data/openssh-ssh1-7.5p1/openbsd-compat/regress/closefromtest.c:54:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fds[i], buf, sizeof(buf)) == -1)
data/openssh-ssh1-7.5p1/openbsd-compat/setenv.c:147:12:  [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).
	l_value = strlen(value);
data/openssh-ssh1-7.5p1/openbsd-compat/setenv.c:153:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(C) >= l_value) {	/* old larger; copy over */
data/openssh-ssh1-7.5p1/openbsd-compat/setproctitle.c:100: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).
			lastargv = argv[i] + strlen(argv[i]);
data/openssh-ssh1-7.5p1/openbsd-compat/setproctitle.c:104: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).
			lastargv = envp[i] + strlen(envp[i]);
data/openssh-ssh1-7.5p1/openbsd-compat/setproctitle.c:157:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0);
data/openssh-ssh1-7.5p1/openbsd-compat/sha2.c:97:32:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
#error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
data/openssh-ssh1-7.5p1/openbsd-compat/strcasestr.c:56: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).
		len = strlen(find);
data/openssh-ssh1-7.5p1/openbsd-compat/strlcat.c:49:17:  [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(dlen + strlen(s));
data/openssh-ssh1-7.5p1/openbsd-compat/strptime.c:175:11:  [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(_ctloc(day[i]));
data/openssh-ssh1-7.5p1/openbsd-compat/strptime.c:180:11:  [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(_ctloc(abday[i]));
data/openssh-ssh1-7.5p1/openbsd-compat/strptime.c:199:11:  [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(_ctloc(mon[i]));
data/openssh-ssh1-7.5p1/openbsd-compat/strptime.c:204:11:  [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(_ctloc(abmon[i]));
data/openssh-ssh1-7.5p1/openbsd-compat/strptime.c:275: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).
			len = strlen(_ctloc(am_pm[0]));
data/openssh-ssh1-7.5p1/openbsd-compat/strptime.c:286: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).
			len = strlen(_ctloc(am_pm[1]));
data/openssh-ssh1-7.5p1/openbsd-compat/vis.c:222: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).
	buf = reallocarray(NULL, 4, strlen(src) + 1);
data/openssh-ssh1-7.5p1/openbsd-compat/xcrypt.c:89:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			explicit_bzero(passwd, strlen(passwd));
data/openssh-ssh1-7.5p1/packet.c:1474:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(state->connection_in, buf, sizeof(buf));
data/openssh-ssh1-7.5p1/progressmeter.c:178:17:  [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).
	snprintf(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/progressmeter.c:178: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).
	snprintf(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/progressmeter.c:182: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).
	format_size(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/progressmeter.c:182: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).
	format_size(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/progressmeter.c:187: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).
	format_rate(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/progressmeter.c:187: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).
	format_rate(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/progressmeter.c:213: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).
			snprintf(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/progressmeter.c:213: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).
			snprintf(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/progressmeter.c:216: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).
			snprintf(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/progressmeter.c:216: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).
			snprintf(buf + strlen(buf), win_size - strlen(buf),
data/openssh-ssh1-7.5p1/readconf.c:697: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).
	size_t i, l = strlen(name);
data/openssh-ssh1-7.5p1/readconf.c:850:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(line)) == 0)
data/openssh-ssh1-7.5p1/readconf.c:1758:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(line) == sizeof(line) - 1)
data/openssh-ssh1-7.5p1/readconf.c:2155: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).
			memmove(cp, cp + 1, strlen(cp + 1) + 1);
data/openssh-ssh1-7.5p1/readconf.c:2288:6:  [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(fwd->connect_host) >= NI_MAXHOST)
data/openssh-ssh1-7.5p1/readconf.c:2292:6:  [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(fwd->connect_path) >= PATH_MAX_SUN)
data/openssh-ssh1-7.5p1/readconf.c:2295:6:  [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(fwd->listen_host) >= NI_MAXHOST)
data/openssh-ssh1-7.5p1/readconf.c:2298:6:  [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(fwd->listen_path) >= PATH_MAX_SUN)
data/openssh-ssh1-7.5p1/readconf.c:2680: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).
		    strspn(o->jump_host, "1234567890.") == strlen(o->jump_host);
data/openssh-ssh1-7.5p1/readpass.c:86:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t r = read(p[0], buf + len, sizeof(buf) - 1 - len);
data/openssh-ssh1-7.5p1/regress/check-perm.c:43:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) >= sizeof(component))
data/openssh-ssh1-7.5p1/regress/modpipe.c:107:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = s = read(STDIN_FILENO, buf, sizeof(buf));
data/openssh-ssh1-7.5p1/regress/netcat.c:77: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).
	(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
data/openssh-ssh1-7.5p1/regress/netcat.c:276:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(optarg) > 1 && optarg[0] == '0' &&
data/openssh-ssh1-7.5p1/regress/netcat.c:976:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, buf + *bufpos, num);
data/openssh-ssh1-7.5p1/regress/netcat.c:1416:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (atomicio(read, fd, buf + off, 1) != 1)
data/openssh-ssh1-7.5p1/regress/netcat.c:1490:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cnt = atomicio(read, proxyfd, buf, 2);
data/openssh-ssh1-7.5p1/regress/netcat.c:1502:11:  [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).
			hlen = strlen(host);
data/openssh-ssh1-7.5p1/regress/netcat.c:1543:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cnt = atomicio(read, proxyfd, buf, 4);
data/openssh-ssh1-7.5p1/regress/netcat.c:1550:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			cnt = atomicio(read, proxyfd, buf + 4, 6);
data/openssh-ssh1-7.5p1/regress/netcat.c:1555:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			cnt = atomicio(read, proxyfd, buf + 4, 18);
data/openssh-ssh1-7.5p1/regress/netcat.c:1579:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cnt = atomicio(read, proxyfd, buf, 8);
data/openssh-ssh1-7.5p1/regress/netcat.c:1588: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).
		if (strcspn(host, "\r\n\t []:") != strlen(host))
data/openssh-ssh1-7.5p1/regress/netcat.c:1603:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		r = strlen(buf);
data/openssh-ssh1-7.5p1/regress/netcat.c:1616: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).
			    b64_ntop(buf, strlen(buf), resp,
data/openssh-ssh1-7.5p1/regress/netcat.c:1623:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			r = strlen(buf);
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:106: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).
	ASSERT_SIZE_T_EQ(strlen(p), ((8191 + 2) / 3) * 4);
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:144: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).
	ASSERT_SIZE_T_EQ(strlen(p), 0);
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:147: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).
	ASSERT_INT_EQ(sshbuf_put(p1, "quad1", strlen("quad1")), 0);
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:150: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).
	ASSERT_SIZE_T_EQ(strlen(p), strlen("quad1"));
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:150: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).
	ASSERT_SIZE_T_EQ(strlen(p), strlen("quad1"));
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:157: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).
	ASSERT_SIZE_T_EQ(strlen(p), strlen("quad1"));
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:157: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).
	ASSERT_SIZE_T_EQ(strlen(p), strlen("quad1"));
data/openssh-ssh1-7.5p1/regress/unittests/sshbuf/test_sshbuf_misc.c:161: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).
	ASSERT_INT_EQ(sshbuf_put(p1, "quad2", strlen("quad2")), 0);
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:208: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).
	atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/fuzz.c:211: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).
		atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:201: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).
	atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:331: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).
	fprintf(stderr, "%12s = %s (len %zu)\n", a1, aa1, strlen(aa1));
data/openssh-ssh1-7.5p1/regress/unittests/test_helper/test_helper.c:332: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).
	fprintf(stderr, "%12s = %s (len %zu)\n", a2, aa2, strlen(aa2));
data/openssh-ssh1-7.5p1/regress/unittests/utf8/tests.c:42: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).
		wantlen = strlen(wants);
data/openssh-ssh1-7.5p1/scp.c:589: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).
	(void) atomicio(vwrite, fd, buf, strlen(buf));
data/openssh-ssh1-7.5p1/scp.c:780: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).
		len = strlen(name);
data/openssh-ssh1-7.5p1/scp.c:826: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).
		(void) atomicio(vwrite, remout, buf, strlen(buf));
data/openssh-ssh1-7.5p1/scp.c:844:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if ((nr = atomicio(read, fd,
data/openssh-ssh1-7.5p1/scp.c:903: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).
	(void) atomicio(vwrite, remout, path, strlen(path));
data/openssh-ssh1-7.5p1/scp.c:913:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(name) + 1 + strlen(dp->d_name) >= sizeof(path) - 1) {
data/openssh-ssh1-7.5p1/scp.c:913: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).
		if (strlen(name) + 1 + strlen(dp->d_name) >= sizeof(path) - 1) {
data/openssh-ssh1-7.5p1/scp.c:950:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0);
data/openssh-ssh1-7.5p1/scp.c:952:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		(void) umask(mask);
data/openssh-ssh1-7.5p1/scp.c:966:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (atomicio(read, remin, cp, 1) != 1)
data/openssh-ssh1-7.5p1/scp.c:971:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (atomicio(read, remin, &ch, sizeof(ch)) != sizeof(ch))
data/openssh-ssh1-7.5p1/scp.c:984:17:  [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).
				    visbuf, strlen(visbuf));
data/openssh-ssh1-7.5p1/scp.c:1067:11:  [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).
			need = strlen(targ) + strlen(cp) + 250;
data/openssh-ssh1-7.5p1/scp.c:1067: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).
			need = strlen(targ) + strlen(cp) + 250;
data/openssh-ssh1-7.5p1/scp.c:1135:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				j = atomicio6(read, remin, cp, amt,
data/openssh-ssh1-7.5p1/scp.c:1230:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio(read, remin, &resp, sizeof(resp)) != sizeof(resp))
data/openssh-ssh1-7.5p1/scp.c:1243:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (atomicio(read, remin, &ch, sizeof(ch)) != sizeof(ch))
data/openssh-ssh1-7.5p1/scp.c:1253: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).
			    visbuf, strlen(visbuf));
data/openssh-ssh1-7.5p1/servconf.c:970:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(line)) == 0)
data/openssh-ssh1-7.5p1/servconf.c:1492: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).
		len = strlen(p) + 1;
data/openssh-ssh1-7.5p1/servconf.c:1494: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 += 1 + strlen(arg);
data/openssh-ssh1-7.5p1/servconf.c:1883:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(line) == sizeof(line) - 1)
data/openssh-ssh1-7.5p1/servconf.c:1894:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buffer_append(conf, cp, strlen(cp));
data/openssh-ssh1-7.5p1/serverloop.c:143:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (read(notify_pipe[0], &c, 1) != -1)
data/openssh-ssh1-7.5p1/serverloop.c:290:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(connection_in, buf, sizeof(buf));
data/openssh-ssh1-7.5p1/session.c:827:12:  [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(name);
data/openssh-ssh1-7.5p1/session.c:849: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).
	env[i] = xmalloc(strlen(name) + 1 + strlen(value) + 1);
data/openssh-ssh1-7.5p1/session.c:849: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).
	env[i] = xmalloc(strlen(name) + 1 + strlen(value) + 1);
data/openssh-ssh1-7.5p1/session.c:850: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).
	snprintf(env[i], strlen(name) + 1 + strlen(value) + 1, "%s=%s", name, value);
data/openssh-ssh1-7.5p1/session.c:850: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).
	snprintf(env[i], strlen(name) + 1 + strlen(value) + 1, "%s=%s", name, value);
data/openssh-ssh1-7.5p1/session.c:909:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name);
data/openssh-ssh1-7.5p1/session.c:946:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask((mode_t)mask);
data/openssh-ssh1-7.5p1/session.c:1284:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) >= sizeof(component))
data/openssh-ssh1-7.5p1/session.c:2576: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).
	if (utmp_size == 0 || strlen(remote) > utmp_size)
data/openssh-ssh1-7.5p1/sftp-client.c:141:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio6(read, conn->fd_in, p, 4,
data/openssh-ssh1-7.5p1/sftp-client.c:156:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (atomicio6(read, conn->fd_in, p, msg_len,
data/openssh-ssh1-7.5p1/sftp-client.c:693: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).
	send_string_request(conn, id, SSH2_FXP_REMOVE, path, strlen(path));
data/openssh-ssh1-7.5p1/sftp-client.c:707:6:  [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(path), a);
data/openssh-ssh1-7.5p1/sftp-client.c:723:6:  [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(path));
data/openssh-ssh1-7.5p1/sftp-client.c:741:12:  [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).
	    path, strlen(path));
data/openssh-ssh1-7.5p1/sftp-client.c:761:6:  [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(path));
data/openssh-ssh1-7.5p1/sftp-client.c:788:6:  [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(path), a);
data/openssh-ssh1-7.5p1/sftp-client.c:827:6:  [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(path));
data/openssh-ssh1-7.5p1/sftp-client.c:1027: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).
	send_string_request(conn, id, SSH2_FXP_READLINK, path, strlen(path));
data/openssh-ssh1-7.5p1/sftp-client.c:1675:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(local_fd, data, conn->transfer_buflen);
data/openssh-ssh1-7.5p1/sftp-client.c:1896: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).
	size_t len = strlen(p1) + strlen(p2) + 2;
data/openssh-ssh1-7.5p1/sftp-client.c:1896: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).
	size_t len = strlen(p1) + strlen(p2) + 2;
data/openssh-ssh1-7.5p1/sftp-client.c:1900: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).
	if (p1[0] != '\0' && p1[strlen(p1) - 1] != '/')
data/openssh-ssh1-7.5p1/sftp-common.c:246:17:  [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).
	ulen = MAXIMUM(strlen(user), 8);
data/openssh-ssh1-7.5p1/sftp-common.c:247:17:  [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).
	glen = MAXIMUM(strlen(group), 8);
data/openssh-ssh1-7.5p1/sftp-server.c:757:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(fd, buf, len);
data/openssh-ssh1-7.5p1/sftp-server.c:1577:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			(void)umask((mode_t)mask);
data/openssh-ssh1-7.5p1/sftp-server.c:1672:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(in, buf, sizeof buf);
data/openssh-ssh1-7.5p1/sftp.c:339: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).
		int len = strlen(_PATH_LS " ") + strlen(args) + 1;
data/openssh-ssh1-7.5p1/sftp.c:339: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).
		int len = strlen(_PATH_LS " ") + strlen(args) + 1;
data/openssh-ssh1-7.5p1/sftp.c:358:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(strip);
data/openssh-ssh1-7.5p1/sftp.c:595: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).
	size_t l = strlen(pathname);
data/openssh-ssh1-7.5p1/sftp.c:816: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).
				m = MAXIMUM(m, strlen(d[n]->filename));
data/openssh-ssh1-7.5p1/sftp.c:821:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		m += strlen(tmp);
data/openssh-ssh1-7.5p1/sftp.c:929: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).
			m = MAXIMUM(m, strlen(g.gl_pathv[i]));
data/openssh-ssh1-7.5p1/sftp.c:1095:6:  [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(arg) > sizeof(argvs) - 1) {
data/openssh-ssh1-7.5p1/sftp.c:1368: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).
		cp = cp + strlen(cmd) + strspn(cp, WHITESPACE);
data/openssh-ssh1-7.5p1/sftp.c:1573:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(n_arg);
data/openssh-ssh1-7.5p1/sftp.c:1691: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).
		m = MAXIMUM(m, strlen(list[y]));
data/openssh-ssh1-7.5p1/sftp.c:1705: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).
		llen = strlen(list[y]);
data/openssh-ssh1-7.5p1/sftp.c:1729: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).
		u_int y, matchlen = strlen(list[0]);
data/openssh-ssh1-7.5p1/sftp.c:1742: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).
		if (matchlen > strlen(word)) {
data/openssh-ssh1-7.5p1/sftp.c:1779:11:  [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).
	cmdlen = strlen(cmd);
data/openssh-ssh1-7.5p1/sftp.c:1801:12:  [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).
		tmplen = strlen(tmp);
data/openssh-ssh1-7.5p1/sftp.c:1802:12:  [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).
		cmdlen = strlen(cmd);
data/openssh-ssh1-7.5p1/sftp.c:1837:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncasecmp(cmd, cmds[i].c, strlen(cmds[i].c)))
data/openssh-ssh1-7.5p1/sftp.c:1904:11:  [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).
	tmplen = strlen(tmp);
data/openssh-ssh1-7.5p1/sftp.c:1905:12:  [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).
	filelen = strlen(file);
data/openssh-ssh1-7.5p1/sftp.c:1919: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).
		len = strlen(tmp2);
data/openssh-ssh1-7.5p1/sftp.c:2136: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(cmd) > 0 &&
data/openssh-ssh1-7.5p1/sftp.c:2137: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).
				    cmd[strlen(cmd) - 1] != '\n')
data/openssh-ssh1-7.5p1/ssh-add.c:102: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).
		explicit_bzero(pass, strlen(pass));
data/openssh-ssh1-7.5p1/ssh-add.c:425: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).
		explicit_bzero(p2, strlen(p2));
data/openssh-ssh1-7.5p1/ssh-add.c:437: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).
	explicit_bzero(p1, strlen(p1));
data/openssh-ssh1-7.5p1/ssh-agent.c:744:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(delay);
data/openssh-ssh1-7.5p1/ssh-agent.c:1166:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				len = read(sockets[i].fd, buf, sizeof(buf));
data/openssh-ssh1-7.5p1/ssh-agent.c:1337: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).
		if (shell != NULL && (len = strlen(shell)) > 2 &&
data/openssh-ssh1-7.5p1/ssh-agent.c:1388:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	prev_mask = umask(0177);
data/openssh-ssh1-7.5p1/ssh-agent.c:1395:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(prev_mask);
data/openssh-ssh1-7.5p1/ssh-keygen.c:293: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).
	explicit_bzero(pass, strlen(pass));
data/openssh-ssh1-7.5p1/ssh-keygen.c:572:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = fgetc(fp)) != EOF) {
data/openssh-ssh1-7.5p1/ssh-keygen.c:577:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(fp);
data/openssh-ssh1-7.5p1/ssh-keygen.c:624:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(encoded);
data/openssh-ssh1-7.5p1/ssh-keygen.c:1113: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).
	int has_wild = l->hosts && strcspn(l->hosts, "*?!") != strlen(l->hosts);
data/openssh-ssh1-7.5p1/ssh-keygen.c:1248:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(077);
data/openssh-ssh1-7.5p1/ssh-keygen.c:1341: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).
		explicit_bzero(old_passphrase, strlen(old_passphrase));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1365:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			explicit_bzero(passphrase1, strlen(passphrase1));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1366:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			explicit_bzero(passphrase2, strlen(passphrase2));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1373: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).
		explicit_bzero(passphrase2, strlen(passphrase2));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1382: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).
		explicit_bzero(passphrase1, strlen(passphrase1));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1389: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).
	explicit_bzero(passphrase1, strlen(passphrase1));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1459: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).
			explicit_bzero(passphrase, strlen(passphrase));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1470: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).
		explicit_bzero(passphrase, strlen(passphrase));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1485: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).
			explicit_bzero(passphrase, strlen(passphrase));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1497: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).
		explicit_bzero(passphrase, strlen(passphrase));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1503: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).
	explicit_bzero(passphrase, strlen(passphrase));
data/openssh-ssh1-7.5p1/ssh-keygen.c:1749: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).
	switch (strlen(s)) {
data/openssh-ssh1-7.5p1/ssh-keygen.c:2506:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(optarg) >= PATH_MAX)
data/openssh-ssh1-7.5p1/ssh-keygen.c:2729:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			explicit_bzero(passphrase1, strlen(passphrase1));
data/openssh-ssh1-7.5p1/ssh-keygen.c:2730:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			explicit_bzero(passphrase2, strlen(passphrase2));
data/openssh-ssh1-7.5p1/ssh-keygen.c:2737: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).
		explicit_bzero(passphrase2, strlen(passphrase2));
data/openssh-ssh1-7.5p1/ssh-keygen.c:2753: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).
		explicit_bzero(passphrase1, strlen(passphrase1));
data/openssh-ssh1-7.5p1/ssh-keygen.c:2758: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).
	explicit_bzero(passphrase1, strlen(passphrase1));
data/openssh-ssh1-7.5p1/ssh-keyscan.c:495:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    (n = atomicio(read, s, cp, 1)) == 1 && *cp != '\n') {
data/openssh-ssh1-7.5p1/ssh-keyscan.c:576:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = atomicio(read, s, c->c_data + c->c_off, c->c_len - c->c_off);
data/openssh-ssh1-7.5p1/ssh-keyscan.c:831:17:  [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).
				cp = line + strlen(line) - 1;
data/openssh-ssh1-7.5p1/ssh-keysign.c:138:6:  [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(host) != len - 1)
data/openssh-ssh1-7.5p1/ssh-pkcs11-client.c:70:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((len = atomicio(read, fd, buf, 4)) != 4) {
data/openssh-ssh1-7.5p1/ssh-pkcs11-client.c:83:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (atomicio(read, fd, buf, l) != l) {
data/openssh-ssh1-7.5p1/ssh-pkcs11-helper.c:334:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(in, buf, sizeof buf);
data/openssh-ssh1-7.5p1/ssh-pkcs11.c:273: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).
		    (pin != NULL) ? strlen(pin) : 0);
data/openssh-ssh1-7.5p1/ssh-pkcs11.c:275: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).
			explicit_bzero(pin, strlen(pin));
data/openssh-ssh1-7.5p1/ssh-pkcs11.c:377:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (pin && login_required && !strlen(pin)) {
data/openssh-ssh1-7.5p1/ssh-pkcs11.c:389: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).
		    (u_char *)pin, strlen(pin));
data/openssh-ssh1-7.5p1/ssh-rsa.c:97:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (alg_ident == NULL || strlen(alg_ident) == 0)
data/openssh-ssh1-7.5p1/ssh.c:404:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((*hostp)[strlen(*hostp) - 1] == '.') {
data/openssh-ssh1-7.5p1/ssh.c:439:12:  [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).
		fullhost[strlen(fullhost) - 1] = '\0';
data/openssh-ssh1-7.5p1/ssh.c:591:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(022);
data/openssh-ssh1-7.5p1/ssh.c:810: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).
			else if (strlen(optarg) == 1)
data/openssh-ssh1-7.5p1/ssh.c:991: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).
			buffer_append(&command, av[i], strlen(av[i]));
data/openssh-ssh1-7.5p1/ssh.c:1189: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).
	    ssh_digest_update(md, thishost, strlen(thishost)) < 0 ||
data/openssh-ssh1-7.5p1/ssh.c:1190: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).
	    ssh_digest_update(md, host, strlen(host)) < 0 ||
data/openssh-ssh1-7.5p1/ssh.c:1191: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).
	    ssh_digest_update(md, portstr, strlen(portstr)) < 0 ||
data/openssh-ssh1-7.5p1/ssh.c:1192: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).
	    ssh_digest_update(md, options.user, strlen(options.user)) < 0 ||
data/openssh-ssh1-7.5p1/ssh.c:2178: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).
	explicit_bzero(pwname, strlen(pwname));
data/openssh-ssh1-7.5p1/ssh.c:2180: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).
	explicit_bzero(pwdir, strlen(pwdir));
data/openssh-ssh1-7.5p1/ssh_api.c:349:7:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			   mismatch, strlen(mismatch))) != 0)
data/openssh-ssh1-7.5p1/ssh_api.c:349:17:  [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).
			   mismatch, strlen(mismatch))) != 0)
data/openssh-ssh1-7.5p1/ssh_api.c:349:24:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			   mismatch, strlen(mismatch))) != 0)
data/openssh-ssh1-7.5p1/ssh_api.c:390: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 ((r = sshbuf_put(ssh_packet_get_output(ssh), buf, strlen(buf))) != 0)
data/openssh-ssh1-7.5p1/ssh_api.c:500:11:  [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).
	maxlen = strlen(avail) + 1;
data/openssh-ssh1-7.5p1/sshbuf-getput-basic.c:368: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).
	return sshbuf_put_string(buf, (u_char *)v, v == NULL ? 0 : strlen(v));
data/openssh-ssh1-7.5p1/sshbuf-misc.c:116: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).
	size_t plen = strlen(b64);
data/openssh-ssh1-7.5p1/sshconnect.c:535:6:  [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(client_version_string)) != strlen(client_version_string))
data/openssh-ssh1-7.5p1/sshconnect.c:535: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).
	    strlen(client_version_string)) != strlen(client_version_string))
data/openssh-ssh1-7.5p1/sshconnect.c:549:34:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	int remote_major, remote_minor, mismatch;
data/openssh-ssh1-7.5p1/sshconnect.c:594:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = atomicio(read, connection_in, &buf[i], 1);
data/openssh-ssh1-7.5p1/sshconnect.c:670:6:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (mismatch)
data/openssh-ssh1-7.5p1/sshconnect.c:1187: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).
			len = strlen(msg);
data/openssh-ssh1-7.5p1/sshconnect.c:1413:17:  [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 = ROUNDUP(strlen(password) + 1, 32);
data/openssh-ssh1-7.5p1/sshconnect1.c:300: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).
		explicit_bzero(passphrase, strlen(passphrase));
data/openssh-ssh1-7.5p1/sshconnect1.c:455: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).
		explicit_bzero(response, strlen(response));
data/openssh-ssh1-7.5p1/sshconnect1.c:488: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).
		explicit_bzero(password, strlen(password));
data/openssh-ssh1-7.5p1/sshconnect2.c:121:11:  [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).
	maxlen = strlen(avail) + 1;
data/openssh-ssh1-7.5p1/sshconnect2.c:917:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	explicit_bzero(password, strlen(password));
data/openssh-ssh1-7.5p1/sshconnect2.c:949:6:  [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(info) > 0)
data/openssh-ssh1-7.5p1/sshconnect2.c:963:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	explicit_bzero(password, strlen(password));
data/openssh-ssh1-7.5p1/sshconnect2.c:980: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).
			explicit_bzero(password, strlen(password));
data/openssh-ssh1-7.5p1/sshconnect2.c:985: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).
		explicit_bzero(retype, strlen(retype));
data/openssh-ssh1-7.5p1/sshconnect2.c:989:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	explicit_bzero(password, strlen(password));
data/openssh-ssh1-7.5p1/sshconnect2.c:1049: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).
	size_t len = strlen(id->filename), plen = strlen(private_id->filename);
data/openssh-ssh1-7.5p1/sshconnect2.c:1049: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).
	size_t len = strlen(id->filename), plen = strlen(private_id->filename);
data/openssh-ssh1-7.5p1/sshconnect2.c:1055: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).
		slen = strlen(suffixes[i]);
data/openssh-ssh1-7.5p1/sshconnect2.c:1285: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).
			explicit_bzero(passphrase, strlen(passphrase));
data/openssh-ssh1-7.5p1/sshconnect2.c:1573:6:  [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(name) > 0)
data/openssh-ssh1-7.5p1/sshconnect2.c:1575:6:  [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(inst) > 0)
data/openssh-ssh1-7.5p1/sshconnect2.c:1599: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).
		explicit_bzero(response, strlen(response));
data/openssh-ssh1-7.5p1/sshconnect2.c:1921: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).
	if (authlist == NULL || strlen(authlist) == 0)
data/openssh-ssh1-7.5p1/sshconnect2.c:1966: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).
			buffer_append(&b, method->name, strlen(method->name));
data/openssh-ssh1-7.5p1/sshd.c:376:6:  [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(server_version_string))
data/openssh-ssh1-7.5p1/sshd.c:377: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).
	    != strlen(server_version_string)) {
data/openssh-ssh1-7.5p1/sshd.c:386:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (atomicio(read, sock_in, &buf[i], 1) != 1) {
data/openssh-ssh1-7.5p1/sshd.c:415: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).
		(void) atomicio(vwrite, sock_out, s, strlen(s));
data/openssh-ssh1-7.5p1/sshd.c:457: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).
		(void) atomicio(vwrite, sock_out, s, strlen(s));
data/openssh-ssh1-7.5p1/sshd.c:714: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).
			buffer_append(&b, p, strlen(p));
data/openssh-ssh1-7.5p1/sshd.c:719: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).
				buffer_append(&b, p, strlen(p));
data/openssh-ssh1-7.5p1/sshd.c:735: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).
			buffer_append(&b, p, strlen(p));
data/openssh-ssh1-7.5p1/sshd.c:1174:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
					usleep(100 * 1000);
data/openssh-ssh1-7.5p1/sshd.c:1649:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(privsep_pw->pw_passwd));
data/openssh-ssh1-7.5p1/sshd.c:1820:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	new_umask = umask(0077) | 0022;
data/openssh-ssh1-7.5p1/sshd.c:1821:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void) umask(new_umask);
data/openssh-ssh1-7.5p1/sshkey.c:215: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).
		nlen = strlen(kt->name);
data/openssh-ssh1-7.5p1/sshkey.c:944: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).
	size_t plen = strlen(alg) + 1;
data/openssh-ssh1-7.5p1/sshkey.c:969: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).
	size_t i, rlen = dgst_raw_len * 3 + strlen(alg) + 2;
data/openssh-ssh1-7.5p1/sshkey.c:1078: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).
	size_t	 len = strlen(augmentation_string) - 1;
data/openssh-ssh1-7.5p1/sshkey.c:1121: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).
	tlen = (r <= 0) ? 0 : strlen(title);
data/openssh-ssh1-7.5p1/sshkey.c:1125: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).
	hlen = (r <= 0) ? 0 : strlen(hash);
data/openssh-ssh1-7.5p1/sshkey.c:1324: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).
			ep = cp + strlen(cp);
data/openssh-ssh1-7.5p1/sshkey.c:3285:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (passphrase == NULL || !strlen(passphrase)) {
data/openssh-ssh1-7.5p1/sshkey.c:3315:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (bcrypt_pbkdf(passphrase, strlen(passphrase),
data/openssh-ssh1-7.5p1/sshkey.c:3382: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).
	for (i = 0; i < strlen(b64); i++) {
data/openssh-ssh1-7.5p1/sshkey.c:3412: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).
		explicit_bzero(b64, strlen(b64));
data/openssh-ssh1-7.5p1/sshkey.c:3506:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((passphrase == NULL || strlen(passphrase) == 0) &&
data/openssh-ssh1-7.5p1/sshkey.c:3545:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (bcrypt_pbkdf(passphrase, strlen(passphrase), salt, slen,
data/openssh-ssh1-7.5p1/sshkey.c:3748: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).
	int blen, len = strlen(_passphrase);
data/openssh-ssh1-7.5p1/sshlogin.c:100: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).
		buffer_append(&loginmsg, time_string, strlen(time_string));
data/openssh-ssh1-7.5p1/sshlogin.c:116: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).
		buffer_append(&loginmsg, buf, strlen(buf));
data/openssh-ssh1-7.5p1/utf8.c:117:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sz = strlen(src) + 1;
data/openssh-ssh1-7.5p1/xmalloc.c:86:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str) + 1;

ANALYSIS SUMMARY:

Hits = 1383
Lines analyzed = 131402 in approximately 3.44 seconds (38247 lines/second)
Physical Source Lines of Code (SLOC) = 98296
Hits@level = [0] 768 [1] 484 [2] 689 [3]  77 [4] 117 [5]  16
Hits@level+ = [0+] 2151 [1+] 1383 [2+] 899 [3+] 210 [4+] 133 [5+]  16
Hits/KSLOC@level+ = [0+] 21.8829 [1+] 14.0697 [2+] 9.14585 [3+] 2.1364 [4+] 1.35306 [5+] 0.162774
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.