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/ncurses-hexedit-0.9.7+orig/src/asciikey.c
Examining data/ncurses-hexedit-0.9.7+orig/src/calc.c
Examining data/ncurses-hexedit-0.9.7+orig/src/calckeys.c
Examining data/ncurses-hexedit-0.9.7+orig/src/edit.c
Examining data/ncurses-hexedit-0.9.7+orig/src/file.c
Examining data/ncurses-hexedit-0.9.7+orig/src/filebuf.c
Examining data/ncurses-hexedit-0.9.7+orig/src/filekeys.c
Examining data/ncurses-hexedit-0.9.7+orig/src/hash.c
Examining data/ncurses-hexedit-0.9.7+orig/src/help.c
Examining data/ncurses-hexedit-0.9.7+orig/src/hexedit.h
Examining data/ncurses-hexedit-0.9.7+orig/src/hexkeys.c
Examining data/ncurses-hexedit-0.9.7+orig/src/init.c
Examining data/ncurses-hexedit-0.9.7+orig/src/main.c
Examining data/ncurses-hexedit-0.9.7+orig/src/misc.c
Examining data/ncurses-hexedit-0.9.7+orig/src/print.c
Examining data/ncurses-hexedit-0.9.7+orig/src/search.c
Examining data/ncurses-hexedit-0.9.7+orig/src/undo.c
Examining data/ncurses-hexedit-0.9.7+orig/src/widgets.c
Examining data/ncurses-hexedit-0.9.7+orig/src/windows.c
Examining data/ncurses-hexedit-0.9.7+orig/gnu/getopt.h
Examining data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c
Examining data/ncurses-hexedit-0.9.7+orig/gnu/getopt1.c

FINAL RESULTS:

