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/jeex-12.0.4/plugin/jeex_hello.c
Examining data/jeex-12.0.4/plugin/jeex_hello.h
Examining data/jeex-12.0.4/plugin/header.h
Examining data/jeex-12.0.4/plugin/joiner.c
Examining data/jeex-12.0.4/plugin/joiner.h
Examining data/jeex-12.0.4/src/menu.c
Examining data/jeex-12.0.4/src/bookmark.c
Examining data/jeex-12.0.4/src/search.h
Examining data/jeex-12.0.4/src/logging.c
Examining data/jeex-12.0.4/src/html-export.c
Examining data/jeex-12.0.4/src/menu.h
Examining data/jeex-12.0.4/src/tools.c
Examining data/jeex-12.0.4/src/view.h
Examining data/jeex-12.0.4/src/html-export.h
Examining data/jeex-12.0.4/src/info.h
Examining data/jeex-12.0.4/src/terminal-actions.c
Examining data/jeex-12.0.4/src/tools.h
Examining data/jeex-12.0.4/src/plugin.c
Examining data/jeex-12.0.4/src/search.c
Examining data/jeex-12.0.4/src/info.c
Examining data/jeex-12.0.4/src/logging.h
Examining data/jeex-12.0.4/src/preferences.c
Examining data/jeex-12.0.4/src/file.h
Examining data/jeex-12.0.4/src/preferences.h
Examining data/jeex-12.0.4/src/edit.h
Examining data/jeex-12.0.4/src/plugin.h
Examining data/jeex-12.0.4/src/file.c
Examining data/jeex-12.0.4/src/terminal-actions.h
Examining data/jeex-12.0.4/src/general-function.h
Examining data/jeex-12.0.4/src/edit.c
Examining data/jeex-12.0.4/src/bookmark.h
Examining data/jeex-12.0.4/src/notebook-manage.c
Examining data/jeex-12.0.4/src/general-function.c
Examining data/jeex-12.0.4/src/header.h
Examining data/jeex-12.0.4/src/main.c
Examining data/jeex-12.0.4/src/notebook-manage.h
Examining data/jeex-12.0.4/src/view.c

FINAL RESULTS:

data/jeex-12.0.4/src/file.c:1855:7:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execl (JEEX_PATH_BIN "/" LINK_NAME, JEEX_PATH_BIN "/" LINK_NAME, NULL, NULL);
data/jeex-12.0.4/src/general-function.c:1054:15:  [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 (text, ftmp + (strlen (ftmp) - 3));
data/jeex-12.0.4/src/general-function.c:1058:15:  [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 (text, ftmp);
data/jeex-12.0.4/src/info.c:73:23:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                      execl (t, t, link_, NULL, NULL);
data/jeex-12.0.4/src/file.c:188:54:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
                filename = g_strdup_printf ("%s/%s", g_get_home_dir (), recent_file->name[i] + 5);
data/jeex-12.0.4/src/file.c:267:41:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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_strdup_printf ("%s/%s", g_get_home_dir (),
data/jeex-12.0.4/src/general-function.c:177: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.
  tmp = getenv ("HOME");
data/jeex-12.0.4/src/info.c:32:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *paths = getenv ("PATH");
data/jeex-12.0.4/src/logging.c:41:52:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  folder = g_strdup_printf ("%s/.config/jeex/log", g_get_home_dir ());
data/jeex-12.0.4/src/logging.c:63:85:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  jeex_log->log_filename = g_strdup_printf ("%s/.config/jeex/log/%.2d%.2d%.4d.log", g_get_home_dir (),
data/jeex-12.0.4/src/main.c:95: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.
      z = getopt_long (argc, argv, "hgvb:s:p:", jeex_long_options, &opt_index);
data/jeex-12.0.4/src/main.c:193:64:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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 (g_file_test (g_strdup_printf ("%s/.config/jeex/jeex.rc", g_get_home_dir()), G_FILE_TEST_EXISTS))
data/jeex-12.0.4/src/main.c:194:65:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
      gtk_rc_parse (g_strdup_printf ("%s/.config/jeex/jeex.rc", g_get_home_dir()));
data/jeex-12.0.4/src/preferences.c:130:49:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  pfolder = g_strdup_printf ("%s/.config/jeex", g_get_home_dir ());
data/jeex-12.0.4/src/preferences.c:321:49:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  pfolder = g_strdup_printf ("%s/.config/jeex", g_get_home_dir ());
data/jeex-12.0.4/src/preferences.c:994:54:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  text = g_strdup_printf ("%s/.config/jeex/jeex.rc", g_get_home_dir());
data/jeex-12.0.4/src/terminal-actions.c:306:3:  [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/jeex-12.0.4/src/tools.c:521:7:  [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/jeex-12.0.4/plugin/joiner.c:121:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(fo = fopen (w->opt->output, "wb")))
data/jeex-12.0.4/plugin/joiner.c:136:22:  [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 (!(fi = fopen (s, "rb")))
data/jeex-12.0.4/src/bookmark.c:705:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  gtk_entry_set_text (GTK_ENTRY (bwidget->e_name), (const char *) bookmark_elem (str[n]));
data/jeex-12.0.4/src/bookmark.c:713:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      gtk_entry_set_text (GTK_ENTRY (bwidget->e_tips), (const char *) bookmark_elem (tips[n]));
data/jeex-12.0.4/src/edit.c:64:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(of = fopen (_ncurrent (file)->name, "rb")))
data/jeex-12.0.4/src/edit.c:148:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char byte[2] = { 0, 0 };
data/jeex-12.0.4/src/edit.c:344: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).
      byte = g_strdup_printf ("%.2X", atoi (free_me));
data/jeex-12.0.4/src/edit.c:494:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *str, *p, buff[2];
data/jeex-12.0.4/src/file.c:659:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *str[2];
data/jeex-12.0.4/src/file.c:694: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->last_access), &(src->last_access), 50);
data/jeex-12.0.4/src/file.c:695: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->last_modify), &(src->last_modify), 50);
data/jeex-12.0.4/src/file.c:699: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->bookmark), &(src->bookmark), sizeof (struct JeexBookmark));
data/jeex-12.0.4/src/file.c:842: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 *txtmp, buff[3], *local_str;
data/jeex-12.0.4/src/file.c:911:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(of = fopen (_ncurrent (file)->name, "rb")))
data/jeex-12.0.4/src/file.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).
      if (!(of = fopen (filename, "rb")))
