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/shishi-1.0.2/build-aux/snippet/_Noreturn.h Examining data/shishi-1.0.2/build-aux/snippet/c++defs.h Examining data/shishi-1.0.2/build-aux/snippet/arg-nonnull.h Examining data/shishi-1.0.2/build-aux/snippet/warn-on-use.h Examining data/shishi-1.0.2/extra/rsh-redone/rsh.c Examining data/shishi-1.0.2/extra/rsh-redone/rlogin.c Examining data/shishi-1.0.2/extra/pam_shishi/pam_shishi.c Examining data/shishi-1.0.2/lib/crypto-3des.c Examining data/shishi-1.0.2/lib/apreq.c Examining data/shishi-1.0.2/lib/asn1.h Examining data/shishi-1.0.2/lib/priv.c Examining data/shishi-1.0.2/lib/low-crypto.h Examining data/shishi-1.0.2/lib/authorize.c Examining data/shishi-1.0.2/lib/internal.h Examining data/shishi-1.0.2/lib/starttls.h Examining data/shishi-1.0.2/lib/keys.c Examining data/shishi-1.0.2/lib/kdcrep.c Examining data/shishi-1.0.2/lib/ap.c Examining data/shishi-1.0.2/lib/kdcreq.c Examining data/shishi-1.0.2/lib/utils.h Examining data/shishi-1.0.2/lib/password.c Examining data/shishi-1.0.2/lib/kerberos5.c Examining data/shishi-1.0.2/lib/safe.c Examining data/shishi-1.0.2/lib/starttls.c Examining data/shishi-1.0.2/lib/pki.c Examining data/shishi-1.0.2/lib/principal.c Examining data/shishi-1.0.2/lib/crypto-md.c Examining data/shishi-1.0.2/lib/error.c Examining data/shishi-1.0.2/lib/aprep.c Examining data/shishi-1.0.2/lib/crypto.h Examining data/shishi-1.0.2/lib/kdc.c Examining data/shishi-1.0.2/lib/encapreppart.c Examining data/shishi-1.0.2/lib/cfg.c Examining data/shishi-1.0.2/lib/tktccache.c Examining data/shishi-1.0.2/lib/tkts.c Examining data/shishi-1.0.2/lib/realm.c Examining data/shishi-1.0.2/lib/crypto-des.c Examining data/shishi-1.0.2/lib/krberror.c Examining data/shishi-1.0.2/lib/tgs.c Examining data/shishi-1.0.2/lib/low-crypto.c Examining data/shishi-1.0.2/lib/tkt.c Examining data/shishi-1.0.2/lib/crypto-ctx.c Examining data/shishi-1.0.2/lib/crypto-aes.c Examining data/shishi-1.0.2/lib/as.c Examining data/shishi-1.0.2/lib/version.c Examining data/shishi-1.0.2/lib/key.c Examining data/shishi-1.0.2/lib/netio.c Examining data/shishi-1.0.2/lib/crypto-null.c Examining data/shishi-1.0.2/lib/enckdcreppart.c Examining data/shishi-1.0.2/lib/cfg.h Examining data/shishi-1.0.2/lib/resolv.c Examining data/shishi-1.0.2/lib/ccache.c Examining data/shishi-1.0.2/lib/crypto.c Examining data/shishi-1.0.2/lib/gztime.c Examining data/shishi-1.0.2/lib/utils.c Examining data/shishi-1.0.2/lib/crypto-rc4.c Examining data/shishi-1.0.2/lib/init.c Examining data/shishi-1.0.2/lib/keytab.c Examining data/shishi-1.0.2/lib/encticketpart.c Examining data/shishi-1.0.2/lib/diskio.c Examining data/shishi-1.0.2/lib/hostkeys.c Examining data/shishi-1.0.2/lib/ccache.h Examining data/shishi-1.0.2/lib/authenticator.c Examining data/shishi-1.0.2/lib/shishi.h Examining data/shishi-1.0.2/lib/diskio.h Examining data/shishi-1.0.2/lib/ticket.c Examining data/shishi-1.0.2/lib/asn1.c Examining data/shishi-1.0.2/examples/client-cksum.c Examining data/shishi-1.0.2/examples/server.c Examining data/shishi-1.0.2/examples/client-priv.c Examining data/shishi-1.0.2/examples/client.c Examining data/shishi-1.0.2/examples/client-safe.c Examining data/shishi-1.0.2/tests/priv.c Examining data/shishi-1.0.2/tests/passwdpromptcb.c Examining data/shishi-1.0.2/tests/utils.h Examining data/shishi-1.0.2/tests/safe.c Examining data/shishi-1.0.2/tests/multiname.c Examining data/shishi-1.0.2/tests/low-crypto.c Examining data/shishi-1.0.2/tests/crypto-ctx.c Examining data/shishi-1.0.2/tests/ticketset.c Examining data/shishi-1.0.2/tests/key.c Examining data/shishi-1.0.2/tests/nonce.c Examining data/shishi-1.0.2/tests/ccache.c Examining data/shishi-1.0.2/tests/crypto.c Examining data/shishi-1.0.2/tests/gztime.c Examining data/shishi-1.0.2/tests/utils.c Examining data/shishi-1.0.2/tests/keytab.c Examining data/shishi-1.0.2/tests/authenticator.c Examining data/shishi-1.0.2/tests/rijndael.c Examining data/shishi-1.0.2/src/shishi_cmd.c Examining data/shishi-1.0.2/src/shishid_cmd.h Examining data/shishi-1.0.2/src/resume.c Examining data/shishi-1.0.2/src/ccache2shishi_cmd.h Examining data/shishi-1.0.2/src/shisa.c Examining data/shishi-1.0.2/src/shishi.c Examining data/shishi-1.0.2/src/starttls.c Examining data/shishi-1.0.2/src/server.c Examining data/shishi-1.0.2/src/kdc.c Examining data/shishi-1.0.2/src/shishid.c Examining data/shishi-1.0.2/src/kdc.h Examining data/shishi-1.0.2/src/keytab2shishi.c Examining data/shishi-1.0.2/src/shisa_cmd.h Examining data/shishi-1.0.2/src/ccache2shishi.c Examining data/shishi-1.0.2/src/shishi_cmd.h Examining data/shishi-1.0.2/src/shisa_cmd.c Examining data/shishi-1.0.2/src/keytab2shishi_cmd.c Examining data/shishi-1.0.2/src/ccache2shishi_cmd.c Examining data/shishi-1.0.2/src/keytab2shishi_cmd.h Examining data/shishi-1.0.2/src/shishid_cmd.c Examining data/shishi-1.0.2/src/gl/error.h Examining data/shishi-1.0.2/src/gl/version-etc.c Examining data/shishi-1.0.2/src/gl/msvc-nothrow.h Examining data/shishi-1.0.2/src/gl/error.c Examining data/shishi-1.0.2/src/gl/version-etc.h Examining data/shishi-1.0.2/src/gl/strerror.c Examining data/shishi-1.0.2/src/gl/progname.c Examining data/shishi-1.0.2/src/gl/getopt.c Examining data/shishi-1.0.2/src/gl/getopt_int.h Examining data/shishi-1.0.2/src/gl/stddef.in.h Examining data/shishi-1.0.2/src/gl/msvc-inval.h Examining data/shishi-1.0.2/src/gl/progname.h Examining data/shishi-1.0.2/src/gl/msvc-nothrow.c Examining data/shishi-1.0.2/src/gl/msvc-inval.c Examining data/shishi-1.0.2/src/gl/strerror-override.c Examining data/shishi-1.0.2/src/gl/strerror-override.h Examining data/shishi-1.0.2/src/gl/errno.in.h Examining data/shishi-1.0.2/src/gl/locale.in.h Examining data/shishi-1.0.2/src/gl/getopt1.c Examining data/shishi-1.0.2/src/gl/verify.h Examining data/shishi-1.0.2/src/gl/getopt.in.h Examining data/shishi-1.0.2/db/core.c Examining data/shishi-1.0.2/db/err.c Examining data/shishi-1.0.2/db/fileutil.h Examining data/shishi-1.0.2/db/fileutil.c Examining data/shishi-1.0.2/db/config.c Examining data/shishi-1.0.2/db/file.h Examining data/shishi-1.0.2/db/shisa.h Examining data/shishi-1.0.2/db/db.c Examining data/shishi-1.0.2/db/info.h Examining data/shishi-1.0.2/db/setup.c Examining data/shishi-1.0.2/db/gl/allocator.c Examining data/shishi-1.0.2/db/gl/allocator.h Examining data/shishi-1.0.2/db/gl/areadlink.c Examining data/shishi-1.0.2/db/gl/careadlinkat.c Examining data/shishi-1.0.2/db/gl/areadlink.h Examining data/shishi-1.0.2/db/gl/readlink.c Examining data/shishi-1.0.2/db/gl/careadlinkat.h Examining data/shishi-1.0.2/db/file.c Examining data/shishi-1.0.2/gl/stdarg.in.h Examining data/shishi-1.0.2/gl/vasprintf.c Examining data/shishi-1.0.2/gl/getpass.h Examining data/shishi-1.0.2/gl/setenv.c Examining data/shishi-1.0.2/gl/des.c Examining data/shishi-1.0.2/gl/alloca.in.h Examining data/shishi-1.0.2/gl/c-ctype.c Examining data/shishi-1.0.2/gl/sockets.c Examining data/shishi-1.0.2/gl/hmac-sha1.c Examining data/shishi-1.0.2/gl/printf-parse.c Examining data/shishi-1.0.2/gl/gai_strerror.c Examining data/shishi-1.0.2/gl/hmac-md5.c Examining data/shishi-1.0.2/gl/fstat.c Examining data/shishi-1.0.2/gl/wchar.in.h Examining data/shishi-1.0.2/gl/md5.c Examining data/shishi-1.0.2/gl/fd-hook.h Examining data/shishi-1.0.2/gl/shutdown.c Examining data/shishi-1.0.2/gl/ftell.c Examining data/shishi-1.0.2/gl/time_r.c Examining data/shishi-1.0.2/gl/stat.c Examining data/shishi-1.0.2/gl/xmalloc.c Examining data/shishi-1.0.2/gl/hmac.h Examining data/shishi-1.0.2/gl/realloc.c Examining data/shishi-1.0.2/gl/float.in.h Examining data/shishi-1.0.2/gl/recvfrom.c Examining data/shishi-1.0.2/gl/parse-datetime.h Examining data/shishi-1.0.2/gl/gettext.h Examining data/shishi-1.0.2/gl/strings.in.h Examining data/shishi-1.0.2/gl/sha1.c Examining data/shishi-1.0.2/gl/asprintf.c Examining data/shishi-1.0.2/gl/crc.c Examining data/shishi-1.0.2/gl/xstrndup.c Examining data/shishi-1.0.2/gl/socket.c Examining data/shishi-1.0.2/gl/msvc-nothrow.h Examining data/shishi-1.0.2/gl/close.c Examining data/shishi-1.0.2/gl/malloca.h Examining data/shishi-1.0.2/gl/gettimeofday.c Examining data/shishi-1.0.2/gl/getpeername.c Examining data/shishi-1.0.2/gl/arcfour.h Examining data/shishi-1.0.2/gl/getdtablesize.c Examining data/shishi-1.0.2/gl/strndup.c Examining data/shishi-1.0.2/gl/netinet_in.in.h Examining data/shishi-1.0.2/gl/stdlib.in.h Examining data/shishi-1.0.2/gl/md4.h Examining data/shishi-1.0.2/gl/read-file.c Examining data/shishi-1.0.2/gl/strnlen.c Examining data/shishi-1.0.2/gl/fcntl.in.h Examining data/shishi-1.0.2/gl/stdbool.in.h Examining data/shishi-1.0.2/gl/xgetdomainname.h Examining data/shishi-1.0.2/gl/dup2.c Examining data/shishi-1.0.2/gl/parse-datetime.c Examining data/shishi-1.0.2/gl/getaddrinfo.c Examining data/shishi-1.0.2/gl/vasnprintf.c Examining data/shishi-1.0.2/gl/asnprintf.c Examining data/shishi-1.0.2/gl/sys_socket.c Examining data/shishi-1.0.2/gl/gc.h Examining data/shishi-1.0.2/gl/xstrndup.h Examining data/shishi-1.0.2/gl/stdalign.in.h Examining data/shishi-1.0.2/gl/des.h Examining data/shishi-1.0.2/gl/printf-args.c Examining data/shishi-1.0.2/gl/stdint.in.h Examining data/shishi-1.0.2/gl/strerror.c Examining data/shishi-1.0.2/gl/rawmemchr.c Examining data/shishi-1.0.2/gl/gc-libgcrypt.c Examining data/shishi-1.0.2/gl/md5.h Examining data/shishi-1.0.2/gl/timespec.h Examining data/shishi-1.0.2/gl/strdup.c Examining data/shishi-1.0.2/gl/string.in.h Examining data/shishi-1.0.2/gl/md4.c Examining data/shishi-1.0.2/gl/sendto.c Examining data/shishi-1.0.2/gl/fseeko.c Examining data/shishi-1.0.2/gl/minmax.h Examining data/shishi-1.0.2/gl/memxor.h Examining data/shishi-1.0.2/gl/alloca.c Examining data/shishi-1.0.2/gl/xasprintf.c Examining data/shishi-1.0.2/gl/base64.h Examining data/shishi-1.0.2/gl/sys_time.in.h Examining data/shishi-1.0.2/gl/strcasecmp.c Examining data/shishi-1.0.2/gl/gethostname.c Examining data/shishi-1.0.2/gl/stddef.in.h Examining data/shishi-1.0.2/gl/sha1.h Examining data/shishi-1.0.2/gl/xgethostname.c Examining data/shishi-1.0.2/gl/getpass.c Examining data/shishi-1.0.2/gl/memchr.c Examining data/shishi-1.0.2/gl/msvc-inval.h Examining data/shishi-1.0.2/gl/dosname.h Examining data/shishi-1.0.2/gl/malloc.c Examining data/shishi-1.0.2/gl/gc-pbkdf2-sha1.c Examining data/shishi-1.0.2/gl/memxor.c Examining data/shishi-1.0.2/gl/xvasprintf.h Examining data/shishi-1.0.2/gl/unsetenv.c Examining data/shishi-1.0.2/gl/c-ctype.h Examining data/shishi-1.0.2/gl/sys_socket.in.h Examining data/shishi-1.0.2/gl/unistd.in.h Examining data/shishi-1.0.2/gl/crc.h Examining data/shishi-1.0.2/gl/unistd.c Examining data/shishi-1.0.2/gl/select.c Examining data/shishi-1.0.2/gl/base64.c Examining data/shishi-1.0.2/gl/arpa_inet.in.h Examining data/shishi-1.0.2/gl/fseek.c Examining data/shishi-1.0.2/gl/msvc-nothrow.c Examining data/shishi-1.0.2/gl/gc-gnulib.c Examining data/shishi-1.0.2/gl/sockets.h Examining data/shishi-1.0.2/gl/sys_uio.in.h Examining data/shishi-1.0.2/gl/gettime.c Examining data/shishi-1.0.2/gl/time.in.h Examining data/shishi-1.0.2/gl/timegm.c Examining data/shishi-1.0.2/gl/fcntl.c Examining data/shishi-1.0.2/gl/float.c Examining data/shishi-1.0.2/gl/connect.c Examining data/shishi-1.0.2/gl/bind.c Examining data/shishi-1.0.2/gl/lseek.c Examining data/shishi-1.0.2/gl/arcfour.c Examining data/shishi-1.0.2/gl/stdio.in.h Examining data/shishi-1.0.2/gl/getdelim.c Examining data/shishi-1.0.2/gl/netdb.in.h Examining data/shishi-1.0.2/gl/strchrnul.c Examining data/shishi-1.0.2/gl/getline.c Examining data/shishi-1.0.2/gl/sys_stat.in.h Examining data/shishi-1.0.2/gl/w32sock.h Examining data/shishi-1.0.2/gl/intprops.h Examining data/shishi-1.0.2/gl/vasnprintf.h Examining data/shishi-1.0.2/gl/printf-parse.h Examining data/shishi-1.0.2/gl/inet_ntop.c Examining data/shishi-1.0.2/gl/msvc-inval.c Examining data/shishi-1.0.2/gl/read-file.h Examining data/shishi-1.0.2/gl/getsubopt.c Examining data/shishi-1.0.2/gl/strtok_r.c Examining data/shishi-1.0.2/gl/getdomainname.c Examining data/shishi-1.0.2/gl/strerror-override.c Examining data/shishi-1.0.2/gl/xsize.c Examining data/shishi-1.0.2/gl/xgethostname.h Examining data/shishi-1.0.2/gl/strerror-override.h Examining data/shishi-1.0.2/gl/float+.h Examining data/shishi-1.0.2/gl/strverscmp.c Examining data/shishi-1.0.2/gl/mktime.c Examining data/shishi-1.0.2/gl/errno.in.h Examining data/shishi-1.0.2/gl/itold.c Examining data/shishi-1.0.2/gl/xalloc.h Examining data/shishi-1.0.2/gl/strncasecmp.c Examining data/shishi-1.0.2/gl/fd-hook.c Examining data/shishi-1.0.2/gl/xvasprintf.c Examining data/shishi-1.0.2/gl/xgetdomainname.c Examining data/shishi-1.0.2/gl/size_max.h Examining data/shishi-1.0.2/gl/xalloc-oversized.h Examining data/shishi-1.0.2/gl/pathmax.h Examining data/shishi-1.0.2/gl/ftello.c Examining data/shishi-1.0.2/gl/stdio-impl.h Examining data/shishi-1.0.2/gl/verify.h Examining data/shishi-1.0.2/gl/sys_types.in.h Examining data/shishi-1.0.2/gl/snprintf.c Examining data/shishi-1.0.2/gl/signal.in.h Examining data/shishi-1.0.2/gl/timespec.c Examining data/shishi-1.0.2/gl/mktime-internal.h Examining data/shishi-1.0.2/gl/sys_select.in.h Examining data/shishi-1.0.2/gl/malloca.c Examining data/shishi-1.0.2/gl/printf-args.h Examining data/shishi-1.0.2/gl/xsize.h FINAL RESULTS: data/shishi-1.0.2/db/gl/areadlink.c:43:10: [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. return readlink (filename, buffer, buffer_size); data/shishi-1.0.2/db/gl/readlink.c:32:1: [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. readlink (const char *name, char *buf _GL_UNUSED, data/shishi-1.0.2/db/gl/readlink.c:47:9: [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. # undef readlink data/shishi-1.0.2/db/gl/readlink.c:71:10: [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. return readlink (name, buf, bufsize); data/shishi-1.0.2/gl/stdio.in.h:701:8: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #undef gets data/shishi-1.0.2/gl/stdio.in.h:703:18: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); data/shishi-1.0.2/gl/sys_stat.in.h:432:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. # define lchmod chmod data/shishi-1.0.2/gl/sys_stat.in.h:436:34: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. _GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int, data/shishi-1.0.2/gl/unistd.in.h:243:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - " data/shishi-1.0.2/gl/unistd.in.h:257:11: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/shishi-1.0.2/gl/unistd.in.h:258:12: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # define chown rpl_chown data/shishi-1.0.2/gl/unistd.in.h:260:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) data/shishi-1.0.2/gl/unistd.in.h:262:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); data/shishi-1.0.2/gl/unistd.in.h:265:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) data/shishi-1.0.2/gl/unistd.in.h:268:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); data/shishi-1.0.2/gl/unistd.in.h:270:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIASWARN (chown); data/shishi-1.0.2/gl/unistd.in.h:272:9: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/shishi-1.0.2/gl/unistd.in.h:274:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " data/shishi-1.0.2/gl/unistd.in.h:1237:12: [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. # define readlink rpl_readlink data/shishi-1.0.2/gl/unistd.in.h:1239:19: [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. _GL_FUNCDECL_RPL (readlink, ssize_t, data/shishi-1.0.2/gl/unistd.in.h:1242:19: [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. _GL_CXXALIAS_RPL (readlink, ssize_t, data/shishi-1.0.2/gl/unistd.in.h:1246:19: [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. _GL_FUNCDECL_SYS (readlink, ssize_t, data/shishi-1.0.2/gl/unistd.in.h:1250:19: [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. _GL_CXXALIAS_SYS (readlink, ssize_t, data/shishi-1.0.2/gl/unistd.in.h:1253:19: [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. _GL_CXXALIASWARN (readlink); data/shishi-1.0.2/gl/unistd.in.h:1255:9: [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. # undef readlink data/shishi-1.0.2/gl/unistd.in.h:1257:18: [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. _GL_WARN_ON_USE (readlink, "readlink is unportable - " data/shishi-1.0.2/gl/getpass.c:84: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/shishi-1.0.2/gl/getpass.c:189: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/shishi-1.0.2/gl/getpass.h:26:7: [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. char *getpass (const char *prompt); data/shishi-1.0.2/gl/inet_ntop.c:140:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy (dst, tmp); data/shishi-1.0.2/gl/inet_ntop.c:255:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy (dst, tmp); data/shishi-1.0.2/gl/parse-datetime.c:1059:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/shishi-1.0.2/gl/parse-datetime.c:3456:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tz1buf, "XXX%s%ld:%02d", "-" + (time_zone < 0), data/shishi-1.0.2/gl/snprintf.c:37: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 size, const char *format, ...) data/shishi-1.0.2/gl/stat.c:117:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (fixed_name, name); data/shishi-1.0.2/gl/stdio.in.h:270:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define fprintf rpl_fprintf data/shishi-1.0.2/gl/stdio.in.h:274:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/shishi-1.0.2/gl/stdio.in.h:278:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/shishi-1.0.2/gl/stdio.in.h:282:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:284:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:286:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (fprintf); data/shishi-1.0.2/gl/stdio.in.h:290:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef fprintf data/shishi-1.0.2/gl/stdio.in.h:293:18: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " data/shishi-1.0.2/gl/stdio.in.h:397:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef fscanf data/shishi-1.0.2/gl/stdio.in.h:398:12: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define fscanf rpl_fscanf data/shishi-1.0.2/gl/stdio.in.h:400:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (fscanf, int, (FILE *stream, const char *format, ...) data/shishi-1.0.2/gl/stdio.in.h:403:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (fscanf, int, (FILE *stream, const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:405:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (fscanf, int, (FILE *stream, const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:407:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (fscanf); data/shishi-1.0.2/gl/stdio.in.h:796:11: [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. # undef popen data/shishi-1.0.2/gl/stdio.in.h:797:12: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # define popen rpl_popen data/shishi-1.0.2/gl/stdio.in.h:799:19: [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. _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) data/shishi-1.0.2/gl/stdio.in.h:801:19: [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. _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); data/shishi-1.0.2/gl/stdio.in.h:804:19: [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. _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) data/shishi-1.0.2/gl/stdio.in.h:807:19: [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. _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); data/shishi-1.0.2/gl/stdio.in.h:809:19: [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. _GL_CXXALIASWARN (popen); data/shishi-1.0.2/gl/stdio.in.h:811:9: [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. # undef popen data/shishi-1.0.2/gl/stdio.in.h:813:18: [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. _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " data/shishi-1.0.2/gl/stdio.in.h:824:13: [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. # define printf __printf__ data/shishi-1.0.2/gl/stdio.in.h:841:21: [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. _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:844:13: [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. # define printf rpl_printf data/shishi-1.0.2/gl/stdio.in.h:846:19: [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. _GL_FUNCDECL_RPL (printf, int, data/shishi-1.0.2/gl/stdio.in.h:850:19: [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. _GL_CXXALIAS_RPL (printf, int, (const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:854:19: [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. _GL_CXXALIAS_SYS (printf, int, (const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:856:19: [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. _GL_CXXALIASWARN (printf); data/shishi-1.0.2/gl/stdio.in.h:860:10: [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. # undef printf data/shishi-1.0.2/gl/stdio.in.h:863:18: [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. _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " data/shishi-1.0.2/gl/stdio.in.h:985:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/shishi-1.0.2/gl/stdio.in.h:987:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf __scanf__ data/shishi-1.0.2/gl/stdio.in.h:995:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:998:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/shishi-1.0.2/gl/stdio.in.h:999:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf rpl_scanf data/shishi-1.0.2/gl/stdio.in.h:1001:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...) data/shishi-1.0.2/gl/stdio.in.h:1004:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:1007:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:1009:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (scanf); data/shishi-1.0.2/gl/stdio.in.h:1015:12: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf rpl_snprintf data/shishi-1.0.2/gl/stdio.in.h:1017:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (snprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1021:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (snprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1025:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_SYS (snprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1030:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (snprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1033:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (snprintf); data/shishi-1.0.2/gl/stdio.in.h:1035:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/shishi-1.0.2/gl/stdio.in.h:1037:18: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " data/shishi-1.0.2/gl/stdio.in.h:1054:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define sprintf rpl_sprintf data/shishi-1.0.2/gl/stdio.in.h:1056:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...) data/shishi-1.0.2/gl/stdio.in.h:1059:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:1061:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...)); data/shishi-1.0.2/gl/stdio.in.h:1063:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (sprintf); data/shishi-1.0.2/gl/stdio.in.h:1065:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef sprintf data/shishi-1.0.2/gl/stdio.in.h:1067:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " data/shishi-1.0.2/gl/stdio.in.h:1173:12: [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. # define vfprintf rpl_vfprintf data/shishi-1.0.2/gl/stdio.in.h:1177:19: [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. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/shishi-1.0.2/gl/stdio.in.h:1181:19: [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. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/shishi-1.0.2/gl/stdio.in.h:1185:19: [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. _GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)); data/shishi-1.0.2/gl/stdio.in.h:1190:24: [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. _GL_CXXALIAS_SYS_CAST (vfprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1193:19: [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. _GL_CXXALIASWARN (vfprintf); data/shishi-1.0.2/gl/stdio.in.h:1197: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. # undef vfprintf data/shishi-1.0.2/gl/stdio.in.h:1200:18: [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. _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " data/shishi-1.0.2/gl/stdio.in.h:1208:11: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vfscanf data/shishi-1.0.2/gl/stdio.in.h:1209:12: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vfscanf rpl_vfscanf data/shishi-1.0.2/gl/stdio.in.h:1211:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vfscanf, int, data/shishi-1.0.2/gl/stdio.in.h:1215:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vfscanf, int, data/shishi-1.0.2/gl/stdio.in.h:1218:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vfscanf, int, data/shishi-1.0.2/gl/stdio.in.h:1221:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vfscanf); data/shishi-1.0.2/gl/stdio.in.h:1228:12: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define vprintf rpl_vprintf data/shishi-1.0.2/gl/stdio.in.h:1232:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/shishi-1.0.2/gl/stdio.in.h:1236:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/shishi-1.0.2/gl/stdio.in.h:1240:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args)); data/shishi-1.0.2/gl/stdio.in.h:1245:24: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args)); data/shishi-1.0.2/gl/stdio.in.h:1247:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (vprintf); data/shishi-1.0.2/gl/stdio.in.h:1251:10: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vprintf data/shishi-1.0.2/gl/stdio.in.h:1254:18: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " data/shishi-1.0.2/gl/stdio.in.h:1262:11: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vscanf data/shishi-1.0.2/gl/stdio.in.h:1263:12: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vscanf rpl_vscanf data/shishi-1.0.2/gl/stdio.in.h:1265:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vscanf, int, (const char *format, va_list args) data/shishi-1.0.2/gl/stdio.in.h:1268:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vscanf, int, (const char *format, va_list args)); data/shishi-1.0.2/gl/stdio.in.h:1270:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vscanf, int, (const char *format, va_list args)); data/shishi-1.0.2/gl/stdio.in.h:1272:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vscanf); data/shishi-1.0.2/gl/stdio.in.h:1278:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf rpl_vsnprintf data/shishi-1.0.2/gl/stdio.in.h:1280:19: [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. _GL_FUNCDECL_RPL (vsnprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1284:19: [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. _GL_CXXALIAS_RPL (vsnprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1288:19: [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. _GL_FUNCDECL_SYS (vsnprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1293:19: [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. _GL_CXXALIAS_SYS (vsnprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1296:19: [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. _GL_CXXALIASWARN (vsnprintf); data/shishi-1.0.2/gl/stdio.in.h:1298:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef vsnprintf data/shishi-1.0.2/gl/stdio.in.h:1300:18: [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. _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " data/shishi-1.0.2/gl/stdio.in.h:1308:12: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define vsprintf rpl_vsprintf data/shishi-1.0.2/gl/stdio.in.h:1310:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (vsprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1314:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (vsprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1320:24: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS_CAST (vsprintf, int, data/shishi-1.0.2/gl/stdio.in.h:1323:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (vsprintf); data/shishi-1.0.2/gl/stdio.in.h:1325:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef vsprintf data/shishi-1.0.2/gl/stdio.in.h:1327:18: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " data/shishi-1.0.2/gl/strerror.c:33:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/shishi-1.0.2/gl/strerror.c:59:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf, fmt, n); data/shishi-1.0.2/gl/unistd.in.h:232:18: [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. _GL_WARN_ON_USE (access, "the access function is a security risk - " data/shishi-1.0.2/gl/unistd.in.h:748:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_FUNCDECL_SYS (getlogin, char *, (void)); data/shishi-1.0.2/gl/unistd.in.h:750:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIAS_SYS (getlogin, char *, (void)); data/shishi-1.0.2/gl/unistd.in.h:751:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIASWARN (getlogin); data/shishi-1.0.2/gl/unistd.in.h:753:9: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. # undef getlogin data/shishi-1.0.2/gl/unistd.in.h:755:18: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " data/shishi-1.0.2/gl/vasnprintf.c:162:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/shishi-1.0.2/gl/vasnprintf.c:180:21: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF snprintf data/shishi-1.0.2/gl/vasnprintf.c:182:11: [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. # undef snprintf data/shishi-1.0.2/gl/vasnprintf.c:184:21: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF _snprintf data/shishi-1.0.2/gl/vasnprintf.c:188:20: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF snprintf data/shishi-1.0.2/gl/vasnprintf.c:190:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/shishi-1.0.2/gl/vasnprintf.c:194:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/shishi-1.0.2/gl/vasnprintf.c:4273:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/shishi-1.0.2/gl/vasnprintf.c:4281:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/shishi-1.0.2/gl/vasnprintf.c:4466:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/shishi-1.0.2/gl/vasnprintf.c:4474:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/shishi-1.0.2/gl/vasnprintf.c:4981:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/shishi-1.0.2/gl/vasnprintf.c:4984:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/shishi-1.0.2/gl/vasnprintf.c:4987:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/shishi-1.0.2/gl/wchar.in.h:595:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_FUNCDECL_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/shishi-1.0.2/gl/wchar.in.h:597:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIAS_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/shishi-1.0.2/gl/wchar.in.h:598:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIASWARN (wcscpy); data/shishi-1.0.2/gl/wchar.in.h:600:9: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. # undef wcscpy data/shishi-1.0.2/gl/wchar.in.h:602:18: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - " data/shishi-1.0.2/gl/wchar.in.h:664:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/shishi-1.0.2/gl/wchar.in.h:666:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/shishi-1.0.2/gl/wchar.in.h:667:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcscat); data/shishi-1.0.2/gl/wchar.in.h:669:9: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # undef wcscat data/shishi-1.0.2/gl/wchar.in.h:671:18: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcscat, "wcscat is unportable - " data/shishi-1.0.2/lib/diskio.c:897:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (armorbegin, HEADERBEG, "KEY"); data/shishi-1.0.2/lib/diskio.c:898:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (armorend, HEADEREND, "KEY"); data/shishi-1.0.2/lib/diskio.c:1006:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (fh, HEADERBEG "\n", "KEY"); data/shishi-1.0.2/lib/diskio.c:1038:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (fh, HEADEREND "\n", "KEY"); data/shishi-1.0.2/lib/password.c:114:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf (format, ap); data/shishi-1.0.2/lib/password.c:118:7: [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. p = getpass (""); data/shishi-1.0.2/lib/resolv.c:93:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (srv->name, host); data/shishi-1.0.2/lib/shishi.h:671: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/shishi-1.0.2/lib/shishi.h:675: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/shishi-1.0.2/lib/shishi.h:677: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/shishi-1.0.2/lib/shishi.h:679: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/shishi-1.0.2/lib/tkts.c:564:7: [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 (ngettext ("\n%d ticket found.\n", "\n%d tickets found.\n", data/shishi-1.0.2/src/ccache2shishi.c:138: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 (ngettext ("%d ticket written.\n", data/shishi-1.0.2/src/ccache2shishi_cmd.c:256:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result, s); data/shishi-1.0.2/src/gl/error.c:268:5: [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, message, args); data/shishi-1.0.2/src/gl/error.c:380:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, file_name != NULL ? "%s:%d: " : " ", data/shishi-1.0.2/src/gl/strerror.c:33:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/shishi-1.0.2/src/gl/strerror.c:59:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf, fmt, n); data/shishi-1.0.2/src/gl/version-etc.c:84:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stream, version_etc_copyright, _("(C)"), COPYRIGHT_YEAR); data/shishi-1.0.2/src/keytab2shishi.c:139:6: [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 (ngettext ("%d key written.\n", data/shishi-1.0.2/src/keytab2shishi.c:172:6: [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 (ngettext ("%d key written.\n", data/shishi-1.0.2/src/keytab2shishi_cmd.c:262:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result, s); data/shishi-1.0.2/src/shisa_cmd.c:393:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result, s); data/shishi-1.0.2/src/shishi.c:244:6: [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 (ngettext ("%d ticket removed.\n", data/shishi-1.0.2/src/shishi_cmd.c:435:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result, s); data/shishi-1.0.2/src/shishid_cmd.c:339:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result, s); data/shishi-1.0.2/tests/utils.c:44:3: [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, format, arg_ptr); data/shishi-1.0.2/tests/utils.c:58:5: [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 (stdout, format, arg_ptr); data/shishi-1.0.2/tests/utils.h:50: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/shishi-1.0.2/tests/utils.h:52: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/shishi-1.0.2/extra/rsh-redone/rlogin.c:573:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt (argc, argv, "+l:p:46vsx")) != -1) data/shishi-1.0.2/extra/rsh-redone/rlogin.c:575:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt (argc, argv, "+l:p:46v")) != -1) data/shishi-1.0.2/extra/rsh-redone/rlogin.c:741:10: [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") ? : "network"; data/shishi-1.0.2/extra/rsh-redone/rsh.c:495:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt (argc, argv, "+l:p:46vsx")) != -1) data/shishi-1.0.2/extra/rsh-redone/rsh.c:497:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt (argc, argv, "+l:p:46v")) != -1) data/shishi-1.0.2/gl/parse-datetime.c:3219: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. char *tz = getenv ("TZ"); data/shishi-1.0.2/gl/setenv.c:372:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *tmp = getenv (name); data/shishi-1.0.2/gl/stdlib.in.h:535:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (random, long, (void)); data/shishi-1.0.2/gl/stdlib.in.h:537:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS (random, long, (void)); data/shishi-1.0.2/gl/stdlib.in.h:538:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (random); data/shishi-1.0.2/gl/stdlib.in.h:540:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef random data/shishi-1.0.2/gl/stdlib.in.h:542:18: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (random, "random is unportable - " data/shishi-1.0.2/gl/stdlib.in.h:549:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); data/shishi-1.0.2/gl/stdlib.in.h:551:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS (srandom, void, (unsigned int seed)); data/shishi-1.0.2/gl/stdlib.in.h:552:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (srandom); data/shishi-1.0.2/gl/stdlib.in.h:554:9: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef srandom data/shishi-1.0.2/gl/stdlib.in.h:556:18: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (srandom, "srandom is unportable - " data/shishi-1.0.2/gl/stdlib.in.h:580:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); data/shishi-1.0.2/gl/stdlib.in.h:582:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS (setstate, char *, (char *arg_state)); data/shishi-1.0.2/gl/stdlib.in.h:583:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (setstate); data/shishi-1.0.2/gl/stdlib.in.h:585:9: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef setstate data/shishi-1.0.2/gl/stdlib.in.h:587:18: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (setstate, "setstate is unportable - " data/shishi-1.0.2/gl/stdlib.in.h:733:12: [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 rpl_realpath data/shishi-1.0.2/gl/stdlib.in.h:735:19: [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. _GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved) data/shishi-1.0.2/gl/stdlib.in.h:737:19: [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. _GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved)); data/shishi-1.0.2/gl/stdlib.in.h:740:19: [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. _GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved) data/shishi-1.0.2/gl/stdlib.in.h:743:19: [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. _GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved)); data/shishi-1.0.2/gl/stdlib.in.h:745:19: [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. _GL_CXXALIASWARN (realpath); data/shishi-1.0.2/gl/stdlib.in.h:747:9: [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. # undef realpath data/shishi-1.0.2/gl/stdlib.in.h:749:18: [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. _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " data/shishi-1.0.2/gl/unsetenv.c:119:10: [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. while (getenv (name)) data/shishi-1.0.2/lib/cfg.c:482:10: [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. file = getenv ("SHISHI_CONFIG"); data/shishi-1.0.2/lib/cfg.c:509: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. envdir = getenv ("SHISHI_HOME"); data/shishi-1.0.2/lib/cfg.c:515: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. home = getenv ("HOME"); data/shishi-1.0.2/lib/hostkeys.c:39: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. envfile = getenv ("SHISHI_KEYS"); data/shishi-1.0.2/lib/init.c:218: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 ("SHISHI_HOME")) data/shishi-1.0.2/lib/principal.c:40: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. envuser = getenv ("SHISHI_USER"); data/shishi-1.0.2/lib/principal.c:42: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. envuser = getenv ("USER"); data/shishi-1.0.2/lib/principal.c:44: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. envuser = getenv ("LOGNAME"); data/shishi-1.0.2/lib/tktccache.c:44: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. envfile = getenv ("KRB5CCNAME"); data/shishi-1.0.2/lib/tkts.c:50: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. envfile = getenv ("SHISHI_TICKETS"); data/shishi-1.0.2/src/ccache2shishi_cmd.c:513:11: [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. c = getopt_long (argc, argv, "hVvq", long_options, &option_index); data/shishi-1.0.2/src/gl/getopt.c:101: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. extern char *getenv (); data/shishi-1.0.2/src/gl/getopt.c:237:47: [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. d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT"); data/shishi-1.0.2/src/gl/getopt.c:1157: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 argc, char *const *argv, const char *optstring) data/shishi-1.0.2/src/gl/getopt.c:1192:11: [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. c = getopt (argc, argv, "abc:d:0123456789"); data/shishi-1.0.2/src/gl/getopt.in.h:59: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/shishi-1.0.2/src/gl/getopt.in.h:60:9: [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. # undef getopt_long data/shishi-1.0.2/src/gl/getopt.in.h:70: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 __GETOPT_ID (getopt) data/shishi-1.0.2/src/gl/getopt.in.h:70:30: [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 __GETOPT_ID (getopt) data/shishi-1.0.2/src/gl/getopt.in.h:71:10: [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. # define getopt_long __GETOPT_ID (getopt_long) data/shishi-1.0.2/src/gl/getopt.in.h:71:35: [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. # define getopt_long __GETOPT_ID (getopt_long) data/shishi-1.0.2/src/gl/getopt.in.h:232:12: [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. extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) data/shishi-1.0.2/src/gl/getopt.in.h:236:12: [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. extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, data/shishi-1.0.2/src/gl/getopt1.c:40: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 argc, char *__getopt_argv_const *argv, const char *options, data/shishi-1.0.2/src/gl/getopt1.c:105:11: [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. c = getopt_long (argc, argv, "abc:d:0123456789", data/shishi-1.0.2/src/keytab2shishi_cmd.c:520:11: [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. c = getopt_long (argc, argv, "hVRvq", long_options, &option_index); data/shishi-1.0.2/src/shisa_cmd.c:619:11: [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. c = getopt_long (argc, argv, "hVadnlmrfE:c:o:vq", long_options, &option_index); data/shishi-1.0.2/src/shishi_cmd.c:722:11: [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. c = getopt_long (argc, argv, "hVdlrE:e:s:c:o:qv", long_options, &option_index); data/shishi-1.0.2/src/shishid_cmd.c:628:11: [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. c = getopt_long (argc, argv, "hVl:u:c:vq", long_options, &option_index); data/shishi-1.0.2/tests/ccache.c:31:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *ccache = getenv ("CCACHE1"); data/shishi-1.0.2/tests/keytab.c:31:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *keytab = getenv ("KEYTAB1"); data/shishi-1.0.2/db/config.c:138:8: [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). fh = fopen (cfg, "r"); data/shishi-1.0.2/db/file.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 (*key, &tmpkey, sizeof (tmpkey)); data/shishi-1.0.2/db/fileutil.c:401:7: [2] (integer) atol: 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). n = atol (linkname); data/shishi-1.0.2/db/fileutil.c:670:8: [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). fh = fopen (tmp, mode); data/shishi-1.0.2/db/gl/careadlinkat.c:73: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 stack_buf[1024]; data/shishi-1.0.2/db/gl/careadlinkat.c:124:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (b, buf, link_size); data/shishi-1.0.2/examples/client-cksum.c:37: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 line[BUFSIZ]; data/shishi-1.0.2/examples/client-priv.c:38: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 line[BUFSIZ]; data/shishi-1.0.2/examples/client-safe.c:38: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 line[BUFSIZ]; data/shishi-1.0.2/extra/pam_shishi/pam_shishi.c:130: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. free ((char *) msg[0].msg); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:260: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, iv2, *ivlen); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:270: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, out + val, strlen (out + val)); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:297: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 (bufbis, (char *) &dlen, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:298: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 (bufbis + sizeof (int), buf, wlen); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:319: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 (bufbis, (char *) &dlen, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rlogin.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 (bufbis + sizeof (int), out, outlen); data/shishi-1.0.2/extra/rsh-redone/rlogin.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 (iv, iv2, *ivlen); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:356: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 errormsg[101]; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:357: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 cksumdata[101]; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:510: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 lport[5]; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:525: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 hostaddr[NI_MAXHOST]; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:526: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 portnr[NI_MAXSERV]; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:531: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[2][BUFLEN], *bufp[2]; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:550: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 cmd[BUFLEN]; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:914: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 wbuf[12]; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:931: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 (bufp[0] + len[0], wbuf, 12); data/shishi-1.0.2/extra/rsh-redone/rsh.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 (iv, iv2, *ivlen); data/shishi-1.0.2/extra/rsh-redone/rsh.c:195: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, out + val, strlen (out + val)); data/shishi-1.0.2/extra/rsh-redone/rsh.c:222: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 (bufbis, (char *) &dlen, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rsh.c:223: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 (bufbis + sizeof (int), buf, wlen); data/shishi-1.0.2/extra/rsh-redone/rsh.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 (bufbis, (char *) &dlen, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rsh.c:245: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 (bufbis + sizeof (int), out, outlen); data/shishi-1.0.2/extra/rsh-redone/rsh.c:252: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, iv2, *ivlen); data/shishi-1.0.2/extra/rsh-redone/rsh.c:281: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 errormsg[101]; data/shishi-1.0.2/extra/rsh-redone/rsh.c:282: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 cksumdata[101]; data/shishi-1.0.2/extra/rsh-redone/rsh.c:435: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 lport[5]; data/shishi-1.0.2/extra/rsh-redone/rsh.c:449: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 hostaddr[NI_MAXHOST]; data/shishi-1.0.2/extra/rsh-redone/rsh.c:450: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 portnr[NI_MAXSERV]; data/shishi-1.0.2/extra/rsh-redone/rsh.c:452: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[3][BUFLEN], *bufp[3]; data/shishi-1.0.2/gl/alloca.c:122: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 align[ALIGN_SIZE]; /* To force sizeof(header). */ data/shishi-1.0.2/gl/arcfour.h:31: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 sbox[ARCFOUR_SBOX_SIZE]; data/shishi-1.0.2/gl/base64.c:70:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 b64str[64] = data/shishi-1.0.2/gl/base64.c:221:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const signed char b64[0x100] = { data/shishi-1.0.2/gl/base64.h:38: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[4]; data/shishi-1.0.2/gl/des.c:241: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 encrypt_rotate_tab[16] = { data/shishi-1.0.2/gl/des.c:252: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 weak_keys[64][8] = { data/shishi-1.0.2/gl/des.c:322: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 work[8]; data/shishi-1.0.2/gl/fcntl.c:56: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 fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; data/shishi-1.0.2/gl/fcntl.in.h:111: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). # undef open data/shishi-1.0.2/gl/fcntl.in.h:112: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). # define open rpl_open data/shishi-1.0.2/gl/fcntl.in.h:114: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). _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) data/shishi-1.0.2/gl/fcntl.in.h:116: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). _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); data/shishi-1.0.2/gl/fcntl.in.h:118: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). _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); data/shishi-1.0.2/gl/fcntl.in.h:123: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). _GL_CXXALIASWARN (open); data/shishi-1.0.2/gl/fcntl.in.h:126: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). # undef open data/shishi-1.0.2/gl/fcntl.in.h:128: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). _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " data/shishi-1.0.2/gl/fseeko.c:60:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *tmp = fopen ("/dev/null", "r"); data/shishi-1.0.2/gl/ftello.c:76:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *tmp = fopen ("/dev/null", "r"); data/shishi-1.0.2/gl/gc-gnulib.c:71: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). #undef open data/shishi-1.0.2/gl/gc-gnulib.c:166: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 (device, O_RDONLY); data/shishi-1.0.2/gl/gc-gnulib.c:235: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 arctwoIV[ARCTWO_BLOCK_SIZE]; data/shishi-1.0.2/gl/gc-gnulib.c:370: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 keyMaterial[RIJNDAEL_MAX_KEY_SIZE + 1]; data/shishi-1.0.2/gl/gc-gnulib.c:373:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (&keyMaterial[2 * i], "%02x", key[i] & 0xFF); data/shishi-1.0.2/gl/gc-gnulib.c:410:7: [2] (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->arctwoIV, iv, ivlen); data/shishi-1.0.2/gl/gc-gnulib.c:428:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ivMaterial[2 * RIJNDAEL_MAX_IV_SIZE + 1]; data/shishi-1.0.2/gl/gc-gnulib.c:431:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (&ivMaterial[2 * i], "%02x", iv[i] & 0xFF); data/shishi-1.0.2/gl/gc-gnulib.c:477:15: [2] (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->arctwoIV, data, ARCTWO_BLOCK_SIZE); data/shishi-1.0.2/gl/gc-gnulib.c:542:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpIV[ARCTWO_BLOCK_SIZE]; data/shishi-1.0.2/gl/gc-gnulib.c:544:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmpIV, data, ARCTWO_BLOCK_SIZE); data/shishi-1.0.2/gl/gc-gnulib.c:549:15: [2] (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->arctwoIV, tmpIV, ARCTWO_BLOCK_SIZE); data/shishi-1.0.2/gl/gc-gnulib.c:613: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 hash[MAX_DIGEST_SIZE]; data/shishi-1.0.2/gl/gc-gnulib.c:700:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (out, in, sizeof (*out)); data/shishi-1.0.2/gl/gc-libgcrypt.c:249: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 hash[GC_MD2_DIGEST_SIZE]; data/shishi-1.0.2/gl/gc-libgcrypt.c:351:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (out, in, sizeof (*out)); data/shishi-1.0.2/gl/gc-libgcrypt.c:577: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 (resbuf, p, outlen); data/shishi-1.0.2/gl/gc-libgcrypt.c:609: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 (resbuf, p, outlen); data/shishi-1.0.2/gl/gc-libgcrypt.c:641: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 (resbuf, p, outlen); data/shishi-1.0.2/gl/gc-libgcrypt.c:681: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 (resbuf, hash, hlen); data/shishi-1.0.2/gl/gc-libgcrypt.c:721: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 (resbuf, hash, hlen); data/shishi-1.0.2/gl/gc-pbkdf2-sha1.c:39: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 U[20]; data/shishi-1.0.2/gl/gc-pbkdf2-sha1.c:40: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 T[20]; data/shishi-1.0.2/gl/gc-pbkdf2-sha1.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 (tmp, S, Slen); data/shishi-1.0.2/gl/gc-pbkdf2-sha1.c:96:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (DK + (i - 1) * hLen, T, i == l ? r : hLen); data/shishi-1.0.2/gl/getaddrinfo.c:253: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 (&sinp->sin6_addr, he->h_addr_list[0], sizeof sinp->sin6_addr); data/shishi-1.0.2/gl/getaddrinfo.c:277: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 (&sinp->sin_addr, he->h_addr_list[0], sizeof sinp->sin_addr); data/shishi-1.0.2/gl/getdomainname.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 (name, result, result_len); data/shishi-1.0.2/gl/getpass.c:97:9: [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). tty = fopen ("/dev/tty", "w+"); data/shishi-1.0.2/gl/getpass.c:191: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 getpassbuf[PASS_MAX + 1]; data/shishi-1.0.2/gl/hmac-md5.c:37: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 optkeybuf[16]; data/shishi-1.0.2/gl/hmac-md5.c:38: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 block[64]; data/shishi-1.0.2/gl/hmac-md5.c:39: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 innerhash[16]; data/shishi-1.0.2/gl/hmac-sha1.c:37: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 optkeybuf[20]; data/shishi-1.0.2/gl/hmac-sha1.c:38: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 block[64]; data/shishi-1.0.2/gl/hmac-sha1.c:39: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 innerhash[20]; data/shishi-1.0.2/gl/inet_ntop.c:127: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 tmp[sizeof "255.255.255.255"]; data/shishi-1.0.2/gl/inet_ntop.c:130:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len = sprintf (tmp, "%u.%u.%u.%u", src[0], src[1], src[2], src[3]); data/shishi-1.0.2/gl/inet_ntop.c:161: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 tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp; data/shishi-1.0.2/gl/inet_ntop.c:234:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. int len = sprintf (tp, "%x", words[i]); data/shishi-1.0.2/gl/malloca.c:52: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. struct preliminary_header { void *next; char room[MAGIC_SIZE]; }; data/shishi-1.0.2/gl/malloca.c:56: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. struct header { void *next; char room[HEADER_SIZE - sizeof (struct preliminary_header) + MAGIC_SIZE]; }; data/shishi-1.0.2/gl/md4.c:50: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 fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; data/shishi-1.0.2/gl/md4.c:73: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 (cp, &v, sizeof v); data/shishi-1.0.2/gl/md4.c:105:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char*)ctx->buffer)[bytes], fillbuf, pad); data/shishi-1.0.2/gl/md4.c:220:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char*)ctx->buffer)[left_over], buffer, add); data/shishi-1.0.2/gl/md4.c:229: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 (ctx->buffer, &((char*)ctx->buffer)[(left_over + add) & ~63], data/shishi-1.0.2/gl/md4.c:245:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. md4_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); data/shishi-1.0.2/gl/md4.c:263:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char*)ctx->buffer)[left_over], buffer, len); data/shishi-1.0.2/gl/md4.c:269: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 (ctx->buffer, &ctx->buffer[16], left_over); data/shishi-1.0.2/gl/md5.c:66: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 fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; data/shishi-1.0.2/gl/md5.c:89: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 (cp, &v, sizeof v); data/shishi-1.0.2/gl/md5.c:124:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes); data/shishi-1.0.2/gl/md5.c:235:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, add); data/shishi-1.0.2/gl/md5.c:244: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 (ctx->buffer, data/shishi-1.0.2/gl/md5.c:261:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); data/shishi-1.0.2/gl/md5.c:279:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, len); data/shishi-1.0.2/gl/md5.c:285: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 (ctx->buffer, &ctx->buffer[16], left_over); data/shishi-1.0.2/gl/mktime.c:72:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define verify(name, assertion) struct name { char a[(assertion) ? 1 : -1]; } data/shishi-1.0.2/gl/mktime.c:665:38: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tm.tm_isdst = argc == 3 ? -1 : atoi (argv[3]); data/shishi-1.0.2/gl/mktime.c:681:21: [2] (integer) atol: 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). time_t from = atol (argv[1]); data/shishi-1.0.2/gl/mktime.c:682:19: [2] (integer) atol: 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). time_t by = atol (argv[2]); data/shishi-1.0.2/gl/mktime.c:683:19: [2] (integer) atol: 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). time_t to = atol (argv[3]); data/shishi-1.0.2/gl/parse-datetime.c:1359: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/shishi-1.0.2/gl/parse-datetime.c:1595: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 yymsgbuf[128]; data/shishi-1.0.2/gl/parse-datetime.c:3139: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. char buff[20]; data/shishi-1.0.2/gl/parse-datetime.c:3216: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 * data/shishi-1.0.2/gl/parse-datetime.c:3217: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. get_tz (char tzbuf[TZBUFSIZE]) data/shishi-1.0.2/gl/parse-datetime.c:3224:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ? memcpy (tzbuf, tz, tzsize) data/shishi-1.0.2/gl/parse-datetime.c:3248: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 tz0buf[TZBUFSIZE]; data/shishi-1.0.2/gl/parse-datetime.c:3284:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tz1buf[TZBUFSIZE]; data/shishi-1.0.2/gl/parse-datetime.c:3452:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tz1buf[sizeof "XXX+0:00" data/shishi-1.0.2/gl/parse-datetime.c:3575: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 buff[BUFSIZ]; data/shishi-1.0.2/gl/printf-parse.c:122: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 (memory, a->arg, a->count * sizeof (argument)); \ data/shishi-1.0.2/gl/printf-parse.c:599:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, d->dir, d->count * sizeof (DIRECTIVE)); data/shishi-1.0.2/gl/read-file.c:140: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). FILE *stream = fopen (filename, mode); data/shishi-1.0.2/gl/select.c:47: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 in[FD_SETSIZE / CHAR_BIT]; data/shishi-1.0.2/gl/select.c:48: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 out[FD_SETSIZE / CHAR_BIT]; data/shishi-1.0.2/gl/select.c:251: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 anyfds_in[FD_SETSIZE / CHAR_BIT]; data/shishi-1.0.2/gl/select.c:403: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 (&handle_rfds, rfds, sizeof (fd_set)); data/shishi-1.0.2/gl/select.c:404: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 (&handle_wfds, wfds, sizeof (fd_set)); data/shishi-1.0.2/gl/select.c:405: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 (&handle_xfds, xfds, sizeof (fd_set)); data/shishi-1.0.2/gl/select.c:460: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 (&handle_rfds, rfds, sizeof (fd_set)); data/shishi-1.0.2/gl/select.c:461: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 (&handle_wfds, wfds, sizeof (fd_set)); data/shishi-1.0.2/gl/select.c:462: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 (&handle_xfds, xfds, sizeof (fd_set)); data/shishi-1.0.2/gl/setenv.c:179: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 (new_value, name, namelen); data/shishi-1.0.2/gl/setenv.c:181: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 (&new_value[namelen + 1], value, vallen); data/shishi-1.0.2/gl/setenv.c:200:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_environ[size], new_value, namelen + 1 + vallen); data/shishi-1.0.2/gl/setenv.c:202:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_environ[size], name, namelen); data/shishi-1.0.2/gl/setenv.c:204:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_environ[size][namelen + 1], value, vallen); data/shishi-1.0.2/gl/setenv.c:217: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 ((char *) new_environ, (char *) __environ, data/shishi-1.0.2/gl/setenv.c:247: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 (new_value, name, namelen); data/shishi-1.0.2/gl/setenv.c:249: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 (&new_value[namelen + 1], value, vallen); data/shishi-1.0.2/gl/setenv.c:268:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (np, new_value, namelen + 1 + vallen); data/shishi-1.0.2/gl/setenv.c:270:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (np, name, namelen); data/shishi-1.0.2/gl/setenv.c:272:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&np[namelen + 1], value, vallen); data/shishi-1.0.2/gl/setenv.c:380: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 (tmp + 1, value, len + 1); data/shishi-1.0.2/gl/sha1.c:51: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 fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; data/shishi-1.0.2/gl/sha1.c:76: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 (cp, &v, sizeof v); data/shishi-1.0.2/gl/sha1.c:112:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes); data/shishi-1.0.2/gl/sha1.c:222:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, add); data/shishi-1.0.2/gl/sha1.c:231: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 (ctx->buffer, data/shishi-1.0.2/gl/sha1.c:248:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. sha1_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); data/shishi-1.0.2/gl/sha1.c:266:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, len); data/shishi-1.0.2/gl/sha1.c:272: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 (ctx->buffer, &ctx->buffer[16], left_over); data/shishi-1.0.2/gl/snprintf.c:57: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 (str, output, pruned_len); data/shishi-1.0.2/gl/stat.c:109:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fixed_name[PATH_MAX + 1] = {0}; data/shishi-1.0.2/gl/stdio-impl.h:44:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/shishi-1.0.2/gl/stdio-impl.h:45:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/shishi-1.0.2/gl/stdio.in.h:249: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). # undef fopen data/shishi-1.0.2/gl/stdio.in.h:250: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). # define fopen rpl_fopen data/shishi-1.0.2/gl/stdio.in.h:252:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode) data/shishi-1.0.2/gl/stdio.in.h:254:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode)); data/shishi-1.0.2/gl/stdio.in.h:256:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode)); data/shishi-1.0.2/gl/stdio.in.h:258:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIASWARN (fopen); data/shishi-1.0.2/gl/stdio.in.h:260:9: [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). # undef fopen data/shishi-1.0.2/gl/stdio.in.h:262: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). _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " data/shishi-1.0.2/gl/stdio.in.h:1075:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # define tmpfile rpl_tmpfile data/shishi-1.0.2/gl/stdio.in.h:1077:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); data/shishi-1.0.2/gl/stdio.in.h:1078:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); data/shishi-1.0.2/gl/stdio.in.h:1080:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); data/shishi-1.0.2/gl/stdio.in.h:1082:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIASWARN (tmpfile); data/shishi-1.0.2/gl/stdio.in.h:1084:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # undef tmpfile data/shishi-1.0.2/gl/stdio.in.h:1086:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " data/shishi-1.0.2/gl/stdlib.in.h:398: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). # define mkstemp rpl_mkstemp data/shishi-1.0.2/gl/stdlib.in.h:400:19: [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). _GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/shishi-1.0.2/gl/stdlib.in.h:401:19: [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). _GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); data/shishi-1.0.2/gl/stdlib.in.h:404:19: [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). _GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/shishi-1.0.2/gl/stdlib.in.h:406:19: [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). _GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); data/shishi-1.0.2/gl/stdlib.in.h:408:19: [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). _GL_CXXALIASWARN (mkstemp); data/shishi-1.0.2/gl/stdlib.in.h:410:9: [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). # undef mkstemp data/shishi-1.0.2/gl/stdlib.in.h:412:18: [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). _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " data/shishi-1.0.2/gl/strdup.c:47:19: [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 (char *) memcpy (new, s, len); data/shishi-1.0.2/gl/strerror.c:39: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 buf[STACKBUF_LEN]; data/shishi-1.0.2/gl/strerror.c:69: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 (buf, msg, len + 1); data/shishi-1.0.2/gl/strndup.c:35: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 (new, s, len); data/shishi-1.0.2/gl/sys_socket.in.h:108: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 __ss_padding[_SS_PADSIZE]; data/shishi-1.0.2/gl/sys_stat.in.h:704:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, data/shishi-1.0.2/gl/sys_stat.in.h:707:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, data/shishi-1.0.2/gl/sys_stat.in.h:711:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, data/shishi-1.0.2/gl/sys_stat.in.h:715:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, data/shishi-1.0.2/gl/vasnprintf.c:143:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define DCHAR_CPY memcpy data/shishi-1.0.2/gl/vasnprintf.c:284: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 pointbuf[5]; data/shishi-1.0.2/gl/vasnprintf.c:285:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (pointbuf, "%#.0f", 1.0); data/shishi-1.0.2/gl/vasnprintf.c:509:7: [2] (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_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/shishi-1.0.2/gl/vasnprintf.c:645: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 (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/shishi-1.0.2/gl/vasnprintf.c:2674:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/shishi-1.0.2/gl/vasnprintf.c:2719:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/shishi-1.0.2/gl/vasnprintf.c:2769:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/shishi-1.0.2/gl/vasnprintf.c:2782:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmpptr, cbuf, count); data/shishi-1.0.2/gl/vasnprintf.c:2851:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/shishi-1.0.2/gl/vasnprintf.c:2864:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, cbuf, count); data/shishi-1.0.2/gl/vasnprintf.c:2880:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/shishi-1.0.2/gl/vasnprintf.c:2902:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, cbuf, count); data/shishi-1.0.2/gl/vasnprintf.c:3187:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/shishi-1.0.2/gl/vasnprintf.c:3193:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/shishi-1.0.2/gl/vasnprintf.c:3195:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/shishi-1.0.2/gl/vasnprintf.c:3338:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/shishi-1.0.2/gl/vasnprintf.c:3344:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/shishi-1.0.2/gl/vasnprintf.c:3346:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/shishi-1.0.2/gl/vasnprintf.c:3411:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/shishi-1.0.2/gl/vasnprintf.c:3800:37: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/shishi-1.0.2/gl/vasnprintf.c:3806:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/shishi-1.0.2/gl/vasnprintf.c:3808:37: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/shishi-1.0.2/gl/vasnprintf.c:3981:45: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/shishi-1.0.2/gl/vasnprintf.c:3987:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/shishi-1.0.2/gl/vasnprintf.c:3989:45: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/shishi-1.0.2/gl/vasnprintf.c:4279:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/shishi-1.0.2/gl/vasnprintf.c:4472:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/shishi-1.0.2/gl/vasnprintf.c:4597:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/shishi-1.0.2/gl/vasnprintf.c:4801:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); data/shishi-1.0.2/gl/vasnprintf.c:4822:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); data/shishi-1.0.2/gl/vasnprintf.c:5517:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/shishi-1.0.2/gl/xmalloc.c:113: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 (xmalloc (s), p, s); data/shishi-1.0.2/gl/xvasprintf.c:67:7: [2] (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, next, len); data/shishi-1.0.2/lib/ap.c:590: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 (out, ap->authenticatorcksumdata, ap->authenticatorcksumdatalen); data/shishi-1.0.2/lib/aprep.c:151:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/lib/aprep.c:231:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/apreq.c:213:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/lib/apreq.c:293:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/asn1.c:42: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 errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = ""; data/shishi-1.0.2/lib/asn1.c:249: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[4]; data/shishi-1.0.2/lib/asn1.c:377: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[4]; data/shishi-1.0.2/lib/asn1.c:769: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 errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = ""; data/shishi-1.0.2/lib/asn1.c:852: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 errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = ""; data/shishi-1.0.2/lib/authenticator.c:199:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/lib/authenticator.c:282:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/authenticator.c:814:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (format, "authorization-data.?%ld.ad-data", i); data/shishi-1.0.2/lib/authorize.c:105:9: [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). fic = fopen (ficname, "r"); data/shishi-1.0.2/lib/ccache.c:408:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out, princ->realm.data, princ->realm.length); data/shishi-1.0.2/lib/ccache.c:420:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out, princ->components[n].data, princ->components[n].length); data/shishi-1.0.2/lib/ccache.c:456:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out, cred->key.keyvalue, cred->key.keylen); data/shishi-1.0.2/lib/ccache.c:501:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out, cred->ticket.data, cred->ticket.length); data/shishi-1.0.2/lib/ccache.c:511:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out, cred->second_ticket.data, cred->second_ticket.length); data/shishi-1.0.2/lib/ccache.c:549:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (data, info->header, info->headerlen); data/shishi-1.0.2/lib/ccache.c:619: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[10240]; data/shishi-1.0.2/lib/ccache.c:633:8: [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). fh = fopen (argv[1], "rb"); data/shishi-1.0.2/lib/ccache.h:57: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 storage[CCACHE_MAX_KEYLEN]; /* usable by caller for storing data/shishi-1.0.2/lib/cfg.c:128:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value && atoi (value) > 0) data/shishi-1.0.2/lib/cfg.c:129:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). handle->kdctimeout = atoi (value); data/shishi-1.0.2/lib/cfg.c:137:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value && atoi (value) > 0) data/shishi-1.0.2/lib/cfg.c:138:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). handle->kdcretries = atoi (value); data/shishi-1.0.2/lib/cfg.c:311:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). handle->verbose = value && atoi (value) ? atoi (value) : data/shishi-1.0.2/lib/cfg.c:311:46: [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). handle->verbose = value && atoi (value) ? atoi (value) : data/shishi-1.0.2/lib/cfg.c:368:8: [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). fh = fopen (cfg, "r"); data/shishi-1.0.2/lib/crypto-3des.c:125:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. des_set_odd_key_parity (char key[8]) data/shishi-1.0.2/lib/crypto-3des.c:166: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 tmpkey[3 * 8]; data/shishi-1.0.2/lib/crypto-3des.c:180: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 (tmpkey, rnd, 7); data/shishi-1.0.2/lib/crypto-3des.c:181: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 (tmpkey + 8, rnd + 7, 7); data/shishi-1.0.2/lib/crypto-3des.c:182: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 (tmpkey + 16, rnd + 14, 7); data/shishi-1.0.2/lib/crypto-3des.c:219: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 nfold[168 / 8]; data/shishi-1.0.2/lib/crypto-3des.c:237: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, string, stringlen); data/shishi-1.0.2/lib/crypto-3des.c:238: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 + stringlen, salt, saltlen); data/shishi-1.0.2/lib/crypto-aes.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 key[256 / 8]; data/shishi-1.0.2/lib/crypto-des.c:49: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 (tmp, out, blen); data/shishi-1.0.2/lib/crypto-des.c:50: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 (tmp + blen, in, inlen); data/shishi-1.0.2/lib/crypto-des.c:72:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (out + blen, p, hlen); data/shishi-1.0.2/lib/crypto-des.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 (tmp, out, blen + hlen); data/shishi-1.0.2/lib/crypto-des.c:100: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 (tmp + blen + hlen, in, inlen); data/shishi-1.0.2/lib/crypto-des.c:124:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (out + blen, p, hlen); data/shishi-1.0.2/lib/crypto-des.c:142: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 cksum[8 + MAX_HASH_LEN]; data/shishi-1.0.2/lib/crypto-des.c:154: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 (inpad, in, inlen); data/shishi-1.0.2/lib/crypto-des.c:166: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 (pt, cksum, cksumlen); data/shishi-1.0.2/lib/crypto-des.c:167: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 (pt + cksumlen, inpad, inpadlen); data/shishi-1.0.2/lib/crypto-des.c:250: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 incoming[16]; data/shishi-1.0.2/lib/crypto-des.c:269: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 (incoming, *out + 8, hlen); data/shishi-1.0.2/lib/crypto-des.c:376:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. des_set_odd_key_parity (char key[8]) data/shishi-1.0.2/lib/crypto-des.c:394: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 weak_des_keys[16][8] = { data/shishi-1.0.2/lib/crypto-des.c:416:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. des_key_correction (Shishi * handle, char key[8]) data/shishi-1.0.2/lib/crypto-des.c:439: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 tmp[MAX_RANDOM_LEN]; data/shishi-1.0.2/lib/crypto-des.c:448: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 (tmp, rnd, keylen); data/shishi-1.0.2/lib/crypto-des.c:466: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 tempkey[8]; data/shishi-1.0.2/lib/crypto-des.c:497: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, string, stringlen); data/shishi-1.0.2/lib/crypto-des.c:499:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (s + stringlen, salt, saltlen); data/shishi-1.0.2/lib/crypto-des.c:609: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, string, stringlen); data/shishi-1.0.2/lib/crypto-des.c:611:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (s + stringlen, salt, saltlen); data/shishi-1.0.2/lib/crypto-des.c:618: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 (tempkey, p, 8); data/shishi-1.0.2/lib/crypto-des.c:644: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 cksum[8 + MAX_HASH_LEN]; data/shishi-1.0.2/lib/crypto-des.c:777: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 (tmp, out, 8); data/shishi-1.0.2/lib/crypto-des.c:778: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 (tmp + 8, in, inlen); data/shishi-1.0.2/lib/crypto-null.c:37:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out, in, inlen); data/shishi-1.0.2/lib/crypto-null.c:57:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out, in, inlen); data/shishi-1.0.2/lib/crypto-rc4.c:107: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 L40[14] = "fortybits"; data/shishi-1.0.2/lib/crypto-rc4.c:110: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 K2[16]; data/shishi-1.0.2/lib/crypto-rc4.c:124: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 (L40 + 10, T, 4); data/shishi-1.0.2/lib/crypto-rc4.c:149: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 (K2, K1, 16); data/shishi-1.0.2/lib/crypto-rc4.c:182: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 (pt + 8, in, inlen); data/shishi-1.0.2/lib/crypto-rc4.c:222:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out, cksum, 16); data/shishi-1.0.2/lib/crypto-rc4.c:223:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out + 16, ct, ptlen); data/shishi-1.0.2/lib/crypto-rc4.c:252: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 L40[14] = "fortybits"; data/shishi-1.0.2/lib/crypto-rc4.c:255: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 K2[16]; data/shishi-1.0.2/lib/crypto-rc4.c:267: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 (L40 + 10, T, 4); data/shishi-1.0.2/lib/crypto-rc4.c:292: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 (K2, K1, 16); data/shishi-1.0.2/lib/crypto-rc4.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 (*out, pt + 8, inlen - 16 - 8); data/shishi-1.0.2/lib/crypto-rc4.c:405: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 T[4]; data/shishi-1.0.2/lib/crypto-rc4.c:429: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 (pt, T, 4); data/shishi-1.0.2/lib/crypto-rc4.c:430: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 (pt + 4, in, inlen); data/shishi-1.0.2/lib/crypto.c:188: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 prfconstant[5]; data/shishi-1.0.2/lib/crypto.c:214:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (prfconstant, &tmp, 4); data/shishi-1.0.2/lib/crypto.c:262:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pt, in, inlen); data/shishi-1.0.2/lib/crypto.c:346:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pt + blen, in, inlen); data/shishi-1.0.2/lib/crypto.c:375:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out, ct, ctlen); data/shishi-1.0.2/lib/crypto.c:376:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out + ctlen, hmac, hmaclen); data/shishi-1.0.2/lib/crypto.c:1828:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) &buf[i * m], a, m); data/shishi-1.0.2/lib/crypto.c:1908: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 plaintext[MAX_DR_PRFCONSTANT]; data/shishi-1.0.2/lib/crypto.c:1909: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 nfoldprfconstant[MAX_DR_PRFCONSTANT]; data/shishi-1.0.2/lib/crypto.c:1931: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 (nfoldprfconstant, prfconstant, prfconstantlen); data/shishi-1.0.2/lib/crypto.c:1948: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 (plaintext, nfoldprfconstant, blocksize); data/shishi-1.0.2/lib/crypto.c:1959:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (derivedrandom + totlen, cipher, cipherlen); data/shishi-1.0.2/lib/crypto.c:1960:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (plaintext, cipher, cipherlen); data/shishi-1.0.2/lib/crypto.c:1995: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 rnd[MAX_RANDOM_LEN]; data/shishi-1.0.2/lib/diskio.c:255:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buffer, line, strlen (line)); data/shishi-1.0.2/lib/diskio.c:281: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:283: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:337: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:339: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:417: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:419: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:480: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:482: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:542: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:544: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:591: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:593: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:640: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:642: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:691: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:741: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:743: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:790: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:792: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:839: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 der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:841: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 b64der[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:889: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 line[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:891: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 armorbegin[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:892: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 armorend[BUFSIZE]; data/shishi-1.0.2/lib/diskio.c:1064:8: [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). fh = fopen (filename, "a"); data/shishi-1.0.2/lib/encapreppart.c:157:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/lib/encapreppart.c:239:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/encticketpart.c:322: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 authtime[SHISHI_GENERALIZEDTIME_LENGTH + 1]; data/shishi-1.0.2/lib/gztime.c:149: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 str[SHISHI_GENERALIZEDTIME_LENGTH + 1]; data/shishi-1.0.2/lib/init.c:221:8: [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). fh = fopen (usercfg, "r"); data/shishi-1.0.2/lib/init.c:238:9: [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). src = fopen (SKELCFGFILE, "r"); data/shishi-1.0.2/lib/init.c:245:9: [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). dst = fopen (usercfg, "w"); data/shishi-1.0.2/lib/internal.h:152: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 error[1024]; data/shishi-1.0.2/lib/internal.h:153: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 gztime_buf[40]; data/shishi-1.0.2/lib/kdc.c:101:7: [2] (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 + *saltlen - tmplen, tmp, tmplen); data/shishi-1.0.2/lib/kdcrep.c:158:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/lib/kdcrep.c:238:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/kdcreq.c:44: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. const char *servicebuf[3]; data/shishi-1.0.2/lib/kdcreq.c:227:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/lib/kdcreq.c:307:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/key.c:31: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 value[MAX_KEY_LEN]; data/shishi-1.0.2/lib/key.c:165:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (key->value, value, shishi_cipher_keylen (key->type)); data/shishi-1.0.2/lib/key.c:403: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[MAX_RANDOM_LEN]; data/shishi-1.0.2/lib/keys.c:218:8: [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). fh = fopen (filename, "a"); data/shishi-1.0.2/lib/keys.c:254:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/keys.c:309:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/keytab.c:141:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (name + namelen, &data[pos], l); data/shishi-1.0.2/lib/keytab.c:429: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, realm, realmlen); data/shishi-1.0.2/lib/keytab.c:438:7: [2] (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, namebuf[i], length); data/shishi-1.0.2/lib/keytab.c:471: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, key_value, key_length); data/shishi-1.0.2/lib/keytab.c:533:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*out + *len, tmp, tmplen); data/shishi-1.0.2/lib/keytab.c:553:8: [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). fh = fopen (filename, "wb"); data/shishi-1.0.2/lib/krberror.c:139:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/lib/krberror.c:219:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/low-crypto.c:92: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. shishi_crc (Shishi * handle, const char *in, size_t inlen, char *out[4]) data/shishi-1.0.2/lib/low-crypto.c:92:60: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. shishi_crc (Shishi * handle, const char *in, size_t inlen, char *out[4]) data/shishi-1.0.2/lib/low-crypto.c:118: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. shishi_md4 (Shishi * handle, const char *in, size_t inlen, char *out[16]) data/shishi-1.0.2/lib/low-crypto.c:118:60: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. shishi_md4 (Shishi * handle, const char *in, size_t inlen, char *out[16]) data/shishi-1.0.2/lib/low-crypto.c:143: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. shishi_md5 (Shishi * handle, const char *in, size_t inlen, char *out[16]) data/shishi-1.0.2/lib/low-crypto.c:143:60: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. shishi_md5 (Shishi * handle, const char *in, size_t inlen, char *out[16]) data/shishi-1.0.2/lib/low-crypto.c:171: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. const char *key, size_t keylen, data/shishi-1.0.2/lib/low-crypto.c:172: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. const char *in, size_t inlen, char *outhash[16]) data/shishi-1.0.2/lib/low-crypto.c:172:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *in, size_t inlen, char *outhash[16]) data/shishi-1.0.2/lib/low-crypto.c:200: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 *key, size_t keylen, data/shishi-1.0.2/lib/low-crypto.c:201: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 *in, size_t inlen, char *outhash[20]) data/shishi-1.0.2/lib/low-crypto.c:201:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *in, size_t inlen, char *outhash[20]) data/shishi-1.0.2/lib/low-crypto.c:229:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char key[8], data/shishi-1.0.2/lib/low-crypto.c:230:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char iv[8], data/shishi-1.0.2/lib/low-crypto.c:231:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *in, size_t inlen, char *out[8]) data/shishi-1.0.2/lib/low-crypto.c:231:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *in, size_t inlen, char *out[8]) data/shishi-1.0.2/lib/low-crypto.c:352: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 (*ivout, in + ivpos, inlen >= ivlen ? ivlen : inlen); data/shishi-1.0.2/lib/low-crypto.c:354: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 (*ivout, *out + ivpos, inlen >= ivlen ? ivlen : inlen); data/shishi-1.0.2/lib/low-crypto.c:386: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. const char *key, size_t keylen, data/shishi-1.0.2/lib/low-crypto.c:387: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. const char iv[258], char *ivout[258], data/shishi-1.0.2/lib/low-crypto.c:387: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. const char iv[258], char *ivout[258], data/shishi-1.0.2/lib/low-crypto.c:404:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*ivout, &ctx, sizeof (ctx)); data/shishi-1.0.2/lib/low-crypto.c:428: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. const char key[8], data/shishi-1.0.2/lib/low-crypto.c:429: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. const char iv[8], data/shishi-1.0.2/lib/low-crypto.c:430: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 *ivout[8], const char *in, size_t inlen, char **out) data/shishi-1.0.2/lib/low-crypto.c:454:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char key[8], data/shishi-1.0.2/lib/low-crypto.c:455:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char iv[8], data/shishi-1.0.2/lib/low-crypto.c:456:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ivout[8], const char *in, size_t inlen, char **out) data/shishi-1.0.2/lib/low-crypto.c:484: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. const char *key, size_t keylen, data/shishi-1.0.2/lib/low-crypto.c:485: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. const char iv[16], data/shishi-1.0.2/lib/low-crypto.c:486: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 *ivout[16], const char *in, size_t inlen, char **out) data/shishi-1.0.2/lib/netio.c:39: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 tmpbuf[BUFSIZ]; /* XXX can we do without it? data/shishi-1.0.2/lib/netio.c:95:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*outdata, tmpbuf, slen); data/shishi-1.0.2/lib/netio.c:111: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 tmpbuf[BUFSIZ]; /* XXX can we do without it? data/shishi-1.0.2/lib/netio.c:188: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 (*outdata, tmpbuf, slen); data/shishi-1.0.2/lib/netio.c:228:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nodename[NI_MAXHOST]; data/shishi-1.0.2/lib/principal.c:298:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp + tmplen + 1, realmfield, realmfieldlen); data/shishi-1.0.2/lib/principal.c:320:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp + tmplen + 1, realm, realmlen); data/shishi-1.0.2/lib/priv.c:378:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/lib/priv.c:458:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/resolv.c:53: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 buf[MAX_PACKET]; data/shishi-1.0.2/lib/resolv.c:63: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, *scan + 1, len); data/shishi-1.0.2/lib/resolv.c:75: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 host[256]; data/shishi-1.0.2/lib/resolv.c:139: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 host[256]; data/shishi-1.0.2/lib/safe.c:288:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/lib/safe.c:368:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/shishi.h:611:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[256]; data/shishi-1.0.2/lib/shishi.h:1451:49: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern int shishi_crc (Shishi * handle, const char *in, size_t inlen, data/shishi-1.0.2/lib/shishi.h:1452:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *out[4]); data/shishi-1.0.2/lib/shishi.h:1453:49: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern int shishi_md4 (Shishi * handle, const char *in, size_t inlen, data/shishi-1.0.2/lib/shishi.h:1454:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *out[16]); data/shishi-1.0.2/lib/shishi.h:1455:49: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern int shishi_md5 (Shishi * handle, const char *in, size_t inlen, data/shishi-1.0.2/lib/shishi.h:1456:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *out[16]); data/shishi-1.0.2/lib/shishi.h:1457:54: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern int shishi_hmac_md5 (Shishi * handle, const char *key, size_t keylen, data/shishi-1.0.2/lib/shishi.h:1458:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *in, size_t inlen, data/shishi-1.0.2/lib/shishi.h:1459: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. char *outhash[16]); data/shishi-1.0.2/lib/shishi.h:1460:55: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern int shishi_hmac_sha1 (Shishi * handle, const char *key, data/shishi-1.0.2/lib/shishi.h:1461: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. size_t keylen, const char *in, size_t inlen, data/shishi-1.0.2/lib/shishi.h:1462: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. char *outhash[20]); data/shishi-1.0.2/lib/shishi.h:1463:57: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern int shishi_des_cbc_mac (Shishi * handle, const char key[8], data/shishi-1.0.2/lib/shishi.h:1464: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. const char iv[8], const char *in, data/shishi-1.0.2/lib/shishi.h:1464: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. const char iv[8], const char *in, data/shishi-1.0.2/lib/shishi.h:1465:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. size_t inlen, char *out[8]); data/shishi-1.0.2/lib/shishi.h:1466:67: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern int shishi_arcfour (Shishi * handle, int decryptp, const char *key, data/shishi-1.0.2/lib/shishi.h:1467: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. size_t keylen, const char iv[258], data/shishi-1.0.2/lib/shishi.h:1468: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 *ivout[258], const char *in, size_t inlen, data/shishi-1.0.2/lib/shishi.h:1470: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. extern int shishi_des (Shishi * handle, int decryptp, const char key[8], data/shishi-1.0.2/lib/shishi.h:1471: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 iv[8], char *ivout[8], const char *in, data/shishi-1.0.2/lib/shishi.h:1471: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. const char iv[8], char *ivout[8], const char *in, data/shishi-1.0.2/lib/shishi.h:1473:64: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern int shishi_3des (Shishi * handle, int decryptp, const char key[24], data/shishi-1.0.2/lib/shishi.h:1474: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. const char iv[8], char *ivout[8], const char *in, data/shishi-1.0.2/lib/shishi.h:1474: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. const char iv[8], char *ivout[8], const char *in, data/shishi-1.0.2/lib/shishi.h:1476:67: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern int shishi_aes_cts (Shishi * handle, int decryptp, const char *key, data/shishi-1.0.2/lib/shishi.h:1477: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. size_t keylen, const char iv[16], data/shishi-1.0.2/lib/shishi.h:1478: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 *ivout[16], const char *in, size_t inlen, data/shishi-1.0.2/lib/starttls.c:95: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 extbuf[STARTTLS_LEN + 1]; data/shishi-1.0.2/lib/starttls.c:98: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 tmpbuf[4]; data/shishi-1.0.2/lib/tktccache.c:172:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *cname[CCACHE_MAX_COMPONENTS + 1]; data/shishi-1.0.2/lib/tktccache.c:194: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 *sname[CCACHE_MAX_COMPONENTS + 1]; data/shishi-1.0.2/lib/tktccache.c:433: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 tmp[1024]; data/shishi-1.0.2/lib/tktccache.c:463: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 *cname[CCACHE_MAX_COMPONENTS + 1]; data/shishi-1.0.2/lib/tktccache.c:485: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 *sname[CCACHE_MAX_COMPONENTS + 1]; data/shishi-1.0.2/lib/tktccache.c:552: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 (cred.key.storage, shishi_key_value (shishi_tkt_key (tkt)), data/shishi-1.0.2/lib/tkts.c:373:8: [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). fh = fopen (filename, "r"); data/shishi-1.0.2/lib/tkts.c:498:8: [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). fh = fopen (filename, "w"); data/shishi-1.0.2/src/ccache2shishi_cmd.c:225: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). outfile = fopen(filename, "w"); data/shishi-1.0.2/src/gl/error.c:173: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 errbuf[1024]; data/shishi-1.0.2/src/gl/strerror.c:39: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 buf[STACKBUF_LEN]; data/shishi-1.0.2/src/gl/strerror.c:69: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 (buf, msg, len + 1); data/shishi-1.0.2/src/gl/version-etc.c:201: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. const char *authtab[10]; data/shishi-1.0.2/src/kdc.h:110: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 addrname[NI_MAXHOST]; data/shishi-1.0.2/src/kdc.h:113: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 clientaddrname[NI_MAXHOST]; data/shishi-1.0.2/src/kdc.h:115: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[BUFSIZ]; /* XXX */ data/shishi-1.0.2/src/keytab2shishi_cmd.c:231: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). outfile = fopen(filename, "w"); data/shishi-1.0.2/src/resume.c:47: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 (cache_db[cache_db_ptr].id, key.data, key.size); data/shishi-1.0.2/src/resume.c:52: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 (cache_db[cache_db_ptr].data, data.data, data.size); data/shishi-1.0.2/src/resume.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 (res.data, cache_db[i].data, res.size); data/shishi-1.0.2/src/server.c:50:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (newls->addrname, "unknown address"); data/shishi-1.0.2/src/server.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 (ls->buf, der, derlen); data/shishi-1.0.2/src/server.c:271:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (ls->clientaddrname, "unknown address"); data/shishi-1.0.2/src/server.c:324:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ls->buf, fatal_krberror, fatal_krberror_len); data/shishi-1.0.2/src/server.c:329:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ls->buf, p, plen); data/shishi-1.0.2/src/shisa_cmd.c:362: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). outfile = fopen(filename, "w"); data/shishi-1.0.2/src/shishi_cmd.c:404: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). outfile = fopen(filename, "w"); data/shishi-1.0.2/src/shishid.c:467: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 (&ls->ai, p, sizeof (*p)); data/shishi-1.0.2/src/shishid_cmd.c:308: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). outfile = fopen(filename, "w"); data/shishi-1.0.2/src/starttls.c:59: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 md5fingerprint[16], md5fingerprinthex[3 * 16 + 1]; data/shishi-1.0.2/src/starttls.c:85:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) &md5fingerprinthex[3 * i], "%.2x:", data/shishi-1.0.2/src/starttls.c:163:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) &serialhex[2 * i], "%.2x", serial[i]); data/shishi-1.0.2/src/starttls.c:284: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 (ls->buf, STARTTLS_SERVER_ACCEPT, STARTTLS_LEN); data/shishi-1.0.2/tests/crypto.c:343: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 out[BUFSIZ]; data/shishi-1.0.2/tests/ticketset.c:93: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 buffer[BUFSIZE]; data/shishi-1.0.2/tests/ticketset.c:94: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 buffer2[BUFSIZE]; data/shishi-1.0.2/db/config.c:155: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). while (strlen (p) > 0 && (p[strlen (p) - 1] == '\n' || data/shishi-1.0.2/db/config.c:155: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). while (strlen (p) > 0 && (p[strlen (p) - 1] == '\n' || data/shishi-1.0.2/db/config.c:156: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). p[strlen (p) - 1] == '\r')) data/shishi-1.0.2/db/config.c:157:4: [1] (buffer) strlen: Does not handle 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] = '\0'; data/shishi-1.0.2/db/file.c:588:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t passwdlen = key && key->password ? strlen (key->password) : 0; data/shishi-1.0.2/db/fileutil.c:72: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). char *out = malloc (strlen (path) * 3 + 1); data/shishi-1.0.2/db/gl/readlink.c:57: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 (name); data/shishi-1.0.2/examples/client-cksum.c:131: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 ("attack at dawn")); data/shishi-1.0.2/examples/client-priv.c:47: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). line[strlen (line) - 1] = '\0'; data/shishi-1.0.2/examples/client-priv.c:59:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). line, strlen (line)); data/shishi-1.0.2/examples/client-safe.c:47: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). line[strlen (line) - 1] = '\0'; data/shishi-1.0.2/examples/client-safe.c:58:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). line, strlen (line)); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:202:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, &dlen, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:239:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read (sock, outbis, dlen); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:270: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). memcpy (buf, out + val, strlen (out + val)); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:360: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). krb5len = strlen (krb5sendauth) + 1; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:366: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). krb5len = strlen (krb5sendclient) + 1; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:373:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, &auth, 1); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:376:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, errormsg, 100); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:422: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). shishi_ap_authenticator_cksumdata_set (ap, cksumdata, strlen (cksumdata)); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:455:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, &auth, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:466:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, (char *) &outlen, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:470:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). outlen = read (sock, out, outlen); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:774: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). hostlen = strlen (hostdata->h_name) + strlen (SERVICE) + 2; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:774:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hostlen = strlen (hostdata->h_name) + strlen (SERVICE) + 2; data/shishi-1.0.2/extra/rsh-redone/rlogin.c:848:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (sock, buf[0], 1) != 1 || *buf[0]) data/shishi-1.0.2/extra/rsh-redone/rlogin.c:859:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, cmd, 5); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:991:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len[1] = read (sock, buf[1], BUFLEN); data/shishi-1.0.2/extra/rsh-redone/rlogin.c:1027:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len[0] = read (0, buf[0], BUFLEN); data/shishi-1.0.2/extra/rsh-redone/rsh.c:127:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, &dlen, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rsh.c:164:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read (sock, outbis, dlen); data/shishi-1.0.2/extra/rsh-redone/rsh.c:195: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). memcpy (buf, out + val, strlen (out + val)); data/shishi-1.0.2/extra/rsh-redone/rsh.c:285: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). krb5len = strlen (krb5sendauth) + 1; data/shishi-1.0.2/extra/rsh-redone/rsh.c:291: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). krb5len = strlen (krb5sendclient) + 1; data/shishi-1.0.2/extra/rsh-redone/rsh.c:298:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, &auth, 1); data/shishi-1.0.2/extra/rsh-redone/rsh.c:301:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, errormsg, 100); data/shishi-1.0.2/extra/rsh-redone/rsh.c:347: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). shishi_ap_authenticator_cksumdata_set (ap, cksumdata, strlen (cksumdata)); data/shishi-1.0.2/extra/rsh-redone/rsh.c:380:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, &auth, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rsh.c:391:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (sock, (char *) &outlen, sizeof (int)); data/shishi-1.0.2/extra/rsh-redone/rsh.c:395:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). outlen = read (sock, out, outlen); data/shishi-1.0.2/extra/rsh-redone/rsh.c:731: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). hostlen = strlen (hostdata->h_name) + strlen (SERVICE) + 2; data/shishi-1.0.2/extra/rsh-redone/rsh.c:731:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hostlen = strlen (hostdata->h_name) + strlen (SERVICE) + 2; data/shishi-1.0.2/extra/rsh-redone/rsh.c:757: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). safewrite (sock, lport, strlen (lport) + 1); data/shishi-1.0.2/extra/rsh-redone/rsh.c:838:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (sock, buf[0], 1) != 1 || *buf[0]) data/shishi-1.0.2/extra/rsh-redone/rsh.c:934:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len[2] = read (esock, buf[2], BUFLEN); data/shishi-1.0.2/extra/rsh-redone/rsh.c:989:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len[1] = read (sock, buf[1], BUFLEN); data/shishi-1.0.2/extra/rsh-redone/rsh.c:1035:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len[0] = read (0, buf[0], BUFLEN); data/shishi-1.0.2/gl/gc-gnulib.c:174:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). tmp = read (fd, data, datalen); data/shishi-1.0.2/gl/getdelim.c:39:41: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc_maybe_unlocked(fp) getc(fp) data/shishi-1.0.2/gl/getdelim.c:45:41: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc_maybe_unlocked(fp) getc(fp) data/shishi-1.0.2/gl/getdomainname.c:71:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t result_len = strlen (result); data/shishi-1.0.2/gl/gethostname.c:55:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (name, uts.nodename, len); data/shishi-1.0.2/gl/gethostname.c:57:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (name, ""); /* Hardcode your system name if you want. */ data/shishi-1.0.2/gl/inet_ntop.c:230: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). tp += strlen (tp); data/shishi-1.0.2/gl/parse-datetime.c:1243: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). # define yystrlen strlen data/shishi-1.0.2/gl/parse-datetime.c:2965: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). wordlen = strlen (word); data/shishi-1.0.2/gl/parse-datetime.c:3222:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t tzsize = strlen (tz) + 1; data/shishi-1.0.2/gl/select.c:113:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). BOOL read, write, except; data/shishi-1.0.2/gl/select.c:220:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read && (rbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) data/shishi-1.0.2/gl/setenv.c:118: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). const size_t namelen = strlen (name); data/shishi-1.0.2/gl/setenv.c:119: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). const size_t vallen = value != NULL ? strlen (value) + 1 : 0; data/shishi-1.0.2/gl/setenv.c:376: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). size_t len = strlen (value); data/shishi-1.0.2/gl/stat.c:88: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). size_t len = strlen (name); data/shishi-1.0.2/gl/stat.c:110: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). size_t len = strlen (name); data/shishi-1.0.2/gl/stdio.in.h:220:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef fgetc data/shishi-1.0.2/gl/stdio.in.h:221:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc rpl_fgetc data/shishi-1.0.2/gl/stdio.in.h:223:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/shishi-1.0.2/gl/stdio.in.h:224:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (fgetc, int, (FILE *stream)); data/shishi-1.0.2/gl/stdio.in.h:226:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (fgetc, int, (FILE *stream)); data/shishi-1.0.2/gl/stdio.in.h:228:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (fgetc); data/shishi-1.0.2/gl/stdio.in.h:597:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/shishi-1.0.2/gl/stdio.in.h:598:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc rpl_fgetc data/shishi-1.0.2/gl/stdio.in.h:600:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/shishi-1.0.2/gl/stdio.in.h:601:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream)); data/shishi-1.0.2/gl/stdio.in.h:603:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getc, int, (FILE *stream)); data/shishi-1.0.2/gl/stdio.in.h:605:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getc); data/shishi-1.0.2/gl/stdio.in.h:611:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/shishi-1.0.2/gl/stdio.in.h:612:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar rpl_getchar data/shishi-1.0.2/gl/stdio.in.h:614:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (getchar, int, (void)); data/shishi-1.0.2/gl/stdio.in.h:615:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (getchar, int, (void)); data/shishi-1.0.2/gl/stdio.in.h:617:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getchar, int, (void)); data/shishi-1.0.2/gl/stdio.in.h:619:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getchar); data/shishi-1.0.2/gl/strdup.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). size_t len = strlen (s) + 1; data/shishi-1.0.2/gl/strerror.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). len = strlen (msg); data/shishi-1.0.2/gl/string.in.h:378:11: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/shishi-1.0.2/gl/string.in.h:379:12: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # define strncat rpl_strncat data/shishi-1.0.2/gl/string.in.h:381:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n) data/shishi-1.0.2/gl/string.in.h:383:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n)); data/shishi-1.0.2/gl/string.in.h:385:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n)); data/shishi-1.0.2/gl/string.in.h:387:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIASWARN (strncat); data/shishi-1.0.2/gl/string.in.h:389:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/shishi-1.0.2/gl/string.in.h:391:18: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_WARN_ON_USE (strncat, "strncat is unportable - " data/shishi-1.0.2/gl/unistd.in.h:1213:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/shishi-1.0.2/gl/unistd.in.h:1214:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read rpl_read data/shishi-1.0.2/gl/unistd.in.h:1216:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count) data/shishi-1.0.2/gl/unistd.in.h:1218:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count)); data/shishi-1.0.2/gl/unistd.in.h:1223:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count)); data/shishi-1.0.2/gl/unistd.in.h:1225:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (read); data/shishi-1.0.2/gl/unistd.in.h:1485:11: [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. # undef usleep data/shishi-1.0.2/gl/unistd.in.h:1486:12: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # define usleep rpl_usleep data/shishi-1.0.2/gl/unistd.in.h:1488:19: [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. _GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); data/shishi-1.0.2/gl/unistd.in.h:1489:19: [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. _GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); data/shishi-1.0.2/gl/unistd.in.h:1492:19: [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. _GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); data/shishi-1.0.2/gl/unistd.in.h:1494:19: [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. _GL_CXXALIAS_SYS (usleep, int, (useconds_t n)); data/shishi-1.0.2/gl/unistd.in.h:1496:19: [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. _GL_CXXALIASWARN (usleep); data/shishi-1.0.2/gl/unistd.in.h:1498:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/shishi-1.0.2/gl/unistd.in.h:1500:18: [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. _GL_WARN_ON_USE (usleep, "usleep is unportable - " data/shishi-1.0.2/gl/unsetenv.c:68: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/shishi-1.0.2/gl/vasnprintf.c:229:24: [1] (buffer) wcslen: Does not handle 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 local_wcslen wcslen data/shishi-1.0.2/gl/vasnprintf.c:1731: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). tmp_length = strlen (arg); data/shishi-1.0.2/gl/vasnprintf.c:2571: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). arg_end = arg + strlen (arg); data/shishi-1.0.2/gl/vasnprintf.c:3667: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). ndigits = strlen (digits); data/shishi-1.0.2/gl/vasnprintf.c:3727:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/shishi-1.0.2/gl/vasnprintf.c:3763:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (digits2) == precision + 1) data/shishi-1.0.2/gl/vasnprintf.c:3863:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/shishi-1.0.2/gl/vasnprintf.c:3899:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (digits2) == precision) data/shishi-1.0.2/gl/vasnprintf.c:4129: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). ndigits = strlen (digits); data/shishi-1.0.2/gl/vasnprintf.c:4186:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/shishi-1.0.2/gl/vasnprintf.c:4221:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (digits2) == precision + 1) data/shishi-1.0.2/gl/vasnprintf.c:4334:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/shishi-1.0.2/gl/vasnprintf.c:4369:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (digits2) == precision) data/shishi-1.0.2/gl/wchar.in.h:562:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE); data/shishi-1.0.2/gl/wchar.in.h:564:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s)); data/shishi-1.0.2/gl/wchar.in.h:565:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIASWARN (wcslen); data/shishi-1.0.2/gl/wchar.in.h:567:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # undef wcslen data/shishi-1.0.2/gl/wchar.in.h:569:18: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_WARN_ON_USE (wcslen, "wcslen is unportable - " data/shishi-1.0.2/gl/wchar.in.h:627:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcsncpy, wchar_t *, data/shishi-1.0.2/gl/wchar.in.h:630:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcsncpy, wchar_t *, data/shishi-1.0.2/gl/wchar.in.h:632:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcsncpy); data/shishi-1.0.2/gl/wchar.in.h:634:9: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). # undef wcsncpy data/shishi-1.0.2/gl/wchar.in.h:636:18: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - " data/shishi-1.0.2/gl/wchar.in.h:680:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_FUNCDECL_SYS (wcsncat, wchar_t *, data/shishi-1.0.2/gl/wchar.in.h:683:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIAS_SYS (wcsncat, wchar_t *, data/shishi-1.0.2/gl/wchar.in.h:685:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIASWARN (wcsncat); data/shishi-1.0.2/gl/wchar.in.h:687:9: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. # undef wcsncat data/shishi-1.0.2/gl/wchar.in.h:689:18: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - " data/shishi-1.0.2/gl/xmalloc.c:121: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). return xmemdup (string, strlen (string) + 1); data/shishi-1.0.2/gl/xvasprintf.c:47: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). totalsize = xsum (totalsize, strlen (next)); data/shishi-1.0.2/gl/xvasprintf.c:66: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). size_t len = strlen (next); data/shishi-1.0.2/lib/cfg.c:382: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). while (strlen (p) > 0 && (p[strlen (p) - 1] == '\n' || data/shishi-1.0.2/lib/cfg.c:382: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). while (strlen (p) > 0 && (p[strlen (p) - 1] == '\n' || data/shishi-1.0.2/lib/cfg.c:383: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). p[strlen (p) - 1] == '\r')) data/shishi-1.0.2/lib/cfg.c:384:4: [1] (buffer) strlen: Does not handle 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] = '\0'; data/shishi-1.0.2/lib/crypto-3des.c:254: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 (SHISHI_DK_CONSTANT), outkey); data/shishi-1.0.2/lib/crypto-aes.c:125: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 (SHISHI_DK_CONSTANT), outkey); data/shishi-1.0.2/lib/crypto-rc4.c:416:5: [1] (buffer) strlen: Does not handle 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 (ARCFOUR_HMAC_CKSUM_KEY_DERIVE_CONSTANT) + 1, data/shishi-1.0.2/lib/diskio.c:76: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). wrapb64len + 1, len, strlen (b64data), data/shishi-1.0.2/lib/diskio.c:231:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). while (*line && strchr ("\n\r\t ", line[strlen (line) - 1])) data/shishi-1.0.2/lib/diskio.c:232: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). line[strlen (line) - 1] = '\0'; data/shishi-1.0.2/lib/diskio.c:249: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 (len <= strlen (line)) data/shishi-1.0.2/lib/diskio.c:255: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). memcpy (buffer, line, strlen (line)); data/shishi-1.0.2/lib/diskio.c:256: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). buffer += strlen (line); data/shishi-1.0.2/lib/diskio.c:257: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). len -= strlen (line); data/shishi-1.0.2/lib/diskio.c:298: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:355: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:434: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:497: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:559: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:608:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:659: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:709: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:759: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:808: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:857: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). if (!base64_decode (b64der, strlen (b64der), der, &derlen)) data/shishi-1.0.2/lib/diskio.c:904: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 (!*line || line[strlen (line) - 1] != '\n') data/shishi-1.0.2/lib/diskio.c:909: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). line[strlen (line) - 1] = '\0'; data/shishi-1.0.2/lib/diskio.c:911:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). printf ("line %d read %ld bytes: %s\n", lno, strlen (line), line); data/shishi-1.0.2/lib/diskio.c:915: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). in_key = strncmp (line, armorbegin, strlen (armorbegin)) == 0; data/shishi-1.0.2/lib/diskio.c:932: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). base64_decode_alloc (line, strlen (line), &b64buffer, NULL); data/shishi-1.0.2/lib/diskio.c:942:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp (line, "Keytype: ", strlen ("Keytype: ")) == 0) data/shishi-1.0.2/lib/diskio.c:949: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 ("Key-Version-Number: ")) == 0) data/shishi-1.0.2/lib/diskio.c:955: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). else if (strncmp (line, "Realm: ", strlen ("Realm: ")) == 0) data/shishi-1.0.2/lib/diskio.c:957: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). shishi_key_realm_set (lkey, line + strlen ("Realm: ")); data/shishi-1.0.2/lib/diskio.c:959:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strncmp (line, "Principal: ", strlen ("Principal: ")) == 0) data/shishi-1.0.2/lib/diskio.c:961:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). shishi_key_principal_set (lkey, line + strlen ("Principal: ")); data/shishi-1.0.2/lib/diskio.c:1018: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). for (i = 0; i < strlen (b64key); i++) data/shishi-1.0.2/lib/error.c:234:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (handle->error, errstr, sizeof (handle->error)); data/shishi-1.0.2/lib/error.c:263:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (handle->error, s, sizeof (handle->error)); data/shishi-1.0.2/lib/init.c:253:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc (src)) != EOF) data/shishi-1.0.2/lib/kdc.c:662: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). string, strlen (string), data/shishi-1.0.2/lib/key.c:372: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). if (!base64_decode (value, strlen (value), (*key)->value, &len)) data/shishi-1.0.2/lib/key.c:528: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). salt, strlen (salt), parameter, outkey); data/shishi-1.0.2/lib/keytab.c:369: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). size_t realmlen = strlen (realm); data/shishi-1.0.2/lib/keytab.c:401:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen (namebuf[num_components]); data/shishi-1.0.2/lib/keytab.c:434: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). uint16_t length = strlen (namebuf[i]); data/shishi-1.0.2/lib/netio.c:85:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). slen = read (sockfd, tmpbuf, *outlen); data/shishi-1.0.2/lib/password.c:127: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). printf ("Read password (length %d): ", strlen (*s)); data/shishi-1.0.2/lib/password.c:128: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). for (i = 0; i < strlen (*s); i++) data/shishi-1.0.2/lib/password.c:156: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). "UTF-8" : handle->stringprocess, strlen (*s)); data/shishi-1.0.2/lib/password.c:157: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). for (i = 0; i < strlen (*s); i++) data/shishi-1.0.2/lib/password.c:178:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). printf ("Stringprep'ed password (length %d): ", strlen (*s)); data/shishi-1.0.2/lib/password.c:179: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). for (i = 0; i < strlen (*s); i++) data/shishi-1.0.2/lib/principal.c:293:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t realmfieldlen = strlen (realmfield); data/shishi-1.0.2/lib/principal.c:470: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 (p, p + 1, strlen (p)); data/shishi-1.0.2/lib/realm.c:44: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). if (realm && strlen (realm) > 0 && strcmp (realm, "(none)") != 0) data/shishi-1.0.2/lib/realm.c:50: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). if (realm && strlen (realm) > 0 && strcmp (realm, "(none)") != 0) data/shishi-1.0.2/lib/starttls.c:105:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read (sockfd, extbuf, sizeof (extbuf)); data/shishi-1.0.2/lib/tkt.c:1396: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). p[strlen (p) - 1] = '\0'; data/shishi-1.0.2/lib/tkt.c:1407: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). p[strlen (p) - 1] = '\0'; data/shishi-1.0.2/lib/tkts.c:939: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). lochint->preauthsaltlen = strlen (lochint->preauthsalt); data/shishi-1.0.2/lib/tkts.c:943: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). lochint->passwd, strlen (lochint->passwd), data/shishi-1.0.2/src/ccache2shishi_cmd.c:96: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(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), data/shishi-1.0.2/src/ccache2shishi_cmd.c:103: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(gengetopt_args_info_purpose) > 0) data/shishi-1.0.2/src/ccache2shishi_cmd.c:106: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(gengetopt_args_info_usage) > 0) data/shishi-1.0.2/src/ccache2shishi_cmd.c:111: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(gengetopt_args_info_description) > 0) data/shishi-1.0.2/src/ccache2shishi_cmd.c:253: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). result = (char*)malloc(strlen(s) + 1); data/shishi-1.0.2/src/gl/error.c:205: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). size_t len = strlen (message) + 1; data/shishi-1.0.2/src/gl/getopt.c:268:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = d->__nonoption_flags_max_len = strlen (orig_str); data/shishi-1.0.2/src/gl/getopt.c:503:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (namelen == (unsigned int) strlen (p->name)) data/shishi-1.0.2/src/gl/getopt.c:588: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). d->__nextchar += strlen (d->__nextchar); data/shishi-1.0.2/src/gl/getopt.c:668: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). d->__nextchar += strlen (d->__nextchar); data/shishi-1.0.2/src/gl/getopt.c:708: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). d->__nextchar += strlen (d->__nextchar); data/shishi-1.0.2/src/gl/getopt.c:713: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). d->__nextchar += strlen (d->__nextchar); data/shishi-1.0.2/src/gl/getopt.c:906:63: [1] (buffer) strlen: Does not handle 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 ((unsigned int) (nameend - d->__nextchar) == strlen (p->name)) data/shishi-1.0.2/src/gl/getopt.c:954: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). d->__nextchar += strlen (d->__nextchar); data/shishi-1.0.2/src/gl/getopt.c:998: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). d->__nextchar += strlen (d->__nextchar); data/shishi-1.0.2/src/gl/getopt.c:1036: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). d->__nextchar += strlen (d->__nextchar); data/shishi-1.0.2/src/gl/getopt.c:1042: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). d->__nextchar += strlen (d->__nextchar); data/shishi-1.0.2/src/gl/strerror.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). len = strlen (msg); data/shishi-1.0.2/src/kdc.c:354: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 (tilllen != 16 || strlen (till) != 15) data/shishi-1.0.2/src/keytab2shishi_cmd.c:100: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(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), data/shishi-1.0.2/src/keytab2shishi_cmd.c:107: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(gengetopt_args_info_purpose) > 0) data/shishi-1.0.2/src/keytab2shishi_cmd.c:110: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(gengetopt_args_info_usage) > 0) data/shishi-1.0.2/src/keytab2shishi_cmd.c:115: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(gengetopt_args_info_description) > 0) data/shishi-1.0.2/src/keytab2shishi_cmd.c:259: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). result = (char*)malloc(strlen(s) + 1); data/shishi-1.0.2/src/shisa.c:67:5: [1] (buffer) strlen: Does not handle 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] = '\0'; data/shishi-1.0.2/src/shisa.c:381: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). passwd, strlen (passwd), data/shishi-1.0.2/src/shisa.c:382: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). salt, salt ? strlen (salt) : 0, data/shishi-1.0.2/src/shisa.c:404: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). dbkey->saltlen = salt ? strlen (salt) : 0; data/shishi-1.0.2/src/shisa_cmd.c:177: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(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), data/shishi-1.0.2/src/shisa_cmd.c:184: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(gengetopt_args_info_purpose) > 0) data/shishi-1.0.2/src/shisa_cmd.c:187: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(gengetopt_args_info_usage) > 0) data/shishi-1.0.2/src/shisa_cmd.c:192: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(gengetopt_args_info_description) > 0) data/shishi-1.0.2/src/shisa_cmd.c:390: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). result = (char*)malloc(strlen(s) + 1); data/shishi-1.0.2/src/shishi_cmd.c:198: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(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), data/shishi-1.0.2/src/shishi_cmd.c:205: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(gengetopt_args_info_purpose) > 0) data/shishi-1.0.2/src/shishi_cmd.c:208: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(gengetopt_args_info_usage) > 0) data/shishi-1.0.2/src/shishi_cmd.c:213: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(gengetopt_args_info_description) > 0) data/shishi-1.0.2/src/shishi_cmd.c:432: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). result = (char*)malloc(strlen(s) + 1); data/shishi-1.0.2/src/shishid.c:407: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 (strncmp (val, FAMILY_IPV4, strlen (FAMILY_IPV4)) == 0) data/shishi-1.0.2/src/shishid.c:410: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). val += strlen (FAMILY_IPV4); data/shishi-1.0.2/src/shishid.c:413:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strncmp (val, FAMILY_IPV6, strlen (FAMILY_IPV6)) == 0) data/shishi-1.0.2/src/shishid.c:416: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). val += strlen (FAMILY_IPV6); data/shishi-1.0.2/src/shishid.c:475:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (ls->addrname, "unknown address", sizeof (ls->addrname)); data/shishi-1.0.2/src/shishid_cmd.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(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), data/shishi-1.0.2/src/shishid_cmd.c:152: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(gengetopt_args_info_purpose) > 0) data/shishi-1.0.2/src/shishid_cmd.c:155: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(gengetopt_args_info_usage) > 0) data/shishi-1.0.2/src/shishid_cmd.c:160: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(gengetopt_args_info_description) > 0) data/shishi-1.0.2/src/shishid_cmd.c:336: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). result = (char*)malloc(strlen(s) + 1); data/shishi-1.0.2/src/starttls.c:105: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 (expiration_time_str[strlen (expiration_time_str) - 1] == '\n') data/shishi-1.0.2/src/starttls.c:106: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). expiration_time_str[strlen (expiration_time_str) - 1] = '\0'; data/shishi-1.0.2/src/starttls.c:109: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 (activation_time_str[strlen (activation_time_str) - 1] == '\n') data/shishi-1.0.2/src/starttls.c:110: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). activation_time_str[strlen (activation_time_str) - 1] = '\0'; data/shishi-1.0.2/tests/authenticator.c:127: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). n == strlen ("foo/bar/baz") && memcmp (buf, "foo/bar/baz", n) == 0) data/shishi-1.0.2/tests/authenticator.c:145: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 (res == SHISHI_OK && n == strlen ("foo") && memcmp (buf, "foo", n) == 0) data/shishi-1.0.2/tests/authenticator.c:164: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). n == strlen ("foo@bar") && memcmp (buf, "foo@bar", n) == 0) data/shishi-1.0.2/tests/authenticator.c:286: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). escapeprint (p, strlen (p)); data/shishi-1.0.2/tests/crypto.c:376: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). out, strlen (drdk[i].dr)); data/shishi-1.0.2/tests/crypto.c:392: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). escapeprint (drdk[i].key, strlen (drdk[i].key)); data/shishi-1.0.2/tests/crypto.c:393: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). hexprint (drdk[i].key, strlen (drdk[i].key)); data/shishi-1.0.2/tests/crypto.c:395: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). binprint (drdk[i].key, strlen (drdk[i].key)); data/shishi-1.0.2/tests/crypto.c:406: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). escapeprint (out, strlen (drdk[i].dr)); data/shishi-1.0.2/tests/crypto.c:407: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). hexprint (out, strlen (drdk[i].dr)); data/shishi-1.0.2/tests/crypto.c:409: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). binprint (out, strlen (drdk[i].dr)); data/shishi-1.0.2/tests/crypto.c:413: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). escapeprint (drdk[i].dr, strlen (drdk[i].dr)); data/shishi-1.0.2/tests/crypto.c:414: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). hexprint (drdk[i].dr, strlen (drdk[i].dr)); data/shishi-1.0.2/tests/crypto.c:416: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). binprint (drdk[i].dr, strlen (drdk[i].dr)); data/shishi-1.0.2/tests/crypto.c:420: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 (memcmp (drdk[i].dr, out, strlen (drdk[i].dr)) != 0) data/shishi-1.0.2/tests/crypto.c:451: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). escapeprint (drdk[i].key, strlen (drdk[i].key)); data/shishi-1.0.2/tests/crypto.c:452: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). hexprint (drdk[i].key, strlen (drdk[i].key)); data/shishi-1.0.2/tests/crypto.c:454: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). binprint (drdk[i].key, strlen (drdk[i].key)); data/shishi-1.0.2/tests/crypto.c:472: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). escapeprint (drdk[i].dk, strlen (drdk[i].dk)); data/shishi-1.0.2/tests/crypto.c:473: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). hexprint (drdk[i].dk, strlen (drdk[i].dk)); data/shishi-1.0.2/tests/crypto.c:475: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). binprint (drdk[i].dk, strlen (drdk[i].dk)); data/shishi-1.0.2/tests/crypto.c:479: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). if (!(shishi_key_length (key2) == strlen (drdk[i].dk) && data/shishi-1.0.2/tests/crypto.c:481: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 (drdk[i].dk)) == 0)) data/shishi-1.0.2/tests/crypto.c:499: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). nfold[i].in, strlen (nfold[i].in), data/shishi-1.0.2/tests/crypto.c:511: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). escapeprint (nfold[i].in, strlen (nfold[i].in)); data/shishi-1.0.2/tests/crypto.c:512: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). hexprint (nfold[i].in, strlen (nfold[i].in)); data/shishi-1.0.2/tests/crypto.c:514: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). binprint (nfold[i].in, strlen (nfold[i].in)); data/shishi-1.0.2/tests/crypto.c:544: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). int n_password = strlen (str2key[i].password); data/shishi-1.0.2/tests/crypto.c:545:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int saltlen = strlen (str2key[i].salt); data/shishi-1.0.2/tests/crypto.c:588: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). escapeprint (str2key[i].key, strlen (str2key[i].key)); data/shishi-1.0.2/tests/crypto.c:589: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). hexprint (str2key[i].key, strlen (str2key[i].key)); data/shishi-1.0.2/tests/crypto.c:591: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). binprint (str2key[i].key, strlen (str2key[i].key)); data/shishi-1.0.2/tests/crypto.c:614: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). pkcs5[i].password, strlen (pkcs5[i].password), data/shishi-1.0.2/tests/crypto.c:615: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). pkcs5[i].salt, strlen (pkcs5[i].salt), data/shishi-1.0.2/tests/crypto.c:626: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). escapeprint (pkcs5[i].password, strlen (pkcs5[i].password)); data/shishi-1.0.2/tests/crypto.c:627: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). hexprint (pkcs5[i].password, strlen (pkcs5[i].password)); data/shishi-1.0.2/tests/crypto.c:629: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). binprint (pkcs5[i].password, strlen (pkcs5[i].password)); data/shishi-1.0.2/tests/crypto.c:633: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). escapeprint (pkcs5[i].salt, strlen (pkcs5[i].salt)); data/shishi-1.0.2/tests/crypto.c:634: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). hexprint (pkcs5[i].salt, strlen (pkcs5[i].salt)); data/shishi-1.0.2/tests/crypto.c:636: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). binprint (pkcs5[i].salt, strlen (pkcs5[i].salt)); data/shishi-1.0.2/tests/multiname.c:64: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). if (clientlen == strlen ("foo/bar") && data/shishi-1.0.2/tests/nonce.c:41: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 (!base64_decode_alloc (asreq, strlen (asreq), &reqder, &reqderlen)) data/shishi-1.0.2/tests/nonce.c:45: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). (asreppart, strlen (asreppart), &repder, &repderlen)) data/shishi-1.0.2/tests/ticketset.c:192: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 (!base64_decode (tkt1ticketb64, strlen (tkt1ticketb64), buffer, &n)) data/shishi-1.0.2/tests/ticketset.c:199:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!base64_decode (tkt1enckdcreppartb64, strlen (tkt1enckdcreppartb64), data/shishi-1.0.2/tests/ticketset.c:207: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 (!base64_decode (tkt1kdcrepb64, strlen (tkt1kdcrepb64), buffer, &n)) data/shishi-1.0.2/tests/ticketset.c:282: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 (!base64_decode (tkt2ticketb64, strlen (tkt2ticketb64), buffer, &n)) data/shishi-1.0.2/tests/ticketset.c:289:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!base64_decode (tkt2enckdcreppartb64, strlen (tkt2enckdcreppartb64), data/shishi-1.0.2/tests/ticketset.c:297: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 (!base64_decode (tkt2kdcrepb64, strlen (tkt2kdcrepb64), buffer, &n)) data/shishi-1.0.2/tests/ticketset.c:514: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 (buffer2) == strlen (tkt1ticketb64) && data/shishi-1.0.2/tests/ticketset.c:514: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 (strlen (buffer2) == strlen (tkt1ticketb64) && data/shishi-1.0.2/tests/ticketset.c:515: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). memcmp (buffer2, tkt1ticketb64, strlen (tkt1ticketb64)) == 0) data/shishi-1.0.2/tests/ticketset.c:529: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 (buffer2) == strlen (tkt1enckdcreppartb64) && data/shishi-1.0.2/tests/ticketset.c:529: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 (strlen (buffer2) == strlen (tkt1enckdcreppartb64) && data/shishi-1.0.2/tests/ticketset.c:531: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 (tkt1enckdcreppartb64)) == 0) data/shishi-1.0.2/tests/ticketset.c:545: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 (buffer2) == strlen (tkt1kdcrepb64) && data/shishi-1.0.2/tests/ticketset.c:545: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 (strlen (buffer2) == strlen (tkt1kdcrepb64) && data/shishi-1.0.2/tests/ticketset.c:546: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). memcmp (buffer2, tkt1kdcrepb64, strlen (tkt1kdcrepb64)) == 0) data/shishi-1.0.2/tests/ticketset.c:560: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 (buffer2) == strlen (tkt2ticketb64) && data/shishi-1.0.2/tests/ticketset.c:560: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 (strlen (buffer2) == strlen (tkt2ticketb64) && data/shishi-1.0.2/tests/ticketset.c:561: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). memcmp (buffer2, tkt2ticketb64, strlen (tkt2ticketb64)) == 0) data/shishi-1.0.2/tests/ticketset.c:575: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 (buffer2) == strlen (tkt2enckdcreppartb64) && data/shishi-1.0.2/tests/ticketset.c:575: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 (strlen (buffer2) == strlen (tkt2enckdcreppartb64) && data/shishi-1.0.2/tests/ticketset.c:577: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 (tkt2enckdcreppartb64)) == 0) data/shishi-1.0.2/tests/ticketset.c:591: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 (buffer2) == strlen (tkt2kdcrepb64) && data/shishi-1.0.2/tests/ticketset.c:591: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 (strlen (buffer2) == strlen (tkt2kdcrepb64) && data/shishi-1.0.2/tests/ticketset.c:592: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). memcmp (buffer2, tkt2kdcrepb64, strlen (tkt2kdcrepb64)) == 0) ANALYSIS SUMMARY: Hits = 1076 Lines analyzed = 97023 in approximately 2.75 seconds (35274 lines/second) Physical Source Lines of Code (SLOC) = 62410 Hits@level = [0] 1062 [1] 320 [2] 498 [3] 62 [4] 170 [5] 26 Hits@level+ = [0+] 2138 [1+] 1076 [2+] 756 [3+] 258 [4+] 196 [5+] 26 Hits/KSLOC@level+ = [0+] 34.2573 [1+] 17.2408 [2+] 12.1134 [3+] 4.13395 [4+] 3.14052 [5+] 0.4166 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.