data/ncurses-hexedit-0.9.7+orig/src/file.c:84:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy (previous_dir, dir);
data/ncurses-hexedit-0.9.7+orig/src/file.c:102:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy (dir, previous_dir);
data/ncurses-hexedit-0.9.7+orig/src/file.c:283:10:  [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 (pdir, previous_dir);
data/ncurses-hexedit-0.9.7+orig/src/file.c:291:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy (dir, fp->filename);
data/ncurses-hexedit-0.9.7+orig/src/file.c:311: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 (ret, fp->filename);
data/ncurses-hexedit-0.9.7+orig/src/file.c:394: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 (fnp->filename, dp->d_name);
data/ncurses-hexedit-0.9.7+orig/src/file.c:566:10:  [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 (modebits, bits[(filestat.st_mode & 0700) >> 6]);
data/ncurses-hexedit-0.9.7+orig/src/file.c:567:10:  [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 (modebits, bits[(filestat.st_mode & 0070) >> 3]);
data/ncurses-hexedit-0.9.7+orig/src/file.c:568:10:  [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 (modebits, bits[filestat.st_mode & 0007]);
data/ncurses-hexedit-0.9.7+orig/src/file.c:612:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (s1, "%s", pw->pw_name);
data/ncurses-hexedit-0.9.7+orig/src/file.c:617:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (s2, "%s", gw->gr_name);
data/ncurses-hexedit-0.9.7+orig/src/help.c:61: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, help_msgs[INSERT_MSG_INDEX]);
data/ncurses-hexedit-0.9.7+orig/src/help.c:62:4:  [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 (temp, 
data/ncurses-hexedit-0.9.7+orig/src/help.c:74: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, help_msgs[DELETE_MSG_INDEX]);
data/ncurses-hexedit-0.9.7+orig/src/help.c:75:4:  [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 (temp, 
data/ncurses-hexedit-0.9.7+orig/src/misc.c:407:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(usage,
data/ncurses-hexedit-0.9.7+orig/src/windows.c:159:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (s,
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:206:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char *getenv ();
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:397:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:961: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 (argc, argv, optstring)
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:991: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/ncurses-hexedit-0.9.7+orig/gnu/getopt.h:104: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/ncurses-hexedit-0.9.7+orig/gnu/getopt.h:109: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 ();
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.h:112: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 *const *argv, const char *shortopts,
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.h:124: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 ();
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.h:125: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 ();
data/ncurses-hexedit-0.9.7+orig/gnu/getopt1.c:66: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 (argc, argv, options, long_options, opt_index)
data/ncurses-hexedit-0.9.7+orig/gnu/getopt1.c:122: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/ncurses-hexedit-0.9.7+orig/src/init.c:144:16:  [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.
   while ((i = getopt_long (argc, argv, "8abdfhnqrv", long_options,
data/ncurses-hexedit-0.9.7+orig/src/calc.c:215:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[BOX_LEN + 1];
data/ncurses-hexedit-0.9.7+orig/src/calc.c:226:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (s, "%o", octbox->value.i);
data/ncurses-hexedit-0.9.7+orig/src/calc.c:244:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[BOX_LEN + 1];
data/ncurses-hexedit-0.9.7+orig/src/calc.c:255:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (s, "%d", decbox->value.i);
data/ncurses-hexedit-0.9.7+orig/src/calc.c:273:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[BOX_LEN + 1];
data/ncurses-hexedit-0.9.7+orig/src/calc.c:284:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (s, "%X", hexbox->value.i);
data/ncurses-hexedit-0.9.7+orig/src/file.c:52:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dir[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/file.c:53:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char previous_dir[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/file.c:54:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/file.c:267:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char pdir[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/file.c:282:13:  [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 (pdir, "../");
data/ncurses-hexedit-0.9.7+orig/src/file.c:526:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/file.c:535: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 modebits[11];
data/ncurses-hexedit-0.9.7+orig/src/file.c:536: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 s1[11];
data/ncurses-hexedit-0.9.7+orig/src/file.c:537: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 s2[11];
data/ncurses-hexedit-0.9.7+orig/src/file.c:610:13:  [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 (s1, "%d", (int) filestat.st_uid);
data/ncurses-hexedit-0.9.7+orig/src/file.c:615:13:  [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 (s2, "%d", (int) filestat.st_gid);
data/ncurses-hexedit-0.9.7+orig/src/filebuf.c:76:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char strbuf[DEFAULT_READ_BUFFER];
data/ncurses-hexedit-0.9.7+orig/src/filebuf.c:92: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 (filebuf + i, strbuf, result);
data/ncurses-hexedit-0.9.7+orig/src/filekeys.c:26:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/filekeys.c:90:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/filekeys.c:156:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/filekeys.c:186:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/filekeys.c:240:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/filekeys.c:289:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/filekeys.c:341:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/hexedit.h:417:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[BOX_LEN + 1];
data/ncurses-hexedit-0.9.7+orig/src/init.c:313:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fp = fopen (*(argv + optind), "rb");
data/ncurses-hexedit-0.9.7+orig/src/init.c:363:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      *fp = fopen (p, "rb");
data/ncurses-hexedit-0.9.7+orig/src/init.c:408:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char strbuf[DEFAULT_READ_BUFFER];
data/ncurses-hexedit-0.9.7+orig/src/init.c:521: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 (filebuf + i, strbuf, result);
data/ncurses-hexedit-0.9.7+orig/src/misc.c:590:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fd = open (tty, O_RDWR);
data/ncurses-hexedit-0.9.7+orig/src/misc.c:656: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 trunc_file[PATH_MAX + 1];
data/ncurses-hexedit-0.9.7+orig/src/windows.c:30:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char offsetstr[OFFSET_STRING_BUF];
data/ncurses-hexedit-0.9.7+orig/src/windows.c:51: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 (offsetstr, "0x");
data/ncurses-hexedit-0.9.7+orig/src/windows.c:133:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[STRING_BUF];
data/ncurses-hexedit-0.9.7+orig/src/windows.c:269: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).
         fp = fopen (filename, "r+b");
data/ncurses-hexedit-0.9.7+orig/src/windows.c:273: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).
         fp = fopen (filename, "wb");
data/ncurses-hexedit-0.9.7+orig/src/windows.c:289:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            Globals.fp = fopen (Globals.filename, "rb");
data/ncurses-hexedit-0.9.7+orig/src/windows.c:345:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               unsigned char buffer[DEFAULT_READ_BUFFER];
data/ncurses-hexedit-0.9.7+orig/src/windows.c:701: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.
         memcpy (laststr, retr->str, retr->len);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:230: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).
extern int strlen (const char *);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:428: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).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:649: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/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:673: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).
	  nextchar += strlen (nextchar);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:704: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).
		  nextchar += strlen (nextchar);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:720: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).
		  nextchar += strlen (nextchar);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:725: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).
	  nextchar += strlen (nextchar);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:836:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:859: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).
	    nextchar += strlen (nextchar);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:879: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).
		    nextchar += strlen (nextchar);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:893: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).
		    nextchar += strlen (nextchar);
data/ncurses-hexedit-0.9.7+orig/gnu/getopt.c:897: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).
	    nextchar += strlen (nextchar);
data/ncurses-hexedit-0.9.7+orig/src/calc.c:53:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   wmove (Globals.wmain, 1, (COLS / 2) - (strlen ("Binary Calculator") / 2));
data/ncurses-hexedit-0.9.7+orig/src/file.c:273: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 ("Cannot Change Directory") / 2));
data/ncurses-hexedit-0.9.7+orig/src/file.c:276:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (strlen (strerror (errno)) + strlen ("Reason: ")) / 2);
data/ncurses-hexedit-0.9.7+orig/src/file.c:276:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (strlen (strerror (errno)) + strlen ("Reason: ")) / 2);
data/ncurses-hexedit-0.9.7+orig/src/file.c:307: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).
   ret = malloc (strlen (fp->filename) + 1);
data/ncurses-hexedit-0.9.7+orig/src/file.c:340: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).
   l = strlen (filename);