data/jeex-12.0.4/src/file.c:1436: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).
      if (!(of = fopen (_ncurrent (file)->name, "wb+")))
data/jeex-12.0.4/src/file.c:1564:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *pattern[6] = { "*", "*.jascii", "*.joct", "*.jhex", "*.jdec", "*.jbin" }, *human_text[6] =
data/jeex-12.0.4/src/file.c:1635:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *extension[6] = { "", "jascii", "joct", "jhex", "jdec", "jbin" };
data/jeex-12.0.4/src/file.c:1703:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *extension[6] = { "", "jascii", "joct", "jhex", "jdec", "jbin" }, *description[6] =
data/jeex-12.0.4/src/file.h:30: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 last_access[50], last_modify[50];
data/jeex-12.0.4/src/general-function.c:180: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.
  if (fthx ((unsigned char *) info[1], home) && strcmp (info[1], home))
data/jeex-12.0.4/src/general-function.c:468: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.
      switch (((char *) vstr)[len])
data/jeex-12.0.4/src/general-function.c:806:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[64] = { 0 }, *s_val = NULL;
data/jeex-12.0.4/src/general-function.c:810:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fd = open ("/proc/meminfo", O_RDONLY)) == -1)
data/jeex-12.0.4/src/general-function.c:829: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).
  val = (unsigned int) atoi (s_val) * 1024;
data/jeex-12.0.4/src/general-function.c:915:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      x = atoi (str);
data/jeex-12.0.4/src/html-export.c:513:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *tmp, *t, *_end, **d, timebuf[20];
data/jeex-12.0.4/src/html-export.c:534:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(of = fopen (tmp, "wb")))
data/jeex-12.0.4/src/logging.c:69:30:  [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 (!(jeex_log->log_file = fopen (jeex_log->log_filename, "a")))
data/jeex-12.0.4/src/logging.c:105:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[64];
data/jeex-12.0.4/src/menu.h:32: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).
    GtkWidget *open;
data/jeex-12.0.4/src/preferences.c:1005:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(rc = fopen (text, "r+")))
data/jeex-12.0.4/src/terminal-actions.c:46:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(of = fopen (file, "rb")))
data/jeex-12.0.4/src/terminal-actions.c:102:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(of = fopen (filename, "rb")))
data/jeex-12.0.4/src/terminal-actions.c:261:14:  [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).
       len = atoi (number);
