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/gnuit-4.9.5/src/title.h Examining data/gnuit-4.9.5/src/xstack.h Examining data/gnuit-4.9.5/src/tilde.c Examining data/gnuit-4.9.5/src/title.c Examining data/gnuit-4.9.5/src/window.h Examining data/gnuit-4.9.5/src/xmalloc.c Examining data/gnuit-4.9.5/src/panel.c Examining data/gnuit-4.9.5/src/xstack.c Examining data/gnuit-4.9.5/src/inputline.c Examining data/gnuit-4.9.5/src/gitwipe.c Examining data/gnuit-4.9.5/src/history.h Examining data/gnuit-4.9.5/src/xtime.h Examining data/gnuit-4.9.5/src/configure.c Examining data/gnuit-4.9.5/src/gitview.c Examining data/gnuit-4.9.5/src/signals.c Examining data/gnuit-4.9.5/src/stat.h Examining data/gnuit-4.9.5/src/inputline.h Examining data/gnuit-4.9.5/src/system.c Examining data/gnuit-4.9.5/src/configure.h Examining data/gnuit-4.9.5/src/gitps.c Examining data/gnuit-4.9.5/src/status.h Examining data/gnuit-4.9.5/src/gitkeys.c Examining data/gnuit-4.9.5/src/status.c Examining data/gnuit-4.9.5/src/stdc.h Examining data/gnuit-4.9.5/src/window.c Examining data/gnuit-4.9.5/src/gitwhich.c Examining data/gnuit-4.9.5/src/ansi_stdlib.h Examining data/gnuit-4.9.5/src/tty.c Examining data/gnuit-4.9.5/src/misc.c Examining data/gnuit-4.9.5/src/file.h Examining data/gnuit-4.9.5/src/git.c Examining data/gnuit-4.9.5/src/system.h Examining data/gnuit-4.9.5/src/misc.h Examining data/gnuit-4.9.5/src/history.c Examining data/gnuit-4.9.5/src/xio.h Examining data/gnuit-4.9.5/src/xio.c Examining data/gnuit-4.9.5/src/xstring.h Examining data/gnuit-4.9.5/src/tty.h Examining data/gnuit-4.9.5/src/tilde.h Examining data/gnuit-4.9.5/src/signals.h Examining data/gnuit-4.9.5/src/panel.h Examining data/gnuit-4.9.5/src/xmalloc.h Examining data/gnuit-4.9.5/lib/strtol.c Examining data/gnuit-4.9.5/lib/idcache.h Examining data/gnuit-4.9.5/lib/localcharset.h Examining data/gnuit-4.9.5/lib/xstrtol.c Examining data/gnuit-4.9.5/lib/alloca.c Examining data/gnuit-4.9.5/lib/quote.h Examining data/gnuit-4.9.5/lib/strtoimax.c Examining data/gnuit-4.9.5/lib/xstrtoul.c Examining data/gnuit-4.9.5/lib/dirname.c Examining data/gnuit-4.9.5/lib/mbrtowc.c Examining data/gnuit-4.9.5/lib/rename.c Examining data/gnuit-4.9.5/lib/xmalloc.c Examining data/gnuit-4.9.5/lib/mbchar.h Examining data/gnuit-4.9.5/lib/fcntl.in.h Examining data/gnuit-4.9.5/lib/lstat.c Examining data/gnuit-4.9.5/lib/str-kmp.h Examining data/gnuit-4.9.5/lib/strtoll.c Examining data/gnuit-4.9.5/lib/mbchar.c Examining data/gnuit-4.9.5/lib/gettime.c Examining data/gnuit-4.9.5/lib/sig-handler.h Examining data/gnuit-4.9.5/lib/tempname.h Examining data/gnuit-4.9.5/lib/strnlen.c Examining data/gnuit-4.9.5/lib/string.in.h Examining data/gnuit-4.9.5/lib/strcasecmp.c Examining data/gnuit-4.9.5/lib/intprops.h Examining data/gnuit-4.9.5/lib/wcwidth.c Examining data/gnuit-4.9.5/lib/quote.c Examining data/gnuit-4.9.5/lib/nanosleep.c Examining data/gnuit-4.9.5/lib/xstrndup.c Examining data/gnuit-4.9.5/lib/mbuiter.h Examining data/gnuit-4.9.5/lib/unitypes.h Examining data/gnuit-4.9.5/lib/strings.in.h Examining data/gnuit-4.9.5/lib/strnlen1.c Examining data/gnuit-4.9.5/lib/str-two-way.h Examining data/gnuit-4.9.5/lib/inttypes.in.h Examining data/gnuit-4.9.5/lib/fnmatch.c Examining data/gnuit-4.9.5/lib/strncasecmp.c Examining data/gnuit-4.9.5/lib/gettext.h Examining data/gnuit-4.9.5/lib/mbslen.c Examining data/gnuit-4.9.5/lib/xstrndup.h Examining data/gnuit-4.9.5/lib/idcache.c Examining data/gnuit-4.9.5/lib/fsusage.c Examining data/gnuit-4.9.5/lib/streq.h Examining data/gnuit-4.9.5/lib/xstrtol.h Examining data/gnuit-4.9.5/lib/uniwidth/width.c Examining data/gnuit-4.9.5/lib/uniwidth/cjk.h Examining data/gnuit-4.9.5/lib/stripslash.c Examining data/gnuit-4.9.5/lib/mbsinit.c Examining data/gnuit-4.9.5/lib/time.in.h Examining data/gnuit-4.9.5/lib/strnlen1.h Examining data/gnuit-4.9.5/lib/memmove.c Examining data/gnuit-4.9.5/lib/xstrtoumax.c Examining data/gnuit-4.9.5/lib/signal.in.h Examining data/gnuit-4.9.5/lib/strtoul.c Examining data/gnuit-4.9.5/lib/tempname.c Examining data/gnuit-4.9.5/lib/timespec.h Examining data/gnuit-4.9.5/lib/putenv.c Examining data/gnuit-4.9.5/lib/error.c Examining data/gnuit-4.9.5/lib/xstrtol-error.c Examining data/gnuit-4.9.5/lib/xalloc-die.c Examining data/gnuit-4.9.5/lib/error.h Examining data/gnuit-4.9.5/lib/sys_select.in.h Examining data/gnuit-4.9.5/lib/getopt.in.h Examining data/gnuit-4.9.5/lib/exitfail.h Examining data/gnuit-4.9.5/lib/sys_socket.in.h Examining data/gnuit-4.9.5/lib/malloc.c Examining data/gnuit-4.9.5/lib/fnmatch.in.h Examining data/gnuit-4.9.5/lib/human.h Examining data/gnuit-4.9.5/lib/mbsstr.c Examining data/gnuit-4.9.5/lib/wchar.in.h Examining data/gnuit-4.9.5/lib/sys_time.in.h Examining data/gnuit-4.9.5/lib/sys_stat.in.h Examining data/gnuit-4.9.5/lib/open.c Examining data/gnuit-4.9.5/lib/stdint.in.h Examining data/gnuit-4.9.5/lib/quotearg.c Examining data/gnuit-4.9.5/lib/readlink.c Examining data/gnuit-4.9.5/lib/write.c Examining data/gnuit-4.9.5/lib/strndup.c Examining data/gnuit-4.9.5/lib/gettimeofday.c Examining data/gnuit-4.9.5/lib/mkstemp.c Examining data/gnuit-4.9.5/lib/basename.c Examining data/gnuit-4.9.5/lib/full-write.c Examining data/gnuit-4.9.5/lib/alloca.in.h Examining data/gnuit-4.9.5/lib/strtoumax.c Examining data/gnuit-4.9.5/lib/fnmatch_loop.c Examining data/gnuit-4.9.5/lib/sigprocmask.c Examining data/gnuit-4.9.5/lib/strcasestr.c Examining data/gnuit-4.9.5/lib/quotearg.h Examining data/gnuit-4.9.5/lib/argmatch.h Examining data/gnuit-4.9.5/lib/strtoull.c Examining data/gnuit-4.9.5/lib/stdbool.in.h Examining data/gnuit-4.9.5/lib/getopt1.c Examining data/gnuit-4.9.5/lib/uniwidth.h Examining data/gnuit-4.9.5/lib/verify.h Examining data/gnuit-4.9.5/lib/fsusage.h Examining data/gnuit-4.9.5/lib/sigaction.c Examining data/gnuit-4.9.5/lib/getopt_int.h Examining data/gnuit-4.9.5/lib/utime.c Examining data/gnuit-4.9.5/lib/dirname.h Examining data/gnuit-4.9.5/lib/safe-write.h Examining data/gnuit-4.9.5/lib/xalloc.h Examining data/gnuit-4.9.5/lib/safe-read.c Examining data/gnuit-4.9.5/lib/strerror.c Examining data/gnuit-4.9.5/lib/malloca.c Examining data/gnuit-4.9.5/lib/full-read.h Examining data/gnuit-4.9.5/lib/human.c Examining data/gnuit-4.9.5/lib/stdlib.in.h Examining data/gnuit-4.9.5/lib/localcharset.c Examining data/gnuit-4.9.5/lib/full-read.c Examining data/gnuit-4.9.5/lib/errno.in.h Examining data/gnuit-4.9.5/lib/safe-write.c Examining data/gnuit-4.9.5/lib/wctype.in.h Examining data/gnuit-4.9.5/lib/safe-read.h Examining data/gnuit-4.9.5/lib/getopt.c Examining data/gnuit-4.9.5/lib/full-write.h Examining data/gnuit-4.9.5/lib/malloca.h Examining data/gnuit-4.9.5/lib/argmatch.c Examining data/gnuit-4.9.5/lib/exitfail.c Examining data/gnuit-4.9.5/lib/unistd.in.h Examining data/gnuit-4.9.5/link-warning.h FINAL RESULTS: data/gnuit-4.9.5/lib/readlink.c:37: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 *path, char *buf, size_t bufsize) data/gnuit-4.9.5/lib/sys_stat.in.h:340:18: [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/gnuit-4.9.5/lib/unistd.in.h:119: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/gnuit-4.9.5/lib/unistd.in.h:120:12: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. extern int chown (const char *file, uid_t uid, gid_t gid); data/gnuit-4.9.5/lib/unistd.in.h:124: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/gnuit-4.9.5/lib/unistd.in.h:125:10: [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(f,u,g) \ data/gnuit-4.9.5/lib/unistd.in.h:129:6: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. chown (f, u, g)) data/gnuit-4.9.5/lib/unistd.in.h:532: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. extern int readlink (const char *file, char *buf, size_t bufsize); data/gnuit-4.9.5/lib/unistd.in.h:535: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/gnuit-4.9.5/lib/unistd.in.h:536: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. # define readlink(f,b,s) \ data/gnuit-4.9.5/lib/unistd.in.h:539:6: [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 (f, b, s)) data/gnuit-4.9.5/src/panel.c:2402:6: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. chown(dest, uid, gid); data/gnuit-4.9.5/src/panel.c:2435:4: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. chown(dest, uid, gid); data/gnuit-4.9.5/src/panel.c:2496:2: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. chown(dest, uid, gid); data/gnuit-4.9.5/src/xio.c:136: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. chars = readlink(path, buf, size); data/gnuit-4.9.5/src/xio.h:45: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. extern int readlink PROTO ((const char *, char *, size_t)); data/gnuit-4.9.5/lib/error.c:205: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/gnuit-4.9.5/lib/error.c:317: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/gnuit-4.9.5/lib/error.h:30:22: [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/gnuit-4.9.5/lib/fnmatch.c:161:23: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). # define STRCAT(D, S) strcat (D, S) data/gnuit-4.9.5/lib/fnmatch.c:192:25: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # define STRCAT(D, S) wcscat (D, S) data/gnuit-4.9.5/lib/idcache.c:88:7: [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 (match->name, name); data/gnuit-4.9.5/lib/idcache.c:131: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 (tail->name, user); data/gnuit-4.9.5/lib/idcache.c:170:7: [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 (match->name, name); data/gnuit-4.9.5/lib/idcache.c:213: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 (tail->name, group); data/gnuit-4.9.5/lib/localcharset.c:202:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); data/gnuit-4.9.5/lib/localcharset.c:203:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (res_ptr + res_size - (l2 + 1), buf2); data/gnuit-4.9.5/lib/strerror.c:333:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (msg_buf, fmt, n); data/gnuit-4.9.5/src/configure.c:166:2: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(line, "%s", buf); data/gnuit-4.9.5/src/configure.c:208: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(var_name, buf); data/gnuit-4.9.5/src/git.c:533:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s: not defined.", str); data/gnuit-4.9.5/src/git.c:1399:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(question, "%s: %s", command->name, answer); data/gnuit-4.9.5/src/git.c:1455:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "\"%s\"", ptr); data/gnuit-4.9.5/src/git.c:1526:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "\"%s\"", t->path); data/gnuit-4.9.5/src/git.c:1534:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "\"%s\"", ptr); data/gnuit-4.9.5/src/git.c:1560:4: [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(tmp + oldtmplen + 1, t->dir_entry[entry].name); data/gnuit-4.9.5/src/git.c:1583:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(*dest, tmp); data/gnuit-4.9.5/src/git.c:1664: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(key_seq, key_seq_ptr); data/gnuit-4.9.5/src/git.c:1772:24: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). il_set_static_text(strcat(truncate_string(panel_get_path(src_panel), temp, data/gnuit-4.9.5/src/git.c:1845:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(exit_msg, "Exit %s? ", PRODUCT); data/gnuit-4.9.5/src/git.c:1920:5: [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(copyright); data/gnuit-4.9.5/src/git.c:1967:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(stdout_log_template, "%s/gnuit.1.XXXXXX", temporary_directory); data/gnuit-4.9.5/src/git.c:1968:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(stderr_log_template, "%s/gnuit.2.XXXXXX", temporary_directory); data/gnuit-4.9.5/src/git.c:2036:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(panel_path, "%s/%s", current_path, left_panel_path); data/gnuit-4.9.5/src/git.c:2048:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(panel_path, "%s/%s", current_path, right_panel_path); data/gnuit-4.9.5/src/git.c:2167:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s: %s", command->name, cmd); data/gnuit-4.9.5/src/git.c:2175:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, data/gnuit-4.9.5/src/git.c:2248:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, data/gnuit-4.9.5/src/git.c:2684:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ptr, "\"%s\" ", srcptr); data/gnuit-4.9.5/src/git.c:2686:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ptr, "%s ", srcptr); data/gnuit-4.9.5/src/git.c:2691:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ptr, " \"%s\" ", srcptr); data/gnuit-4.9.5/src/git.c:2693:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ptr, " %s ", srcptr); data/gnuit-4.9.5/src/git.c:2720:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ptr, " \"%s\"", srcptr); data/gnuit-4.9.5/src/git.c:2722:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ptr, " %s", srcptr); data/gnuit-4.9.5/src/git.c:3225:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmpfn,"%s/%s",temporary_directory,template); data/gnuit-4.9.5/src/git.c:3251:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cmd,"%s %s",pager,tmpfn); data/gnuit-4.9.5/src/gitkeys.c:365:5: [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(copyright, PRODUCT, VERSION); data/gnuit-4.9.5/src/gitps.c:481:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s: not defined.", str); data/gnuit-4.9.5/src/gitps.c:738:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(stdout_log_name,stdout_log_template); data/gnuit-4.9.5/src/gitps.c:743:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(stderr_log_name,stderr_log_template); data/gnuit-4.9.5/src/gitps.c:784:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ps_cmd, args[i]); data/gnuit-4.9.5/src/gitps.c:790:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(ps_cmd) != 0) data/gnuit-4.9.5/src/gitps.c:852: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(key_seq, key_seq_ptr); data/gnuit-4.9.5/src/gitps.c:1116:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(title_text, " %s %s - Process Viewer/Killer", PRODUCT, VERSION); data/gnuit-4.9.5/src/gitps.c:1172:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(stdout_log_template, "%s/gitps.1.XXXXXX", temporary_directory); data/gnuit-4.9.5/src/gitps.c:1173:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(stderr_log_template, "%s/gitps.2.XXXXXX", temporary_directory); data/gnuit-4.9.5/src/gitps.c:1498:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "Error: %s", (e == EPERM) ? no_perm:no_proc); data/gnuit-4.9.5/src/gitview.c:299:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s: not defined.", str); data/gnuit-4.9.5/src/gitview.c:442: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(key_seq, key_seq_ptr); data/gnuit-4.9.5/src/gitview.c:716:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(title_text, " %s %s - Hex/Ascii File Viewer", PRODUCT, VERSION); data/gnuit-4.9.5/src/gitview.c:793:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(header_text, " File: %s", filename); data/gnuit-4.9.5/src/gitwhich.c:81:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s/%s", pc - len, name); data/gnuit-4.9.5/src/gitwhich.c:86:11: [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. found = (access(tmp, 1) == 0); data/gnuit-4.9.5/src/history.c:63: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). # ifndef strcpy data/gnuit-4.9.5/src/history.c:64:14: [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). extern char *strcpy (); data/gnuit-4.9.5/src/history.c:66:23: [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). #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) data/gnuit-4.9.5/src/history.c:514:7: [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 (return_val, home); data/gnuit-4.9.5/src/history.c:723:2: [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 (buffer + j, the_history[i]->line); data/gnuit-4.9.5/src/history.c:1105: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 (temp + ll + 2, emsg); data/gnuit-4.9.5/src/history.c:1171:4: [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 (new + j, subst_lhs); data/gnuit-4.9.5/src/history.c:1493: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, temp); data/gnuit-4.9.5/src/history.c:1521:6: [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 + j - sl, s); \ data/gnuit-4.9.5/src/history.c:1582:7: [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 (string + 4, hstring); data/gnuit-4.9.5/src/history.c:1704:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (temp, result); data/gnuit-4.9.5/src/history.c:1897:4: [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 + offset, list[i]); data/gnuit-4.9.5/src/inputline.c:200:2: [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(il->buffer + region_start, il->buffer + region_end); data/gnuit-4.9.5/src/inputline.c:1103: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(il->buffer + il->static_length, hist->line); data/gnuit-4.9.5/src/inputline.c:1126: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(il->buffer + il->static_length, hist->line); data/gnuit-4.9.5/src/misc.c:93:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bindir, "%s%s", PREFIX, prefix_relative_bin_dir); data/gnuit-4.9.5/src/misc.c:95:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(termdir, "%s%s", PREFIX, prefix_relative_term_dir); data/gnuit-4.9.5/src/misc.c:117:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(new_value, "%s:%s", path, bindir); data/gnuit-4.9.5/src/misc.c:222:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(configfile, termdir); data/gnuit-4.9.5/src/misc.c:223:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(configfile, SYSTEM_CONFIGFILE_PREFIX); data/gnuit-4.9.5/src/misc.c:240:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(configfile, g_home); data/gnuit-4.9.5/src/misc.c:241:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(configfile, USER_CONFIGFILE_PREFIX); data/gnuit-4.9.5/src/misc.c:242:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(configfile, tty_type); data/gnuit-4.9.5/src/misc.c:250:2: [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(configfile, g_home); data/gnuit-4.9.5/src/misc.c:251:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(configfile, OLD_USER_CONFIGFILE_PREFIX); data/gnuit-4.9.5/src/misc.c:252:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(configfile, tty_type); data/gnuit-4.9.5/src/misc.c:260:6: [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(configfile, termdir); data/gnuit-4.9.5/src/misc.c:261:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(configfile, SYSTEM_CONFIGFILE_PREFIX); data/gnuit-4.9.5/src/misc.c:262:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(configfile, tty_type); data/gnuit-4.9.5/src/misc.c:272: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(configfile, termdir); data/gnuit-4.9.5/src/misc.c:273:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(configfile, SYSTEM_CONFIGFILE_PREFIX); data/gnuit-4.9.5/src/misc.c:306:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newsection,gitprefix); data/gnuit-4.9.5/src/misc.c:307:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newsection,section+strlen(gitfmprefix)); data/gnuit-4.9.5/src/misc.c:602:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(environment_string, "%s=%s", variable, value); data/gnuit-4.9.5/src/panel.c:778:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(message, format, string); data/gnuit-4.9.5/src/panel.c:796:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(message, format, string1, string2); data/gnuit-4.9.5/src/panel.c:982:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(this->dir_entry[entry].owner,"%-7s", owner); data/gnuit-4.9.5/src/panel.c:994:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(this->dir_entry[entry].group,"%-7s", group); data/gnuit-4.9.5/src/panel.c:1085:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(old_path, this->path); data/gnuit-4.9.5/src/panel.c:1123:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(this->path, directory); data/gnuit-4.9.5/src/panel.c:1222:2: [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(this->dir_entry[this->entries].name, d->d_name); data/gnuit-4.9.5/src/panel.c:1460:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s (%sB) in %s file%s", longnumbuf, shortnum, data/gnuit-4.9.5/src/panel.c:1465:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s in %s file%s", longnumbuf, filestr, (numfiles > 1) ? "s" : ""); data/gnuit-4.9.5/src/panel.c:1534:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(string, rights); data/gnuit-4.9.5/src/panel.c:1641:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "%10s", temp_rights); data/gnuit-4.9.5/src/panel.c:1673:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str + maxname, " %10s %10s", data/gnuit-4.9.5/src/panel.c:1681:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str + maxname, " %10s %10s",size,temp_rights); data/gnuit-4.9.5/src/panel.c:2284:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp, "%s/%s", dest, src); data/gnuit-4.9.5/src/panel.c:2286:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (this->chkdest && access(temp, 0) == 0) data/gnuit-4.9.5/src/panel.c:2310:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(COPY) cp -r \"%s\" \"%s\"", src, dest); data/gnuit-4.9.5/src/panel.c:2315:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp, "cp -r \"%s\" \"%s\"", src, dest); data/gnuit-4.9.5/src/panel.c:2343:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(dest, src); data/gnuit-4.9.5/src/panel.c:2354:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (this->chkdest && (access(dest, 0) == 0)) data/gnuit-4.9.5/src/panel.c:2367:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(COPY) [ 0%%] %s", src); data/gnuit-4.9.5/src/panel.c:2369:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(COPY) [0 bytes] %s", src); data/gnuit-4.9.5/src/panel.c:2476:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(COPY) [%3d%%] %s", data/gnuit-4.9.5/src/panel.c:2482:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(COPY) [%Ld bytes] %s", data/gnuit-4.9.5/src/panel.c:2485:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(COPY) [%ld bytes] %s", data/gnuit-4.9.5/src/panel.c:2568:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp, "%s/%s", to, from); data/gnuit-4.9.5/src/panel.c:2570:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (this->chkdest && access(temp, 0) == 0) data/gnuit-4.9.5/src/panel.c:2594:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(MOVE) mv -f \"%s\" \"%s\"", from, to); data/gnuit-4.9.5/src/panel.c:2599:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp, "mv -f \"%s\" \"%s\"", from, to); data/gnuit-4.9.5/src/panel.c:2629:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(to, from); data/gnuit-4.9.5/src/panel.c:2657:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (this->chkdest && (access(to, 0) == 0)) data/gnuit-4.9.5/src/panel.c:2668:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(MOVE) %s", from); data/gnuit-4.9.5/src/panel.c:2825:6: [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(old_path, this->path); data/gnuit-4.9.5/src/panel.c:2872:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cmd, "./\"%s\"", name); data/gnuit-4.9.5/src/panel.c:2916:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "Copy %s to: ", cutname(name, 0, 0)); data/gnuit-4.9.5/src/panel.c:2921:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(file, "%s/%s", other->path, name); data/gnuit-4.9.5/src/panel.c:2996:6: [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(dir + len, name); data/gnuit-4.9.5/src/panel.c:3080:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(DELETE) %s", name); data/gnuit-4.9.5/src/panel.c:3117:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, "rm -r -f \"%s\"", name); data/gnuit-4.9.5/src/panel.c:3329:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "Move %s to: ", cutname(name, 0, 0)); data/gnuit-4.9.5/src/panel.c:3334:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(file, "%s/%s", other->path, name); data/gnuit-4.9.5/src/panel.c:3420:6: [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(dir + len, name); data/gnuit-4.9.5/src/panel.c:3485:2: [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(this->path, new_dir); data/gnuit-4.9.5/src/panel.c:3492:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(this->path, new_dir); data/gnuit-4.9.5/src/panel.c:3613:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(file2, "%s/%s", other->path, name2); data/gnuit-4.9.5/src/panel.c:3617:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(CMP) %s", file1); data/gnuit-4.9.5/src/panel.c:3619:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(CMP) [ 0%%] %s", file1); data/gnuit-4.9.5/src/panel.c:3697:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(CMP) %s", file1); data/gnuit-4.9.5/src/panel.c:3699:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(CMP) [%3d%%] %s", data/gnuit-4.9.5/src/panel.c:4027:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "(CASE) Renaming %s", name); data/gnuit-4.9.5/src/panel.c:4034:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(new_name, F_OK) == 0) data/gnuit-4.9.5/src/panel.c:4050:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command, "rm -r -f \"%s\"", new_name); data/gnuit-4.9.5/src/panel.c:4325:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, data/gnuit-4.9.5/src/panel.c:4331:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, data/gnuit-4.9.5/src/panel.c:4338:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s: No suitable files found (smaller than %ldKb).", data/gnuit-4.9.5/src/panel.c:4341:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s: No regular files found.", fn); data/gnuit-4.9.5/src/panel.c:4987:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(extension, "*%s", ptr); data/gnuit-4.9.5/src/status.c:209:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(date_str, "%s %s %02d %d", data/gnuit-4.9.5/src/system.c:108:2: [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(stdout_log_name,stdout_log_template); data/gnuit-4.9.5/src/system.c:113:2: [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(stderr_log_name,stderr_log_template); data/gnuit-4.9.5/src/system.c:165:2: [4] (shell) execle: 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. execle("/bin/sh", "sh", "-c", command, (char *)NULL, environ); data/gnuit-4.9.5/src/system.c:254:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s: cannot open log file %s", command, stderr_log_name); data/gnuit-4.9.5/src/tilde.c:49: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). # ifndef strcpy data/gnuit-4.9.5/src/tilde.c:50:14: [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). extern char *strcpy (); data/gnuit-4.9.5/src/tilde.c:52:23: [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). #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) data/gnuit-4.9.5/src/tilde.c:203:7: [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 + result_index, expansion); data/gnuit-4.9.5/src/tilde.c:251:2: [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 (temp_name, temp_home); data/gnuit-4.9.5/src/tilde.c:252:7: [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 (temp_name + home_len, dirname + 1); data/gnuit-4.9.5/src/tilde.c:282:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (temp_name, expansion); data/gnuit-4.9.5/src/tilde.c:283:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (temp_name + len, dirname + i); data/gnuit-4.9.5/src/tilde.c:295:4: [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 (temp_name, user_entry->pw_dir); data/gnuit-4.9.5/src/tilde.c:296:4: [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 (temp_name + len, dirname + i); data/gnuit-4.9.5/src/title.c:138:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(product_name, " %s %s", PRODUCT, VERSION); data/gnuit-4.9.5/src/tty.c:982:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat((char *)keystr, x); data/gnuit-4.9.5/src/tty.c:989:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat((char *)keystr, x); data/gnuit-4.9.5/src/tty.c:2431:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp, "%c]2;%s - %s%c", 0x1b, PRODUCT, printable_string, 0x07); data/gnuit-4.9.5/lib/argmatch.c:264:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((cp = getenv ("VERSION_CONTROL"))) data/gnuit-4.9.5/lib/fnmatch_loop.c:209:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/gnuit-4.9.5/lib/fnmatch_loop.c:989:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/gnuit-4.9.5/lib/fnmatch_loop.c:1042:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/gnuit-4.9.5/lib/getopt.c:104: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/gnuit-4.9.5/lib/getopt.c:239: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/gnuit-4.9.5/lib/getopt.c:1111: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/gnuit-4.9.5/lib/getopt.c:1133: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/gnuit-4.9.5/lib/getopt.in.h:38: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/gnuit-4.9.5/lib/getopt.in.h:39: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/gnuit-4.9.5/lib/getopt.in.h:48: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/gnuit-4.9.5/lib/getopt.in.h:48: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/gnuit-4.9.5/lib/getopt.in.h:49: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/gnuit-4.9.5/lib/getopt.in.h:49: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/gnuit-4.9.5/lib/getopt.in.h:203: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/gnuit-4.9.5/lib/getopt.in.h:207: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/gnuit-4.9.5/lib/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/gnuit-4.9.5/lib/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/gnuit-4.9.5/lib/human.c:408: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. return getenv ("POSIXLY_CORRECT") ? 512 : DEFAULT_BLOCK_SIZE; data/gnuit-4.9.5/lib/human.c:418:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. && ! (spec = getenv ("BLOCK_SIZE")) data/gnuit-4.9.5/lib/human.c:419:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. && ! (spec = getenv ("BLOCKSIZE"))) data/gnuit-4.9.5/lib/localcharset.c:127: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. dir = getenv ("CHARSETALIASDIR"); data/gnuit-4.9.5/lib/localcharset.c:347:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/gnuit-4.9.5/lib/localcharset.c:350: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. locale = getenv ("LC_CTYPE"); data/gnuit-4.9.5/lib/localcharset.c:352: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. locale = getenv ("LANG"); data/gnuit-4.9.5/lib/localcharset.c:398:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/gnuit-4.9.5/lib/localcharset.c:401: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. locale = getenv ("LC_CTYPE"); data/gnuit-4.9.5/lib/localcharset.c:403: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. locale = getenv ("LANG"); data/gnuit-4.9.5/lib/localcharset.c:431: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. locale = getenv ("LC_ALL"); data/gnuit-4.9.5/lib/localcharset.c:434:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/gnuit-4.9.5/lib/localcharset.c:436:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/gnuit-4.9.5/lib/tempname.c:77:26: [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. # define __secure_getenv getenv data/gnuit-4.9.5/src/ansi_stdlib.h:39: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/gnuit-4.9.5/src/git.c:1616:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv(variable) == NULL) data/gnuit-4.9.5/src/git.c:1618:45: [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 (alternate_variable && (alternate_value=getenv(alternate_variable))) data/gnuit-4.9.5/src/git.c:1835: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. g_home = getenv("HOME"); data/gnuit-4.9.5/src/git.c:1847:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("COLORTERM") != NULL) data/gnuit-4.9.5/src/git.c:1851:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "hvcblp")) != -1) data/gnuit-4.9.5/src/git.c:1958:27: [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. temporary_directory = getenv("TMPDIR"); data/gnuit-4.9.5/src/git.c:3247: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. pager=getenv("GNUIT_PAGER"); data/gnuit-4.9.5/src/gitps.c:1047: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. g_home = getenv("HOME"); data/gnuit-4.9.5/src/gitps.c:1054:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("COLORTERM") != NULL) data/gnuit-4.9.5/src/gitps.c:1058:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "hvcblp")) != -1) data/gnuit-4.9.5/src/gitps.c:1128:27: [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. temporary_directory = getenv("TMPDIR"); data/gnuit-4.9.5/src/gitview.c:655: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. g_home = getenv("HOME"); data/gnuit-4.9.5/src/gitview.c:662:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("COLORTERM") != NULL) data/gnuit-4.9.5/src/gitview.c:666:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "hvcblp")) != -1) data/gnuit-4.9.5/src/gitwhich.c:104:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *path = getenv("PATH"); data/gnuit-4.9.5/src/gitwipe.c:156:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/gnuit-4.9.5/src/history.c:505: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/gnuit-4.9.5/src/misc.c:109:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *path = getenv("PATH"); data/gnuit-4.9.5/src/tilde.c:233:33: [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 *temp_home = (char *)getenv ("HOME"); data/gnuit-4.9.5/src/title.c:143: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. mail_file=getenv("MAIL"); data/gnuit-4.9.5/src/tty.c:1908:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((env = getenv("COLUMNS"))) data/gnuit-4.9.5/src/tty.c:1911:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((env = getenv("LINES"))) data/gnuit-4.9.5/src/tty.c:2209:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *termtype = getenv("TERM"); data/gnuit-4.9.5/src/xio.c:256:11: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. result = getwd(cwd); data/gnuit-4.9.5/lib/alloca.c:133: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/gnuit-4.9.5/lib/argmatch.c:256:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. program_name = (char *) argv[0]; data/gnuit-4.9.5/lib/basename.c:97: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 + 2, base, length); data/gnuit-4.9.5/lib/dirname.c:79: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 (dir, file, length); data/gnuit-4.9.5/lib/error.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 errbuf[1024]; data/gnuit-4.9.5/lib/fcntl.in.h:55:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/gnuit-4.9.5/lib/fcntl.in.h:56: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). # define open rpl_open data/gnuit-4.9.5/lib/fcntl.in.h:57: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). extern int open (const char *filename, int flags, ...); data/gnuit-4.9.5/lib/fnmatch.c:168:49: [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 MEMPCPY(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N))) data/gnuit-4.9.5/lib/fnmatch.c:213: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 s[CHAR_CLASS_MAX_LENGTH + 1]; data/gnuit-4.9.5/lib/fnmatch_loop.c:462: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. char str[c1]; data/gnuit-4.9.5/lib/fnmatch_loop.c:683: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 str[c1]; data/gnuit-4.9.5/lib/fsusage.c:60: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/gnuit-4.9.5/lib/fsusage.c:139: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 (disk, O_RDONLY); data/gnuit-4.9.5/lib/gettext.h:200: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 msg_ctxt_id[msgctxt_len + msgid_len]; data/gnuit-4.9.5/lib/gettext.h:202:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/gnuit-4.9.5/lib/gettext.h:210: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/gnuit-4.9.5/lib/gettext.h:212: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/gnuit-4.9.5/lib/gettext.h:246: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 msg_ctxt_id[msgctxt_len + msgid_len]; data/gnuit-4.9.5/lib/gettext.h:248:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/gnuit-4.9.5/lib/gettext.h:256: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/gnuit-4.9.5/lib/gettext.h:258: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/gnuit-4.9.5/lib/human.c:90: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 * INT_STRLEN_BOUND (uintmax_t) + 1]; data/gnuit-4.9.5/lib/human.c:92: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, number, numberlen); data/gnuit-4.9.5/lib/human.c:110: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 (d, buf + i, grouplen); data/gnuit-4.9.5/lib/human.c:115: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 (d, thousands_sep, thousands_seplen); data/gnuit-4.9.5/lib/human.c:232:2: [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 (buf, "%.0Lf", adjust_value (inexact_style, damt)); data/gnuit-4.9.5/lib/human.c:250:2: [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 (buf, "%.1Lf", adjust_value (inexact_style, damt)); data/gnuit-4.9.5/lib/human.c:258:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "%.0Lf", data/gnuit-4.9.5/lib/human.c:318: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, decimal_point, decimal_pointlen); data/gnuit-4.9.5/lib/human.c:339: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, decimal_point, decimal_pointlen); data/gnuit-4.9.5/lib/idcache.c:44: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 name[FLEXIBLE_ARRAY_MEMBER]; data/gnuit-4.9.5/lib/localcharset.c:139: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 (file_name, dir, dir_len); data/gnuit-4.9.5/lib/localcharset.c:142: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 (file_name + dir_len + add_slash, base, base_len + 1); data/gnuit-4.9.5/lib/localcharset.c:146:38: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) data/gnuit-4.9.5/lib/localcharset.c:158: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. char buf1[50+1]; data/gnuit-4.9.5/lib/localcharset.c:159: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. char buf2[50+1]; data/gnuit-4.9.5/lib/localcharset.c:345:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/gnuit-4.9.5/lib/localcharset.c:371:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/gnuit-4.9.5/lib/localcharset.c:379:7: [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 (buf, "CP%u", GetACP ()); data/gnuit-4.9.5/lib/localcharset.c:416: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[2 + 10 + 1]; data/gnuit-4.9.5/lib/localcharset.c:419: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 (buf, "CP%u", GetACP ()); data/gnuit-4.9.5/lib/localcharset.c:425: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[2 + 10 + 1]; data/gnuit-4.9.5/lib/localcharset.c:454:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/gnuit-4.9.5/lib/localcharset.c:470: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 (buf, "CP%u", cp[0]); data/gnuit-4.9.5/lib/malloca.c:48: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/gnuit-4.9.5/lib/malloca.c:52: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/gnuit-4.9.5/lib/mbchar.h:167: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[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */ data/gnuit-4.9.5/lib/mbchar.h:264: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 (&new_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes); data/gnuit-4.9.5/lib/mbrtowc.c:36: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 internal_state[4]; data/gnuit-4.9.5/lib/mbrtowc.c:59:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/gnuit-4.9.5/lib/mbsstr.c:261: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 (&rhaystack, &iter_haystack, sizeof (mbui_iterator_t)); data/gnuit-4.9.5/lib/mbuiter.h:194: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 (&new_iter->state, &old_iter->state, sizeof (mbstate_t)); data/gnuit-4.9.5/lib/mkstemp.c:40:1: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). mkstemp (template) data/gnuit-4.9.5/lib/open.c:30:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open (filename, flags, mode); data/gnuit-4.9.5/lib/open.c:43:1: [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). open (const char *filename, int flags, ...) data/gnuit-4.9.5/lib/putenv.c:120:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy ((void *) new_environ, (void *) environ, data/gnuit-4.9.5/lib/quotearg.c:633: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 slot0[256]; data/gnuit-4.9.5/lib/stdlib.in.h:219:11: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). # define mkstemp rpl_mkstemp data/gnuit-4.9.5/lib/stdlib.in.h:220: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). extern int mkstemp (char * /*template*/); data/gnuit-4.9.5/lib/stdlib.in.h:226: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/gnuit-4.9.5/lib/stdlib.in.h:227:10: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). # define mkstemp(t) \ data/gnuit-4.9.5/lib/stdlib.in.h:230:6: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). mkstemp (t)) data/gnuit-4.9.5/lib/strerror.c:332:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)]; data/gnuit-4.9.5/lib/strndup.c:36: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/gnuit-4.9.5/lib/tempname.c:66:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define small_open open data/gnuit-4.9.5/lib/tempname.c:67:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define large_open open data/gnuit-4.9.5/lib/tempname.c:176: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 (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx); data/gnuit-4.9.5/lib/uniwidth/width.c:35: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 nonspacing_table_data[26*64] = { data/gnuit-4.9.5/lib/uniwidth/width.c:271: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 nonspacing_table_ind[240] = { data/gnuit-4.9.5/lib/utime.c:51: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/gnuit-4.9.5/lib/utime.c:70: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 (file, O_RDWR); data/gnuit-4.9.5/lib/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/gnuit-4.9.5/lib/xstrtol-error.c:55: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 option_buffer[2]; data/gnuit-4.9.5/link-warning.h:18:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ({ static const char warning[sizeof (message)] \ data/gnuit-4.9.5/src/ansi_stdlib.h:27:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). extern int atoi (); data/gnuit-4.9.5/src/ansi_stdlib.h:28:17: [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). extern long int atol (); data/gnuit-4.9.5/src/configure.c:51: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 line[MAXLINE]; data/gnuit-4.9.5/src/configure.c:61:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fileptr = fopen(file_name, "r"); data/gnuit-4.9.5/src/configure.c:153:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXLINE], *ptr, *tmp; data/gnuit-4.9.5/src/file.h:61:17: [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 fopen64 fopen data/gnuit-4.9.5/src/file.h:63:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define open64 open data/gnuit-4.9.5/src/git.c:127:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char PS1[4] = " $ "; data/gnuit-4.9.5/src/git.c:234:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char builtin[BUILTIN_OPERATIONS][MAX_BUILTIN_NAME] = data/gnuit-4.9.5/src/git.c:764: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(&fixed_text[j], " ", 8); data/gnuit-4.9.5/src/git.c:1489:7: [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(tmp, "%o", data/gnuit-4.9.5/src/git.c:1503: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(tmp, "%o", (int)uid); data/gnuit-4.9.5/src/git.c:1518: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(tmp, "%o", (int)gid); data/gnuit-4.9.5/src/git.c:1545:4: [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(tmp, "selected entries"); data/gnuit-4.9.5/src/git.c:1638: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 key_seq[80]; data/gnuit-4.9.5/src/git.c:1639: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 *contents[KEYSDATA_FIELDS - 2]; data/gnuit-4.9.5/src/git.c:1770: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 temp[MAX_STATIC_SIZE + 1]; data/gnuit-4.9.5/src/git.c:3226:7: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fd=mkstemp(tmpfn); data/gnuit-4.9.5/src/gitps.c:87: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 *PSFields[PS_FIELDS] = data/gnuit-4.9.5/src/gitps.c:151:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char header_text[MAX_LINE]; data/gnuit-4.9.5/src/gitps.c:173:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char signame[10]; data/gnuit-4.9.5/src/gitps.c:325:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char built_in[BUILTIN_OPERATIONS][MAX_BUILTIN_NAME] = data/gnuit-4.9.5/src/gitps.c:394: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(global_buf, title_text, data/gnuit-4.9.5/src/gitps.c:408: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(global_buf + 2, header_text, data/gnuit-4.9.5/src/gitps.c:425: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(global_buf, what, min(tty_columns, (int)strlen(what))); data/gnuit-4.9.5/src/gitps.c:427:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(global_buf, help, min(tty_columns, (int)strlen(help))); data/gnuit-4.9.5/src/gitps.c:483: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(global_buf, buf, min(tty_columns, (int)strlen(buf))); data/gnuit-4.9.5/src/gitps.c:573: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 pidstr[128]; data/gnuit-4.9.5/src/gitps.c:603:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pidnum=atoi(pidstr); data/gnuit-4.9.5/src/gitps.c:605:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return !kill(atoi(pidstr), sigdesc[signal_type].signal); data/gnuit-4.9.5/src/gitps.c:616:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAX_LINE]; data/gnuit-4.9.5/src/gitps.c:642: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(global_buf + 2, (ps_vect[process]+offset), data/gnuit-4.9.5/src/gitps.c:739:21: [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). stdout_log_fd = mkstemp(stdout_log_name); data/gnuit-4.9.5/src/gitps.c:744:21: [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). stderr_log_fd = mkstemp(stderr_log_name); data/gnuit-4.9.5/src/gitps.c:779: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(ps_cmd, "ps"); data/gnuit-4.9.5/src/gitps.c:828: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 key_seq[80]; data/gnuit-4.9.5/src/gitps.c:877: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. tty_key_human2machine((unsigned char *)key_seq)) data/gnuit-4.9.5/src/gitps.c:878:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. tty_key_list_insert((unsigned char *)key_seq, built_in[j]); data/gnuit-4.9.5/src/gitps.c:1199: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). stdout_log = fopen(stdout_log_name, "r"); data/gnuit-4.9.5/src/gitview.c:91:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char built_in[BUILTIN_OPERATIONS][MAX_BUILTIN_NAME] = data/gnuit-4.9.5/src/gitview.c:109: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 *ViewerFields[VIEWER_FIELDS] = data/gnuit-4.9.5/src/gitview.c:203:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char g_offset[16]; data/gnuit-4.9.5/src/gitview.c:252: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(global_buf, title_text, data/gnuit-4.9.5/src/gitview.c:266: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(global_buf, header_text, data/gnuit-4.9.5/src/gitview.c:280: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(global_buf, g_help, min(tty_columns, (int)strlen(g_help))); data/gnuit-4.9.5/src/gitview.c:301: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(global_buf, buf, min(tty_columns, (int)strlen(buf))); data/gnuit-4.9.5/src/gitview.c:338:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[16]; data/gnuit-4.9.5/src/gitview.c:347:2: [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(line_string, "%011X0 %02X %02X %02X %02X %02X %02X %02X\ data/gnuit-4.9.5/src/gitview.c:418: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 key_seq[80]; data/gnuit-4.9.5/src/gitview.c:467: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. tty_key_human2machine((unsigned char *)key_seq)) data/gnuit-4.9.5/src/gitview.c:468:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. tty_key_list_insert((unsigned char *)key_seq, built_in[-j-1]); data/gnuit-4.9.5/src/history.c:516:7: [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 (return_val + home_len + 1, ".history"); data/gnuit-4.9.5/src/history.c:548:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = open (input, O_RDONLY, 0666); data/gnuit-4.9.5/src/history.c:631:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = open (filename, O_RDONLY, 0666); data/gnuit-4.9.5/src/history.c:665:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (i && ((file = open (filename, O_WRONLY|O_TRUNC, 0666)) != -1)) data/gnuit-4.9.5/src/history.c:696:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file = open (output, mode, 0666)) == -1) data/gnuit-4.9.5/src/history.c:1216: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 fake_s[3]; data/gnuit-4.9.5/src/inputline.c:63:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *InputLineFields[INPUTLINE_FIELDS] = data/gnuit-4.9.5/src/inputline.c:190: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(il->kill_ring, il->buffer + region_start, region_size); data/gnuit-4.9.5/src/inputline.c:318: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(il->buffer, saved_il->buffer, saved_il->size); data/gnuit-4.9.5/src/inputline.c:570: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(il->buffer + il->point, data/gnuit-4.9.5/src/inputline.c:593: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(il->buffer + il->point - 1, data/gnuit-4.9.5/src/inputline.c:870:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(il->buffer, static_text, len); data/gnuit-4.9.5/src/inputline.c:900: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(il->buffer + il->point, text, len); data/gnuit-4.9.5/src/inputline.c:1010: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(temp, il->buffer + il->static_length + len, data/gnuit-4.9.5/src/inputline.c:1047:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*dest, il->buffer + il->static_length, il->dynamic_length + 1); data/gnuit-4.9.5/src/misc.c:224:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(configfile, "common"); data/gnuit-4.9.5/src/misc.c:274:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(configfile, "generic"); data/gnuit-4.9.5/src/misc.c:334:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return data ? atoi(data) : default_value; data/gnuit-4.9.5/src/misc.c:540:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest + 3, name + name_len - len + 3, len - 3); data/gnuit-4.9.5/src/misc.c:543:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, name, name_len); data/gnuit-4.9.5/src/misc.c:709: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 *contents[3]; data/gnuit-4.9.5/src/misc.c:710: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 pattern[80]; data/gnuit-4.9.5/src/panel.c:130:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rights[16] = "-rwxrwxrwx"; data/gnuit-4.9.5/src/panel.c:135:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *FileDisplayMode[FILE_DISPLAY_MODES] = data/gnuit-4.9.5/src/panel.c:149:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *FileSortMethod[FILE_SORT_METHODS] = data/gnuit-4.9.5/src/panel.c:165:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *PanelFields[PANEL_FIELDS] = data/gnuit-4.9.5/src/panel.c:469:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char tname[2][16]; data/gnuit-4.9.5/src/panel.c:475: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. return memcpy(tname[which], name, min(strlen(name), 14)); data/gnuit-4.9.5/src/panel.c:987:2: [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(this->dir_entry[entry].owner,"%-7u",s.st_uid); data/gnuit-4.9.5/src/panel.c:999:2: [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(this->dir_entry[entry].group,"%-7u",s.st_gid); data/gnuit-4.9.5/src/panel.c:1008:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(this->dir_entry[entry].date,"%2d-%02d-%02d %2d:%02d%c", data/gnuit-4.9.5/src/panel.c:1253: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(this->dir_entry[this->entries].name, ".."); data/gnuit-4.9.5/src/panel.c:1442: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 shortnumbuf[LONGEST_HUMAN_READABLE+1]; data/gnuit-4.9.5/src/panel.c:1444: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 longnumbuf[LONGEST_HUMAN_READABLE+1]; data/gnuit-4.9.5/src/panel.c:1445: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 filesbuf[LONGEST_HUMAN_READABLE+1]; data/gnuit-4.9.5/src/panel.c:1476:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[LONGEST_HUMAN_READABLE+3]; data/gnuit-4.9.5/src/panel.c:1604: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 str[1024]; data/gnuit-4.9.5/src/panel.c:1605: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 temp_rights[16]; data/gnuit-4.9.5/src/panel.c:1669: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(str, this->dir_entry[this->current_entry].name, len); data/gnuit-4.9.5/src/panel.c:1679: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 size[LONGEST_HUMAN_READABLE+1]; data/gnuit-4.9.5/src/panel.c:1689: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(this->temp, str, len = strlen(str)); data/gnuit-4.9.5/src/panel.c:1706: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 temp_rights[16]; data/gnuit-4.9.5/src/panel.c:1707: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 hbuf[LONGEST_HUMAN_READABLE+1]; data/gnuit-4.9.5/src/panel.c:1712: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(this->temp + this->columns - 2 - offset, data/gnuit-4.9.5/src/panel.c:1714: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(this->temp + this->columns - 2 - offset + 8, data/gnuit-4.9.5/src/panel.c:1719: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(this->temp + this->columns - 2 - offset, data/gnuit-4.9.5/src/panel.c:1743: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(ptr, hbuf, buflen); data/gnuit-4.9.5/src/panel.c:1749: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(this->temp + this->columns - 2 - offset, temp_rights, 10); data/gnuit-4.9.5/src/panel.c:1845: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(&this->temp[1], this->dir_entry[entry].name + offset, len); data/gnuit-4.9.5/src/panel.c:2210:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *copyerr[12] = data/gnuit-4.9.5/src/panel.c:2519:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *moveerr[12] = data/gnuit-4.9.5/src/panel.c:2649: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(temp + 2, to, len + 1); data/gnuit-4.9.5/src/panel.c:3848: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(msg, "%Ld (0x%Lx)", result, result); data/gnuit-4.9.5/src/panel.c:3850: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(msg, "%ld (0x%lx)", data/gnuit-4.9.5/src/panel.c:3988:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *renerr[7] = data/gnuit-4.9.5/src/panel.c:4211: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 msg[160]; data/gnuit-4.9.5/src/panel.c:4777:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). new_scroll_step = atoi((char *)aux_info); data/gnuit-4.9.5/src/panel.c:4949:39: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). this, other, (off64_t)atoi((char *)aux_info)); data/gnuit-4.9.5/src/panel.h:198: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 date[16]; data/gnuit-4.9.5/src/status.c:75: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 *StatusBarFields[STATUSBAR_FIELDS] = data/gnuit-4.9.5/src/status.c:154: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 date_str[32]; data/gnuit-4.9.5/src/status.c:194: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(&temp_msg[j], ptr, len); data/gnuit-4.9.5/src/status.c:200: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(&temp_msg[j], "(none)", len); data/gnuit-4.9.5/src/status.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(&temp_msg[j], date_str, len); data/gnuit-4.9.5/src/status.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(&temp_msg[j], " ", 8); data/gnuit-4.9.5/src/status.c:251: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(status_buffer + ((status_window->columns - len) >> 1), data/gnuit-4.9.5/src/status.c:254: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(status_buffer, temp_msg, min((int)len, status_window->columns)); data/gnuit-4.9.5/src/system.c:109: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). stdout_log_fd = mkstemp(stdout_log_name); data/gnuit-4.9.5/src/system.c:114: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). stderr_log_fd = mkstemp(stderr_log_name); data/gnuit-4.9.5/src/system.c:247:24: [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 *stderr_log = fopen(stderr_log_name, "r"); data/gnuit-4.9.5/src/title.c:59:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *TitleFields[TITLE_FIELDS] = data/gnuit-4.9.5/src/title.c:185:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/gnuit-4.9.5/src/title.c:213:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%2d:%02d%c", hour, time->tm_min, data/gnuit-4.9.5/src/title.c:237:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[TMPBUFSIZE]; data/gnuit-4.9.5/src/title.c:248:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). mbox=fopen(mail_file,"r"); data/gnuit-4.9.5/src/title.h:37:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *TitleFields[TITLE_FIELDS]; data/gnuit-4.9.5/src/tty.c:248: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 tty_cache[TTY_CACHE_SIZE]; data/gnuit-4.9.5/src/tty.c:252: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 term_buf[2048]; data/gnuit-4.9.5/src/tty.c:401: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 *colors[10] = data/gnuit-4.9.5/src/tty.c:417:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char key_ctrl_table[0x5f] = data/gnuit-4.9.5/src/tty.c:528: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 keybuf[1024]; data/gnuit-4.9.5/src/tty.c:529:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char keystr[MAX_KEY_LENGTH * 20]; data/gnuit-4.9.5/src/tty.c:969:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat((char *)keystr, "escape"); data/gnuit-4.9.5/src/tty.c:971:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat((char *)keystr, "space"); data/gnuit-4.9.5/src/tty.c:973:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat((char *)keystr, "backspace"); data/gnuit-4.9.5/src/tty.c:975:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat((char *)keystr, "^space"); data/gnuit-4.9.5/src/tty.c:978: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 x[3]; data/gnuit-4.9.5/src/tty.c:986: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 x[2]; data/gnuit-4.9.5/src/tty.c:1051: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(tty_prev_scr, tty_scr, tty_columns * tty_lines * sizeof(char)); data/gnuit-4.9.5/src/tty.c:1052: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(tty_prev_atr, tty_atr, tty_columns * tty_lines * sizeof(char)); data/gnuit-4.9.5/src/tty.c:1069: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(tty_cache + tty_index, s, len); data/gnuit-4.9.5/src/tty.c:1103: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(tty_scr + tty_offset, buf, length); data/gnuit-4.9.5/src/tty.c:1226: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 str[16]; data/gnuit-4.9.5/src/tty.c:1233: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(str, ansi_foreground, sizeof(ansi_foreground)); data/gnuit-4.9.5/src/tty.c:1254: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 str[16]; data/gnuit-4.9.5/src/tty.c:1261: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(str, ansi_background, sizeof(ansi_background)); data/gnuit-4.9.5/src/tty.c:1887:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/gnuit-4.9.5/src/tty.c:1958:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", tty_lines); data/gnuit-4.9.5/src/tty.c:1960:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", tty_columns); data/gnuit-4.9.5/src/tty.c:2012: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 vcs_name[16]; data/gnuit-4.9.5/src/tty.c:2013: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 vcsa_name[16]; data/gnuit-4.9.5/src/tty.c:2015: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(vcs_name, "/dev/vcsXX"); data/gnuit-4.9.5/src/tty.c:2016: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(vcsa_name, "/dev/vcsaXX"); data/gnuit-4.9.5/src/tty.c:2037:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). vcsfd = open(vcsa_name, flag); data/gnuit-4.9.5/src/tty.c:2057:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). vcsfd = open(vcsa_name, flag); data/gnuit-4.9.5/src/tty.c:2073:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). vcsfd = open(vcs_name, flag); data/gnuit-4.9.5/src/tty.c:2095:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). vcsfd = open(vcs_name, flag); data/gnuit-4.9.5/src/xstack.c:86:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *)stack->data) + (stack->point - 1) * stack->esize, data/gnuit-4.9.5/src/xstack.c:104:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, data/gnuit-4.9.5/src/xstack.c:128:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, data/gnuit-4.9.5/lib/argmatch.c:91: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). arglen = strlen (arg); data/gnuit-4.9.5/lib/argmatch.c:98:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (arglist[i]) == arglen) data/gnuit-4.9.5/lib/basename.c:116: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). for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--) data/gnuit-4.9.5/lib/error.c:142: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/gnuit-4.9.5/lib/fnmatch.c:160: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). # define STRLEN(S) strlen (S) data/gnuit-4.9.5/lib/fnmatch.c:191:22: [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 STRLEN(S) wcslen (S) data/gnuit-4.9.5/lib/fnmatch.c:340:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return internal_fnmatch (pattern, string, string + strlen (string), data/gnuit-4.9.5/lib/getopt.c:270:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = d->__nonoption_flags_max_len = strlen (orig_str); data/gnuit-4.9.5/lib/getopt.c:497: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). == (unsigned int) strlen (p->name)) data/gnuit-4.9.5/lib/getopt.c:546: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). d->__nextchar += strlen (d->__nextchar); data/gnuit-4.9.5/lib/getopt.c:619: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). d->__nextchar += strlen (d->__nextchar); data/gnuit-4.9.5/lib/getopt.c:659: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). d->__nextchar += strlen (d->__nextchar); data/gnuit-4.9.5/lib/getopt.c:664: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). d->__nextchar += strlen (d->__nextchar); data/gnuit-4.9.5/lib/getopt.c:867: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). if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name)) data/gnuit-4.9.5/lib/getopt.c:912: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). d->__nextchar += strlen (d->__nextchar); data/gnuit-4.9.5/lib/getopt.c:956: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). d->__nextchar += strlen (d->__nextchar); data/gnuit-4.9.5/lib/getopt.c:994: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). d->__nextchar += strlen (d->__nextchar); data/gnuit-4.9.5/lib/getopt.c:998: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). d->__nextchar += strlen (d->__nextchar); data/gnuit-4.9.5/lib/gettext.h:196: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 msgctxt_len = strlen (msgctxt) + 1; data/gnuit-4.9.5/lib/gettext.h:197:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/gnuit-4.9.5/lib/gettext.h:242: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 msgctxt_len = strlen (msgctxt) + 1; data/gnuit-4.9.5/lib/gettext.h:243:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/gnuit-4.9.5/lib/human.c:85: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). size_t thousands_seplen = strlen (thousands_sep); data/gnuit-4.9.5/lib/human.c:179: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 pointlen = strlen (l->decimal_point); data/gnuit-4.9.5/lib/human.c:186: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 (l->thousands_sep) <= MB_LEN_MAX) data/gnuit-4.9.5/lib/human.c:233: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). buflen = strlen (buf); data/gnuit-4.9.5/lib/human.c:251: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). buflen = strlen (buf); data/gnuit-4.9.5/lib/human.c:260:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buflen = strlen (buf); data/gnuit-4.9.5/lib/idcache.c:86: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). match = xmalloc (offsetof (struct userid, name) + strlen (name) + 1); data/gnuit-4.9.5/lib/idcache.c:123: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 (!pwent && strspn (user, digits) < strlen (user)) data/gnuit-4.9.5/lib/idcache.c:130:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tail = xmalloc (offsetof (struct userid, name) + strlen (user) + 1); data/gnuit-4.9.5/lib/idcache.c:168: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). match = xmalloc (offsetof (struct userid, name) + strlen (name) + 1); data/gnuit-4.9.5/lib/idcache.c:205:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!grent && strspn (group, digits) < strlen (group)) data/gnuit-4.9.5/lib/idcache.c:212:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tail = xmalloc (offsetof (struct userid, name) + strlen (group) + 1); data/gnuit-4.9.5/lib/localcharset.c:92:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/gnuit-4.9.5/lib/localcharset.c:93:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc getc_unlocked data/gnuit-4.9.5/lib/localcharset.c:133:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dir_len = strlen (dir); data/gnuit-4.9.5/lib/localcharset.c:134: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 base_len = strlen (base); data/gnuit-4.9.5/lib/localcharset.c:163:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/gnuit-4.9.5/lib/localcharset.c:172:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/gnuit-4.9.5/lib/localcharset.c:179:12: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) data/gnuit-4.9.5/lib/localcharset.c:181: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). l1 = strlen (buf1); data/gnuit-4.9.5/lib/localcharset.c:182: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). l2 = strlen (buf2); data/gnuit-4.9.5/lib/localcharset.c:484: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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/gnuit-4.9.5/lib/localcharset.c:484:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/gnuit-4.9.5/lib/localcharset.c:488: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). codeset = aliases + strlen (aliases) + 1; data/gnuit-4.9.5/lib/lstat.c:62: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 (file); data/gnuit-4.9.5/lib/mbslen.c:43: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). return strlen (string); data/gnuit-4.9.5/lib/mbuiter.h:159: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). iter->cur.bytes = strlen (iter->cur.ptr); data/gnuit-4.9.5/lib/open.c:93: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 (filename); data/gnuit-4.9.5/lib/open.c:119: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 (filename); data/gnuit-4.9.5/lib/putenv.c:66: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/gnuit-4.9.5/lib/quotearg.c:256: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). quote_string_len = strlen (quote_string); data/gnuit-4.9.5/lib/quotearg.c:456:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). argsize = strlen (arg); data/gnuit-4.9.5/lib/rename.c:40: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). size_t s_len = strlen (src); data/gnuit-4.9.5/lib/safe-read.c:47:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define rw read data/gnuit-4.9.5/lib/str-kmp.h:35: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). size_t m = strlen (needle); data/gnuit-4.9.5/lib/tempname.c:137: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). plen = strlen (pfx); data/gnuit-4.9.5/lib/tempname.c:165: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). dlen = strlen (dir); data/gnuit-4.9.5/lib/tempname.c:227: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 (tmpl); data/gnuit-4.9.5/lib/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/gnuit-4.9.5/src/configure.c:93:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((len = strlen(line)) == MAXLINE - 1) data/gnuit-4.9.5/src/configure.c:101:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(fileptr); data/gnuit-4.9.5/src/configure.c:196: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). tmp = dest[fld] + strlen(dest[fld]) - 1; data/gnuit-4.9.5/src/git.c:527: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 length = strlen(prev); data/gnuit-4.9.5/src/git.c:532: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). char *buf = xmalloc(128 + strlen(str)); data/gnuit-4.9.5/src/git.c:758: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). fixed_text = xmalloc(fixed_text_length = (strlen(text) + 1)); data/gnuit-4.9.5/src/git.c:785: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). char *help = xmalloc(1 + strlen(options) * 3 + 8); data/gnuit-4.9.5/src/git.c:1328:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(src) + 1; data/gnuit-4.9.5/src/git.c:1397: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). question = xmalloc(16 + strlen(command->name) + data/gnuit-4.9.5/src/git.c:1398: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). strlen(answer) + 1); data/gnuit-4.9.5/src/git.c:1409:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(question) > MAX_STATIC_SIZE) data/gnuit-4.9.5/src/git.c:1454: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). tmp = xmalloc(1 + strlen(ptr) + 1 + 1); data/gnuit-4.9.5/src/git.c:1525: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). tmp = xmalloc(1 + strlen(t->path) + 1 + 1); data/gnuit-4.9.5/src/git.c:1533: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). tmp = xmalloc(1 + strlen(ptr) + 1 + 1); data/gnuit-4.9.5/src/git.c:1557: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). tmplen += 1 + strlen(t->dir_entry[entry].name) + 1 + 1; data/gnuit-4.9.5/src/git.c:1582: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). *dest = xrealloc(*dest, len += strlen(tmp)); data/gnuit-4.9.5/src/git.c:1584:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d = *dest + strlen(*dest); data/gnuit-4.9.5/src/git.c:1773: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). MAX_STATIC_SIZE-strlen(PS1)+1), data/gnuit-4.9.5/src/git.c:1844: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). exit_msg = xmalloc(strlen(PRODUCT) + 16); data/gnuit-4.9.5/src/git.c:1963: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). stdout_log_template = xmalloc(32 + strlen(temporary_directory) + 1); data/gnuit-4.9.5/src/git.c:1964: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). stderr_log_template = xmalloc(32 + strlen(temporary_directory) + 1); data/gnuit-4.9.5/src/git.c:1965: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). stdout_log_name = xmalloc(32 + strlen(temporary_directory) + 1); data/gnuit-4.9.5/src/git.c:1966: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). stderr_log_name = xmalloc(32 + strlen(temporary_directory) + 1); data/gnuit-4.9.5/src/git.c:2034: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). panel_path = xmalloc(strlen(current_path) + 1 + data/gnuit-4.9.5/src/git.c:2035:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(left_panel_path) + 1); data/gnuit-4.9.5/src/git.c:2046: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). panel_path = xmalloc(strlen(current_path) + 1 + data/gnuit-4.9.5/src/git.c:2047:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(right_panel_path) + 1); data/gnuit-4.9.5/src/git.c:2163: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). size_t msglen = 32 + strlen(command->name) + data/gnuit-4.9.5/src/git.c:2164:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(cmd) + 1; data/gnuit-4.9.5/src/git.c:2174: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). msg = xmalloc(64+strlen(command->name)+1); data/gnuit-4.9.5/src/git.c:2246: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). msg = xmalloc(80+strlen((char *)ks->key_seq)+1); data/gnuit-4.9.5/src/git.c:2320: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). for (i = strlen(cmdln) - 1; i >= 0; i--) data/gnuit-4.9.5/src/git.c:2665: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). ptr = xmalloc(1 + 1 + strlen(srcptr) + 1 + 1 + 1); data/gnuit-4.9.5/src/git.c:2668: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(cmdln); data/gnuit-4.9.5/src/git.c:2683: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 (needs_quotes(srcptr, strlen(srcptr))) data/gnuit-4.9.5/src/git.c:2690: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 (needs_quotes(srcptr, strlen(srcptr))) data/gnuit-4.9.5/src/git.c:2696: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). ptrlen = strlen(ptr); data/gnuit-4.9.5/src/git.c:2697: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). toprintable(ptr, strlen(ptr)); data/gnuit-4.9.5/src/git.c:2709: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(cmdln); data/gnuit-4.9.5/src/git.c:2717: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). ptr = xmalloc(1 + 1 + strlen(srcptr) + 1 + 1 + 1); data/gnuit-4.9.5/src/git.c:2719: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 (needs_quotes(srcptr, strlen(srcptr))) data/gnuit-4.9.5/src/git.c:2724: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). ptrlen = strlen(ptr); data/gnuit-4.9.5/src/git.c:2885:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(input) == 0 && data/gnuit-4.9.5/src/git.c:2886: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). search_string && strlen(search_string)) data/gnuit-4.9.5/src/git.c:2917:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (iai.length < strlen(search_string)) data/gnuit-4.9.5/src/git.c:2924:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (iai.length < strlen(input)) data/gnuit-4.9.5/src/git.c:2967:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(input) == 0 && data/gnuit-4.9.5/src/git.c:2968: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). search_string && strlen(search_string)) data/gnuit-4.9.5/src/git.c:3000:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (iai.length < strlen(search_string)) data/gnuit-4.9.5/src/git.c:3007:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (iai.length < strlen(input)) data/gnuit-4.9.5/src/git.c:3224: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). tmpfn=xmalloc(strlen(temporary_directory)+strlen(template)+1+2); data/gnuit-4.9.5/src/git.c:3224: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). tmpfn=xmalloc(strlen(temporary_directory)+strlen(template)+1+2); data/gnuit-4.9.5/src/git.c:3250: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). cmd=xmalloc(strlen(pager)+strlen(tmpfn)+1+1); data/gnuit-4.9.5/src/git.c:3250: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). cmd=xmalloc(strlen(pager)+strlen(tmpfn)+1+1); data/gnuit-4.9.5/src/git.c:3296: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). write(3, final_path, strlen(final_path)); data/gnuit-4.9.5/src/gitkeys.c:380:2: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(0, &c, 1); data/gnuit-4.9.5/src/gitps.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). min(tty_columns, (int)strlen(title_text))); data/gnuit-4.9.5/src/gitps.c:409: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). min(tty_columns - 2, (int)strlen(header_text))); data/gnuit-4.9.5/src/gitps.c:425:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(global_buf, what, min(tty_columns, (int)strlen(what))); data/gnuit-4.9.5/src/gitps.c:427:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(global_buf, help, min(tty_columns, (int)strlen(help))); data/gnuit-4.9.5/src/gitps.c:474: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 length = strlen(prev); data/gnuit-4.9.5/src/gitps.c:479: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). char *buf = xmalloc(128 + strlen(str)); data/gnuit-4.9.5/src/gitps.c:483:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(global_buf, buf, min(tty_columns, (int)strlen(buf))); data/gnuit-4.9.5/src/gitps.c:530:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (line[lastchar = strlen(line) - 1] == '\n') data/gnuit-4.9.5/src/gitps.c:533:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc(ps_output)) != '\n' && c != EOF) data/gnuit-4.9.5/src/gitps.c:635: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). ps_length=(int)strlen(ps_vect[process]); data/gnuit-4.9.5/src/gitps.c:643: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). min(visible_length,strlen(ps_vect[process]+offset))); data/gnuit-4.9.5/src/gitps.c:775: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). bytes += 1 + strlen(args[i]); data/gnuit-4.9.5/src/gitps.c:783:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(ps_cmd, " "); data/gnuit-4.9.5/src/gitps.c:1115: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). title_text = xmalloc(strlen(PRODUCT) + strlen(VERSION) + 64); data/gnuit-4.9.5/src/gitps.c:1115:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). title_text = xmalloc(strlen(PRODUCT) + strlen(VERSION) + 64); data/gnuit-4.9.5/src/gitps.c:1168: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). stdout_log_template = xmalloc(32 + strlen(temporary_directory) + 1); data/gnuit-4.9.5/src/gitps.c:1169: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). stderr_log_template = xmalloc(32 + strlen(temporary_directory) + 1); data/gnuit-4.9.5/src/gitps.c:1170: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). stdout_log_name = xmalloc(32 + strlen(temporary_directory) + 1); data/gnuit-4.9.5/src/gitps.c:1171: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). stderr_log_name = xmalloc(32 + strlen(temporary_directory) + 1); data/gnuit-4.9.5/src/gitps.c:1497: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 = xmalloc(16 + strlen((e == EPERM) ? no_perm:no_proc)); data/gnuit-4.9.5/src/gitview.c:242: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). window_goto(file_window, SEEK_LINE, strlen(seek_txt) + count); data/gnuit-4.9.5/src/gitview.c:253:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). min(tty_columns, (int)strlen(title_text))); data/gnuit-4.9.5/src/gitview.c:267: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). min(tty_columns, (int)strlen(header_text))); data/gnuit-4.9.5/src/gitview.c:280:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(global_buf, g_help, min(tty_columns, (int)strlen(g_help))); data/gnuit-4.9.5/src/gitview.c:293: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 length = strlen(prev); data/gnuit-4.9.5/src/gitview.c:298: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). char *buf = xmalloc(128 + strlen(str)); data/gnuit-4.9.5/src/gitview.c:301:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(global_buf, buf, min(tty_columns, (int)strlen(buf))); data/gnuit-4.9.5/src/gitview.c:345:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((r = read(fd, buf, sizeof(buf)))) data/gnuit-4.9.5/src/gitview.c:375: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). line_string[strlen(line_string)] = ' '; data/gnuit-4.9.5/src/gitview.c:517: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). header_text = xrealloc(header_text, strlen(filename) + 10); data/gnuit-4.9.5/src/gitview.c:715: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). title_text = xmalloc(strlen(PRODUCT) + strlen(VERSION) + 64); data/gnuit-4.9.5/src/gitview.c:715:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). title_text = xmalloc(strlen(PRODUCT) + strlen(VERSION) + 64); data/gnuit-4.9.5/src/gitview.c:858:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(seek_txt) + count); data/gnuit-4.9.5/src/gitview.c:919:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(seek_txt) + count); data/gnuit-4.9.5/src/gitview.c:942: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). window_goto(file_window, SEEK_LINE, strlen(seek_txt)); data/gnuit-4.9.5/src/gitwhich.c:80: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). tmp = xmalloc(strlen(pc - len) + 1 + strlen(name) + 1); data/gnuit-4.9.5/src/gitwhich.c:80: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). tmp = xmalloc(strlen(pc - len) + 1 + strlen(name) + 1); data/gnuit-4.9.5/src/history.c:66:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) data/gnuit-4.9.5/src/history.c:202:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result += strlen (the_history[i]->line); data/gnuit-4.9.5/src/history.c:335: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). string_len = strlen (string); data/gnuit-4.9.5/src/history.c:345: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). line_index = strlen (line); data/gnuit-4.9.5/src/history.c:510: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). home_len = strlen (home); data/gnuit-4.9.5/src/history.c:555:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (file, buffer, finfo.st_size) != finfo.st_size) data/gnuit-4.9.5/src/history.c:637:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chars_read = read (file, buffer, finfo.st_size); data/gnuit-4.9.5/src/history.c:716:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_size += 1 + strlen (the_history[i]->line); data/gnuit-4.9.5/src/history.c:724: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). j += strlen (the_history[i]->line); data/gnuit-4.9.5/src/history.c:958:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (temp, &string[local_index], (i - local_index)); data/gnuit-4.9.5/src/history.c:1102:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (temp, s + start, ll); data/gnuit-4.9.5/src/history.c:1362: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 (i + 2 < (int)strlen (string)) data/gnuit-4.9.5/src/history.c:1383: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). subst_lhs_len = strlen (subst_lhs); data/gnuit-4.9.5/src/history.c:1413:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l_temp = strlen (temp); data/gnuit-4.9.5/src/history.c:1430:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (new_event, temp, si); data/gnuit-4.9.5/src/history.c:1431:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (new_event + si, subst_rhs, subst_rhs_len); data/gnuit-4.9.5/src/history.c:1432:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (new_event + si + subst_rhs_len, data/gnuit-4.9.5/src/history.c:1444: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). l_temp = strlen (temp); data/gnuit-4.9.5/src/history.c:1490: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). n = strlen (temp); data/gnuit-4.9.5/src/history.c:1517:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int sl = strlen (s); \ data/gnuit-4.9.5/src/history.c:1564:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen (hstring); data/gnuit-4.9.5/src/history.c:1673:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (temp, string + quote, slen); data/gnuit-4.9.5/src/history.c:1703: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). temp = xmalloc (1 + strlen (result)); data/gnuit-4.9.5/src/history.c:1892: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). size += strlen (list[i]) + 1; data/gnuit-4.9.5/src/history.c:1898: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). offset += strlen (list[i]); data/gnuit-4.9.5/src/history.c:2014:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (result[result_index], string + start, len); data/gnuit-4.9.5/src/inputline.c:858:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(static_text); data/gnuit-4.9.5/src/inputline.c:891:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(text); data/gnuit-4.9.5/src/inputline.c:1096: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). il->dynamic_length = strlen(hist->line); data/gnuit-4.9.5/src/inputline.c:1119: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). il->dynamic_length = strlen(hist->line); data/gnuit-4.9.5/src/misc.c:92: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). bindir = xmalloc(strlen(PREFIX) + strlen(prefix_relative_bin_dir) + 1); data/gnuit-4.9.5/src/misc.c:92: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). bindir = xmalloc(strlen(PREFIX) + strlen(prefix_relative_bin_dir) + 1); data/gnuit-4.9.5/src/misc.c:94: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). termdir = xmalloc(strlen(PREFIX) + strlen(prefix_relative_term_dir) + 1); data/gnuit-4.9.5/src/misc.c:94: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). termdir = xmalloc(strlen(PREFIX) + strlen(prefix_relative_term_dir) + 1); data/gnuit-4.9.5/src/misc.c:115: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). char *new_value = xmalloc(strlen(path) + 1 + strlen(bindir) + 1); data/gnuit-4.9.5/src/misc.c:115: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). char *new_value = xmalloc(strlen(path) + 1 + strlen(bindir) + 1); data/gnuit-4.9.5/src/misc.c:219: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). char *configfile = xmalloc(strlen(termdir) + 1 + data/gnuit-4.9.5/src/misc.c:220: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). strlen(SYSTEM_CONFIGFILE_PREFIX) + data/gnuit-4.9.5/src/misc.c:238: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). char *configfile = xmalloc(strlen(g_home) + 1 + strlen(USER_CONFIGFILE_PREFIX) + data/gnuit-4.9.5/src/misc.c:238:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *configfile = xmalloc(strlen(g_home) + 1 + strlen(USER_CONFIGFILE_PREFIX) + data/gnuit-4.9.5/src/misc.c:239: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). strlen(tty_type) + 1); data/gnuit-4.9.5/src/misc.c:247: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). configfile = xmalloc(strlen(g_home) + 1 + data/gnuit-4.9.5/src/misc.c:248:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(OLD_USER_CONFIGFILE_PREFIX) + data/gnuit-4.9.5/src/misc.c:249:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(tty_type) + 1); data/gnuit-4.9.5/src/misc.c:257: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). configfile = xmalloc(strlen(termdir) + 1 + data/gnuit-4.9.5/src/misc.c:258: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(SYSTEM_CONFIGFILE_PREFIX) + data/gnuit-4.9.5/src/misc.c:259: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(tty_type) + 1); data/gnuit-4.9.5/src/misc.c:269: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). configfile = xmalloc(strlen(termdir) + 1 + data/gnuit-4.9.5/src/misc.c:270:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(SYSTEM_CONFIGFILE_PREFIX) + data/gnuit-4.9.5/src/misc.c:302: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(strncmp(section,gitfmprefix,strlen(gitfmprefix)) == 0) data/gnuit-4.9.5/src/misc.c:304: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). char *newsection=xmalloc(strlen(gitprefix) + data/gnuit-4.9.5/src/misc.c:305: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(section+strlen(gitprefix)) + 1); data/gnuit-4.9.5/src/misc.c:305: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). strlen(section+strlen(gitprefix)) + 1); data/gnuit-4.9.5/src/misc.c:307: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). strcat(newsection,section+strlen(gitfmprefix)); data/gnuit-4.9.5/src/misc.c:535: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). name_len = strlen(name); data/gnuit-4.9.5/src/misc.c:556: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). temppath[min(len - 1, (int)strlen(path))] = '\0'; data/gnuit-4.9.5/src/misc.c:601: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). xmalloc(strlen(variable) + 1 + strlen(value) + 1); data/gnuit-4.9.5/src/misc.c:601:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xmalloc(strlen(variable) + 1 + strlen(value) + 1); data/gnuit-4.9.5/src/misc.c:672: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). for (i = strlen(cmd) - 1; i >= 0; i--) data/gnuit-4.9.5/src/panel.c:373: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). this->pathlen = strlen(this->path); data/gnuit-4.9.5/src/panel.c:475: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). return memcpy(tname[which], name, min(strlen(name), 14)); data/gnuit-4.9.5/src/panel.c:478:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy(tname[which], name, 14); data/gnuit-4.9.5/src/panel.c:776:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *message = xmalloc(strlen(format) + strlen(string) + 1); data/gnuit-4.9.5/src/panel.c:776: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). char *message = xmalloc(strlen(format) + strlen(string) + 1); data/gnuit-4.9.5/src/panel.c:794:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *message = xmalloc(strlen(format)+strlen(string1)+strlen(string2)+1); data/gnuit-4.9.5/src/panel.c:794:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *message = xmalloc(strlen(format)+strlen(string1)+strlen(string2)+1); data/gnuit-4.9.5/src/panel.c:794:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *message = xmalloc(strlen(format)+strlen(string1)+strlen(string2)+1); data/gnuit-4.9.5/src/panel.c:816:5: [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(this->path, "/"); data/gnuit-4.9.5/src/panel.c:847:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(fti->pattern); data/gnuit-4.9.5/src/panel.c:981: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). this->dir_entry[entry].owner=xmalloc(1 + max(strlen(owner),8)); data/gnuit-4.9.5/src/panel.c:993: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). this->dir_entry[entry].group=xmalloc(1 + max(strlen(group),8)); data/gnuit-4.9.5/src/panel.c:1107: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). this->pathlen = strlen(this->path); data/gnuit-4.9.5/src/panel.c:1121: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). strlen(directory)); data/gnuit-4.9.5/src/panel.c:1122:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(this->path, "/"); data/gnuit-4.9.5/src/panel.c:1129: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). this->pathlen = strlen(this->path); data/gnuit-4.9.5/src/panel.c:1220:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). namelen = strlen(d->d_name); data/gnuit-4.9.5/src/panel.c:1250:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). namelen = strlen(".."); data/gnuit-4.9.5/src/panel.c:1423: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((str == NULL) || (strlen(str) > maxlen)) data/gnuit-4.9.5/src/panel.c:1428:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,str,maxlen); data/gnuit-4.9.5/src/panel.c:1455: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). (width - (STATIC_TEXT_LEN + strlen(filestr)))); data/gnuit-4.9.5/src/panel.c:1511:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. sz=strcat(sz,"B"); data/gnuit-4.9.5/src/panel.c:1518:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). window_goto(this->window, 0, this->columns - 2 - min(strlen(sz), viewable)); data/gnuit-4.9.5/src/panel.c:1519: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). window_puts(this->window, sz, min(strlen(sz), viewable)); data/gnuit-4.9.5/src/panel.c:1668: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). len = min(strlen(this->dir_entry[this->current_entry].name), maxname); data/gnuit-4.9.5/src/panel.c:1689: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). memcpy(this->temp, str, len = strlen(str)); data/gnuit-4.9.5/src/panel.c:1730:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strlen(human_readable(this->dir_entry[entry].size, data/gnuit-4.9.5/src/panel.c:1736: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). buflen=min(strlen(hbuf),10); data/gnuit-4.9.5/src/panel.c:1834: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). entry_length = strlen(this->dir_entry[entry].name); data/gnuit-4.9.5/src/panel.c:2282: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). temp = xmalloc(strlen(dest) + 1 + strlen(src) + 1); data/gnuit-4.9.5/src/panel.c:2282: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). temp = xmalloc(strlen(dest) + 1 + strlen(src) + 1); data/gnuit-4.9.5/src/panel.c:2302: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). temp = xmalloc(32 + strlen(src) + strlen(dest) + 1); data/gnuit-4.9.5/src/panel.c:2302: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). temp = xmalloc(32 + strlen(src) + strlen(dest) + 1); data/gnuit-4.9.5/src/panel.c:2309: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). msg = xmalloc(32 + strlen(src) + strlen(dest)); data/gnuit-4.9.5/src/panel.c:2309: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). msg = xmalloc(32 + strlen(src) + strlen(dest)); data/gnuit-4.9.5/src/panel.c:2335:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(dest); data/gnuit-4.9.5/src/panel.c:2341: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). dest = xrealloc(dest, len + 1 + strlen(src) + 1); data/gnuit-4.9.5/src/panel.c:2342:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dest, "/"); data/gnuit-4.9.5/src/panel.c:2364: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). msg = xmalloc(32 + strlen(src)); data/gnuit-4.9.5/src/panel.c:2473: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). msg = xmalloc(32 + strlen(src)); data/gnuit-4.9.5/src/panel.c:2566: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). temp = xmalloc(strlen(to) + 1 + strlen(from) + 1); data/gnuit-4.9.5/src/panel.c:2566: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). temp = xmalloc(strlen(to) + 1 + strlen(from) + 1); data/gnuit-4.9.5/src/panel.c:2586: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). temp = xmalloc(32 + strlen(from) + strlen(to) + 1); data/gnuit-4.9.5/src/panel.c:2586:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp = xmalloc(32 + strlen(from) + strlen(to) + 1); data/gnuit-4.9.5/src/panel.c:2593: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). msg = xmalloc(32 + strlen(from) + strlen(to)); data/gnuit-4.9.5/src/panel.c:2593: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). msg = xmalloc(32 + strlen(from) + strlen(to)); data/gnuit-4.9.5/src/panel.c:2621:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(to); data/gnuit-4.9.5/src/panel.c:2627: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). to = xrealloc(to, len + 1 + strlen(from) + 1); data/gnuit-4.9.5/src/panel.c:2628:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(to, "/"); data/gnuit-4.9.5/src/panel.c:2645: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). char *temp = xmalloc(2 + (len = strlen(to)) + 1); data/gnuit-4.9.5/src/panel.c:2667: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). msg = xmalloc(32 + strlen(from)); data/gnuit-4.9.5/src/panel.c:2749: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). size_t len = strlen(str); data/gnuit-4.9.5/src/panel.c:2753:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp, str, len); data/gnuit-4.9.5/src/panel.c:2775: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). min(len, strlen(this->dir_entry[entry].name))) == 0) data/gnuit-4.9.5/src/panel.c:2784: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). min(len, strlen(this->dir_entry[entry].name))) == 0) data/gnuit-4.9.5/src/panel.c:2871: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). cmd = xmalloc(32 + strlen(name) + 1); data/gnuit-4.9.5/src/panel.c:2915: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). msg = xmalloc(16 + strlen(name) + 1); data/gnuit-4.9.5/src/panel.c:2918: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). len = 1 + strlen(name) + 1; data/gnuit-4.9.5/src/panel.c:2919: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). file = xmalloc(strlen(other->path) + len); data/gnuit-4.9.5/src/panel.c:2982: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). dir = xrealloc(dir, (len = strlen(dir) + 1) + 1); data/gnuit-4.9.5/src/panel.c:2995: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). dir = xrealloc(dir, len + strlen(name) + 1); data/gnuit-4.9.5/src/panel.c:3079: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). msg = xmalloc(32 + strlen(name)); data/gnuit-4.9.5/src/panel.c:3116: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). command = xmalloc(32 + strlen(name) + 1); data/gnuit-4.9.5/src/panel.c:3253:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(input); data/gnuit-4.9.5/src/panel.c:3328: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). msg = xmalloc(16 + strlen(name) + 1); data/gnuit-4.9.5/src/panel.c:3331: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). len = 1 + strlen(name) + 1; data/gnuit-4.9.5/src/panel.c:3332: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). file = xmalloc(strlen(other->path) + len); data/gnuit-4.9.5/src/panel.c:3402: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). dir = xrealloc(dir, (len = strlen(dir) + 1) + 1); data/gnuit-4.9.5/src/panel.c:3419: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). dir = xrealloc(dir, len + strlen(name) + 1); data/gnuit-4.9.5/src/panel.c:3483: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). this->pathlen = strlen(new_dir); data/gnuit-4.9.5/src/panel.c:3489: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). this->pathlen += 1 + strlen(new_dir); data/gnuit-4.9.5/src/panel.c:3491:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(this->path, "/"); data/gnuit-4.9.5/src/panel.c:3612: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). file2 = xmalloc(strlen(other->path) + 1 + strlen(name2) + 1); data/gnuit-4.9.5/src/panel.c:3612: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). file2 = xmalloc(strlen(other->path) + 1 + strlen(name2) + 1); data/gnuit-4.9.5/src/panel.c:3615: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). msg = xmalloc(32 + strlen(file1) + 1); data/gnuit-4.9.5/src/panel.c:3639: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). msg = xmalloc(32 + strlen(file1) + 1); data/gnuit-4.9.5/src/panel.c:3652:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read1 = read(fd1, buf1, CMP_BUFFER_SIZE); data/gnuit-4.9.5/src/panel.c:3664:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read2 = read(fd2, buf2, CMP_BUFFER_SIZE); data/gnuit-4.9.5/src/panel.c:3705:8: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(mismatch) data/gnuit-4.9.5/src/panel.c:3715:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read1 = read(fd1, buf1, CMP_BUFFER_SIZE); data/gnuit-4.9.5/src/panel.c:3727:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read2 = read(fd2, buf2, CMP_BUFFER_SIZE); data/gnuit-4.9.5/src/panel.c:4013:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(name); data/gnuit-4.9.5/src/panel.c:4049: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). command = xmalloc(32 + strlen(new_name) + 1); data/gnuit-4.9.5/src/panel.c:4363:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *pattern = xmalloc(strlen(string) + 1); data/gnuit-4.9.5/src/panel.c:4793: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). len = strlen(iai->string); data/gnuit-4.9.5/src/panel.c:4851: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). len = strlen(iai->string); data/gnuit-4.9.5/src/panel.c:4986:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). extension = (char *)malloc(1 + strlen(ptr) + 1); data/gnuit-4.9.5/src/panel.h:41: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/gnuit-4.9.5/src/status.c:120: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). toprintable(status_default_message, strlen(status_default_message)); data/gnuit-4.9.5/src/status.c:161:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp_msg = xmalloc(temp_msg_len = (strlen(status_message) + 1)); data/gnuit-4.9.5/src/status.c:192:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(ptr); data/gnuit-4.9.5/src/status.c:212: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). len = strlen(date_str); data/gnuit-4.9.5/src/status.c:247:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(temp_msg); data/gnuit-4.9.5/src/status.c:309: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). toprintable(status_message, strlen(status_message)); data/gnuit-4.9.5/src/system.c:251:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t buf_len = strlen(command) + 32 + strlen(stderr_log_name); data/gnuit-4.9.5/src/system.c:251:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t buf_len = strlen(command) + 32 + strlen(stderr_log_name); data/gnuit-4.9.5/src/system.c:265: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). int len = strlen(buf); data/gnuit-4.9.5/src/tilde.c:52:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) data/gnuit-4.9.5/src/tilde.c:103: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). string_len = strlen (string); data/gnuit-4.9.5/src/tilde.c:115: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). if (strncmp (string + i, prefixes[j], strlen (prefixes[j])) == 0) data/gnuit-4.9.5/src/tilde.c:117: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). *len = strlen (prefixes[j]) - 1; data/gnuit-4.9.5/src/tilde.c:135: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). string_len = strlen (string); data/gnuit-4.9.5/src/tilde.c:144:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp (string + i, suffixes[j], strlen (suffixes[j])) == 0) data/gnuit-4.9.5/src/tilde.c:176:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (result + result_index, string, start); data/gnuit-4.9.5/src/tilde.c:192:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (tilde_word, string, end); data/gnuit-4.9.5/src/tilde.c:199: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). len = strlen (expansion); data/gnuit-4.9.5/src/tilde.c:247: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). home_len = temp_home ? strlen (temp_home) : 0; data/gnuit-4.9.5/src/tilde.c:248: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). temp_name = xmalloc (1 + strlen (dirname + 1) + home_len); data/gnuit-4.9.5/src/tilde.c:262: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). username = xmalloc (strlen (dirname)); data/gnuit-4.9.5/src/tilde.c:280:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (expansion); data/gnuit-4.9.5/src/tilde.c:281: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). temp_name = xmalloc (1 + len + strlen (dirname + i)); data/gnuit-4.9.5/src/tilde.c:293:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (user_entry->pw_dir); data/gnuit-4.9.5/src/tilde.c:294: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). temp_name = xmalloc (1 + len + strlen (dirname + i)); data/gnuit-4.9.5/src/title.c:127: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). (strlen(mail_string)) + 1 + data/gnuit-4.9.5/src/title.c:137: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). product_name = xmalloc(1 + strlen(PRODUCT) + 1 + strlen(VERSION) + 1); data/gnuit-4.9.5/src/title.c:137:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). product_name = xmalloc(1 + strlen(PRODUCT) + 1 + strlen(VERSION) + 1); data/gnuit-4.9.5/src/title.c:139: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). product_name_length = strlen(product_name); data/gnuit-4.9.5/src/title.c:140: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). login_name_length = strlen(login_name); data/gnuit-4.9.5/src/title.c:141: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). tty_device_length = strlen(tty_device); data/gnuit-4.9.5/src/title.c:217: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). window_puts(title_window, buf, strlen(buf)); data/gnuit-4.9.5/src/title.c:256: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). else if(strncmp(line,"From ",strlen("From ")) == 0) data/gnuit-4.9.5/src/title.c:263: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). (strncmp(line,"Status:",strlen("Status:"))==0)) data/gnuit-4.9.5/src/title.c:282:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(total-read) data/gnuit-4.9.5/src/title.c:332: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). window_puts(title_window, mail_string, strlen(mail_string)); data/gnuit-4.9.5/src/tty.c:966:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat((char *)keystr, " "); data/gnuit-4.9.5/src/tty.c:1672:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncmp(key_seq, (char *)current_key->key_seq, strlen(key_seq)) != 0) data/gnuit-4.9.5/src/tty.c:1725: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). tty_puts(typed, strlen(typed)); data/gnuit-4.9.5/src/tty.c:1726: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). tty_puts((char *)keystr, strlen((char *)keystr)); data/gnuit-4.9.5/src/tty.c:1727: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). tty_puts(incomplete, strlen(incomplete)); data/gnuit-4.9.5/src/tty.c:2021:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fn = read; data/gnuit-4.9.5/src/tty.c:2227:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(termtype) > 63) data/gnuit-4.9.5/src/tty.c:2412: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). tty_device_length = strlen(tty_device); data/gnuit-4.9.5/src/tty.c:2426:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(string); data/gnuit-4.9.5/src/tty.c:2443: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). xwrite(TTY_OUTPUT, temp, strlen(temp)); data/gnuit-4.9.5/src/xio.c:81:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). chars = read(fd, buf, count); data/gnuit-4.9.5/src/xio.c:87:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(fd, buf, count); data/gnuit-4.9.5/src/xio.c:142:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(fd, buf, count); data/gnuit-4.9.5/src/xio.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). cwd = xrealloc(cwd, strlen(cwd) + 1); data/gnuit-4.9.5/src/xio.c:295: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). size_t len = strlen(name); ANALYSIS SUMMARY: Hits = 827 Lines analyzed = 43668 in approximately 1.23 seconds (35475 lines/second) Physical Source Lines of Code (SLOC) = 28672 Hits@level = [0] 157 [1] 352 [2] 236 [3] 57 [4] 166 [5] 16 Hits@level+ = [0+] 984 [1+] 827 [2+] 475 [3+] 239 [4+] 182 [5+] 16 Hits/KSLOC@level+ = [0+] 34.3192 [1+] 28.8435 [2+] 16.5667 [3+] 8.33566 [4+] 6.34766 [5+] 0.558036 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.