data/ncurses-hexedit-0.9.7+orig/src/file.c:390: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).
      fnp->filename = malloc (strlen (dp->d_name) + 1);
data/ncurses-hexedit-0.9.7+orig/src/help.c:57: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).
   temp = malloc (1 + strlen (help_msgs[INSERT_MSG_INDEX])
data/ncurses-hexedit-0.9.7+orig/src/help.c:58:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    + strlen (
data/ncurses-hexedit-0.9.7+orig/src/help.c:70: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).
   temp = malloc (1 + strlen (help_msgs[DELETE_MSG_INDEX])
data/ncurses-hexedit-0.9.7+orig/src/help.c:71:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    + strlen (
data/ncurses-hexedit-0.9.7+orig/src/hexedit.h:434:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (dst, src, \
data/ncurses-hexedit-0.9.7+orig/src/init.c:318: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).
         l = strlen (*(argv + optind)) + 1;
data/ncurses-hexedit-0.9.7+orig/src/init.c:322:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy ((char *) Globals.filename, *(argv + optind), l);
data/ncurses-hexedit-0.9.7+orig/src/init.c:387: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 (msg) / 2));
data/ncurses-hexedit-0.9.7+orig/src/init.c:390:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (strlen (strerror (errno)) + strlen ("Reason: ")) / 2);
data/ncurses-hexedit-0.9.7+orig/src/init.c:390:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (strlen (strerror (errno)) + strlen ("Reason: ")) / 2);
data/ncurses-hexedit-0.9.7+orig/src/misc.c:459: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).
             QUIT_BOX_WIDTH / 2 - strlen ("   Really Quit?        ") / 2);
data/ncurses-hexedit-0.9.7+orig/src/misc.c:465: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).
             QUIT_BOX_WIDTH / 2 - strlen ("Quit without Saving?") / 2);
data/ncurses-hexedit-0.9.7+orig/src/misc.c:473: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).
          - (strlen (" Yes       No       New File ") / 2));
data/ncurses-hexedit-0.9.7+orig/src/misc.c:485: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).
   for (j = strlen ("^G/^X/Escape Cancel   Y Yes   N No   F New File");
data/ncurses-hexedit-0.9.7+orig/src/misc.c:529: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).
                - (strlen (" Yes       No       New File ") / 2));
data/ncurses-hexedit-0.9.7+orig/src/misc.c:538: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).
                - (strlen (" Yes       No       New File ") / 2));
data/ncurses-hexedit-0.9.7+orig/src/misc.c:549: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).
                - (strlen (" Yes       No       New File ") / 2));
data/ncurses-hexedit-0.9.7+orig/src/print.c:330: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 (Globals.filename) < length)
data/ncurses-hexedit-0.9.7+orig/src/print.c:331:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (buf, Globals.filename, strlen (Globals.filename));
data/ncurses-hexedit-0.9.7+orig/src/print.c:331: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).
      strncpy (buf, Globals.filename, strlen (Globals.filename));