data/jeex-12.0.4/src/terminal-actions.c:411:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 if ( !(of = fopen (filename, "rb")) ) {
data/jeex-12.0.4/src/tools.c:200:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(fi = fopen (_ncurrent (file)->name, "r")))
data/jeex-12.0.4/src/tools.c:230: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).
      if (!(fo = fopen (output, "w")))
data/jeex-12.0.4/src/view.c:49:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if (!(atoi (t) % 2))
data/jeex-12.0.4/src/view.c:193:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *type[7] = {
data/jeex-12.0.4/src/view.c:206:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *s[7];
data/jeex-12.0.4/src/view.c:334: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 *format[4] = {
data/jeex-12.0.4/src/view.c:564:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char *data[2];
data/jeex-12.0.4/src/view.c:571:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!(of = fopen (filename, "rb")))
data/jeex-12.0.4/src/view.c:579: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.
  data[0] = (unsigned char *) malloc ((size[0] = ftell (of)) * sizeof (unsigned char));
data/jeex-12.0.4/src/bookmark.c:190: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).
  gtk_entry_select_region (GTK_ENTRY (bwidget->e_addr), 0, strlen (addr));
data/jeex-12.0.4/src/bookmark.c:267: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 (addr);
data/jeex-12.0.4/src/bookmark.c:1005: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 (addr);
data/jeex-12.0.4/src/edit.c:121: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).
  if ((i = strlen (info[0])) > preferences->max_tabchars)
data/jeex-12.0.4/src/edit.c:420: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 (str);
data/jeex-12.0.4/src/edit.c:503: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 (str);
data/jeex-12.0.4/src/edit.c:526: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 (str);
data/jeex-12.0.4/src/edit.c:534: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).
      i = strlen (p);
data/jeex-12.0.4/src/file.c:395: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 i, len = strlen (type ? type : "");
data/jeex-12.0.4/src/file.c:667: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 (str[0]) > preferences->max_tabchars)
data/jeex-12.0.4/src/file.c:853: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).
  i = strlen (txtmp);
data/jeex-12.0.4/src/file.c:1103: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).
  if ((i = strlen (tmp_info[0])) > preferences->max_tabchars)
data/jeex-12.0.4/src/file.c:1592: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 (file_name) - 1, i = len; len > 0; len--)
data/jeex-12.0.4/src/general-function.c:91:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((i = strlen (name)) > preferences->max_tabchars)
data/jeex-12.0.4/src/general-function.c:137:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((i = strlen (name)) > preferences->max_tabchars)
data/jeex-12.0.4/src/general-function.c:182: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).
      tmp = g_strdup_printf ("~%s", info[1] + strlen (home));
data/jeex-12.0.4/src/general-function.c:464:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen ((char *) vstr);
data/jeex-12.0.4/src/general-function.c:655: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).
  mem = strlen (local_str);
data/jeex-12.0.4/src/general-function.c:683:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen (str), i, pos = 0, c, lensub = strlen (substr);
data/jeex-12.0.4/src/general-function.c:683: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).
  int len = strlen (str), i, pos = 0, c, lensub = strlen (substr);
data/jeex-12.0.4/src/general-function.c:817:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read (fd, buff, 64) < 32)
data/jeex-12.0.4/src/general-function.c:847: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 (str), x = 0; x < i; ++x)
data/jeex-12.0.4/src/general-function.c:926: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).
          text = g_strdup_printf (" %s ", (strlen (tmp) > 2) ? tmp + (strlen (tmp) - 2) : tmp);
data/jeex-12.0.4/src/general-function.c:926:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          text = g_strdup_printf (" %s ", (strlen (tmp) > 2) ? tmp + (strlen (tmp) - 2) : tmp);
data/jeex-12.0.4/src/general-function.c:933:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for (p = 0, x = strlen (str); p < x; p++)
data/jeex-12.0.4/src/general-function.c:978:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for (x = 0, p = strlen (str); x < p; ++x)
data/jeex-12.0.4/src/general-function.c:1011:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for (x = 0, p = strlen (str); x < p; ++x)
data/jeex-12.0.4/src/general-function.c:1045: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).
      text = (char *) g_try_malloc (1 + ((p = strlen (tmp)) * 3));
data/jeex-12.0.4/src/general-function.c:1047:7:  [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 (text, "");
data/jeex-12.0.4/src/general-function.c:1052:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (ftmp) > 2)
data/jeex-12.0.4/src/general-function.c:1054: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).
              strcat (text, ftmp + (strlen (ftmp) - 3));
data/jeex-12.0.4/src/html-export.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).
  if ((len = strlen (t)) > 5 && fthx ((unsigned char *) t + (len - 5), ".html"))
data/jeex-12.0.4/src/html-export.c:521: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 (*d) - 5;
data/jeex-12.0.4/src/html-export.c:557: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).
  fwrite (tmp, sizeof (char), strlen (tmp), of);
data/jeex-12.0.4/src/html-export.c:566: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).
          fwrite (tmp, sizeof (char), strlen (tmp), of);
data/jeex-12.0.4/src/html-export.c:584: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).
      fwrite (tmp, sizeof (char), strlen (tmp), of);
data/jeex-12.0.4/src/html-export.c:603: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).
      fwrite (tmp, sizeof (char), strlen (tmp), of);
data/jeex-12.0.4/src/html-export.c:614: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).
      t[strlen (t) - 5] = '\0';
data/jeex-12.0.4/src/html-export.c:618: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).
      fwrite (tmp, sizeof (char), strlen (tmp), of);
data/jeex-12.0.4/src/html-export.c:626: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).
      t[strlen (t) - 5] = '\0';
data/jeex-12.0.4/src/html-export.c:629: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).
      fwrite (tmp, sizeof (char), strlen (tmp), of);
data/jeex-12.0.4/src/html-export.c:638: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).
  fwrite (tmp, sizeof (char), strlen (tmp), of);
data/jeex-12.0.4/src/notebook-manage.c:262:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((i = strlen (name)) > preferences->max_tabchars)
data/jeex-12.0.4/src/notebook-manage.c:361: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).
  if ((i = strlen (label)) > preferences->max_tabchars)
data/jeex-12.0.4/src/search.c:340: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 i, len = strlen (o_str ? o_str : "\0");
data/jeex-12.0.4/src/search.c:748: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 (str);
data/jeex-12.0.4/src/search.c:816: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 (str);
data/jeex-12.0.4/src/search.c:1053: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 (offset);
data/jeex-12.0.4/src/terminal-actions.c:171: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 i, len = strlen (str);
data/jeex-12.0.4/src/terminal-actions.c:180: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 = g_strndup (str, len - (i = strlen (strrchr (str, ':'))));
data/jeex-12.0.4/src/terminal-actions.c:237: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 (strings[j]);
data/jeex-12.0.4/src/terminal-actions.c:386:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 int _start, _end, len = strlen (start_and_end), i, t;
data/jeex-12.0.4/src/terminal-actions.c:396: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).
 filename = g_strndup (start_and_end, len - (i = strlen (strrchr (start_and_end, ':'))));
data/jeex-12.0.4/src/tools.c:533:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  read (fd[0], &c, sizeof (char));
data/jeex-12.0.4/src/tools.c:545:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  read (fd[0], &i, sizeof (int));
data/jeex-12.0.4/src/tools.c:552:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  read (fd[0], &d, sizeof (double));
data/jeex-12.0.4/src/tools.c:560:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  read (fd[0], &f, sizeof (float));
data/jeex-12.0.4/src/tools.c:568:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  read (fd[0], &l, sizeof (long));
data/jeex-12.0.4/src/tools.c:576:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  read (fd[0], &u, sizeof (unsigned));
data/jeex-12.0.4/src/tools.c:584:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  read (fd[0], &h, sizeof (short));
data/jeex-12.0.4/src/tools.c:592:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  read (fd[0], &s, sizeof (signed));

ANALYSIS SUMMARY:

Hits = 124
Lines analyzed = 13926 in approximately 0.38 seconds (36278 lines/second)
Physical Source Lines of Code (SLOC) = 9841
Hits@level = [0]  29 [1]  61 [2]  45 [3]  14 [4]   4 [5]   0
Hits@level+ = [0+] 153 [1+] 124 [2+]  63 [3+]  18 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 15.5472 [1+] 12.6003 [2+] 6.40179 [3+] 1.82908 [4+] 0.406463 [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.