data/ncurses-hexedit-0.9.7+orig/src/print.c:333:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (buf, Globals.filename, length - 1);
data/ncurses-hexedit-0.9.7+orig/src/print.c:363:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("^G Help"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:367:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("^G Help");
data/ncurses-hexedit-0.9.7+orig/src/print.c:369:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   ^C Exit (No Save)"))
data/ncurses-hexedit-0.9.7+orig/src/print.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).
         len -= strlen ("   ^C Exit");         
data/ncurses-hexedit-0.9.7+orig/src/print.c:380: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).
         len -= strlen ("   ^C Exit (No Save)");
data/ncurses-hexedit-0.9.7+orig/src/print.c:383:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   ^T goTo Offset"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:387:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("   ^T goTo Offset");
data/ncurses-hexedit-0.9.7+orig/src/print.c:389:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   ^X Exit and Save"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:395: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).
         len -= strlen ("   ^X Exit");
data/ncurses-hexedit-0.9.7+orig/src/print.c:400: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).
         len -= strlen ("   ^X Exit and Save");
data/ncurses-hexedit-0.9.7+orig/src/print.c:403:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   ^W Search"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:407:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("   ^W Search");
data/ncurses-hexedit-0.9.7+orig/src/print.c:409:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if ((Globals.modified != READ_ONLY) && (len > strlen ("   ^U Undo")))
data/ncurses-hexedit-0.9.7+orig/src/print.c:413:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("   ^U Undo");
data/ncurses-hexedit-0.9.7+orig/src/print.c:415:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   ^L Redraw"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:419:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("   ^L Redraw");
data/ncurses-hexedit-0.9.7+orig/src/print.c:421:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   ^E Text Mode"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:425:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("   ^E Text Mode");
data/ncurses-hexedit-0.9.7+orig/src/print.c:427:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   ^R CharSet"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:431:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("   ^R CharSet");
data/ncurses-hexedit-0.9.7+orig/src/print.c:433:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   ^P Spacing"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:437:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("   ^P Spacing");
data/ncurses-hexedit-0.9.7+orig/src/print.c:439:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   ^N Find Next"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:443:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("   ^N Find Next");
data/ncurses-hexedit-0.9.7+orig/src/print.c:445:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (len > strlen ("   F5 Color"))
data/ncurses-hexedit-0.9.7+orig/src/print.c:449:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len -= strlen ("   ^F5 Color");
data/ncurses-hexedit-0.9.7+orig/src/print.c:488: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).
             - (strlen ("Binary Calculator") / 2));
data/ncurses-hexedit-0.9.7+orig/src/widgets.c:60:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int samplelen = strlen (sample ? sample : "");
data/ncurses-hexedit-0.9.7+orig/src/widgets.c:74:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (str, sample, samplelen);
data/ncurses-hexedit-0.9.7+orig/src/widgets.c:170: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).
                  for (n = strlen (str); n < len; n++)
data/ncurses-hexedit-0.9.7+orig/src/widgets.c:401: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).
         wmove (win, 3, boxleft + strlen ("text:  ") + rstr.len);
data/ncurses-hexedit-0.9.7+orig/src/widgets.c:453: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).
                  wmove (win, 3, boxleft + strlen ("text:  ") + rstr.len + 1);
data/ncurses-hexedit-0.9.7+orig/src/widgets.c:462: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).
                  wmove (win, 3, boxleft + strlen ("text:  ") + rstr.len);
data/ncurses-hexedit-0.9.7+orig/src/widgets.c:478: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).
                  wmove (win, 3, boxleft + strlen ("text:  ") + rstr.len);
data/ncurses-hexedit-0.9.7+orig/src/windows.c:41: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).
   wmove (wpopup, 1, (OFFSET_BOX_WIDTH / 2) - (strlen ("Goto Offset") / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:47: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).
                     - (strlen ("Offset:") / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:102: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).
   wmove (win, 0, (COLS / 2) - (strlen ("Help Menu") / 2) - 2);
data/ncurses-hexedit-0.9.7+orig/src/windows.c:107: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).
      wmove (win, 0, COLS - strlen ("(more)") - 1);
data/ncurses-hexedit-0.9.7+orig/src/windows.c:112: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).
      wmove (win, MAIN_BOTTOM_LINE, COLS - strlen ("(more)") - 1);
data/ncurses-hexedit-0.9.7+orig/src/windows.c:163:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   wmove (Globals.whelp, 0, (COLS / 2) - (strlen (s) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:245: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).
   wmove (wpopup, 1, (FILE_SAVE_WIDTH / 2) - (strlen ("Save File") / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:253: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).
   filename = stringBox (wpopup, 3, 2 + strlen ("Filename: "), 
data/ncurses-hexedit-0.9.7+orig/src/windows.c:280: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 ("Cannot Save File") / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:283:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (strlen (strerror (errno)) + strlen ("Reason: ")) / 2);
data/ncurses-hexedit-0.9.7+orig/src/windows.c:283:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (strlen (strerror (errno)) + strlen ("Reason: ")) / 2);
data/ncurses-hexedit-0.9.7+orig/src/windows.c:407: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).
                    - (strlen ("Cannot Save File") / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:410: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 (strerror (errno)) + strlen ("Reason: ")) / 2);
data/ncurses-hexedit-0.9.7+orig/src/windows.c:410: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).
                   (strlen (strerror (errno)) + strlen ("Reason: ")) / 2);
data/ncurses-hexedit-0.9.7+orig/src/windows.c:481: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).
   wmove (wpopup, 1, (SEARCH_BOX_WIDTH / 2) - (strlen ("Search") / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:487: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).
   wmove (wpopup, 3, (SEARCH_BOX_WIDTH / 2) - (strlen (options[0]) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:493: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).
   wmove (wpopup, 5, (SEARCH_BOX_WIDTH / 2) - (strlen (options[1]) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:497: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).
   wmove (wpopup, 7, (SEARCH_BOX_WIDTH / 2) - (strlen (options[2]) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:560: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).
            wmove (wpopup, 3, (SEARCH_BOX_WIDTH / 2) - (strlen (options[0]) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:566: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).
            wmove (wpopup, 5, (SEARCH_BOX_WIDTH / 2) - (strlen (options[1]) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:572: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).
            wmove (wpopup, 7, (SEARCH_BOX_WIDTH / 2) - (strlen (options[2]) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:587: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).
   wmove (wpopup, 3, (SEARCH_BOX_WIDTH / 2) - (strlen (options[0]) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:588:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   wprintw (wpopup, "%*c", strlen (options[0]), ' ');
data/ncurses-hexedit-0.9.7+orig/src/windows.c:589: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).
   wmove (wpopup, 5, (SEARCH_BOX_WIDTH / 2) - (strlen (options[1]) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:590: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).
   wprintw (wpopup, "%*c", strlen (options[1]), ' ');
data/ncurses-hexedit-0.9.7+orig/src/windows.c:591: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).
   wmove (wpopup, 7, (SEARCH_BOX_WIDTH / 2) - (strlen (options[2]) / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:592: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).
   wprintw (wpopup, "%*c", strlen (options[2]), ' ');
data/ncurses-hexedit-0.9.7+orig/src/windows.c:615:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                - (strlen ("** String not found **") / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:630:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      wmove (wpopup, 1, (SEARCH_BOX_WIDTH / 2) - (strlen ("Text String")
data/ncurses-hexedit-0.9.7+orig/src/windows.c:658: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).
                                 last_str_len = strlen ((char *) s),
data/ncurses-hexedit-0.9.7+orig/src/windows.c:675: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).
                  - (strlen ("** String not found **") / 2));
data/ncurses-hexedit-0.9.7+orig/src/windows.c:686:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      wmove (wpopup, 1, (SEARCH_BOX_WIDTH / 2) - (strlen ("Byte Search")
data/ncurses-hexedit-0.9.7+orig/src/windows.c:721: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).
                   - (strlen ("** String not found **") / 2));

ANALYSIS SUMMARY:

Hits = 177
Lines analyzed = 9304 in approximately 0.24 seconds (39393 lines/second)
Physical Source Lines of Code (SLOC) = 7418
Hits@level = [0]  56 [1] 107 [2]  41 [3]  12 [4]  17 [5]   0
Hits@level+ = [0+] 233 [1+] 177 [2+]  70 [3+]  29 [4+]  17 [5+]   0
Hits/KSLOC@level+ = [0+] 31.4101 [1+] 23.8609 [2+] 9.43651 [3+] 3.90941 [4+] 2.29172 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.