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/goaccess-1.4/src/gmenu.c
Examining data/goaccess-1.4/src/gstorage.h
Examining data/goaccess-1.4/src/commons.h
Examining data/goaccess-1.4/src/output.c
Examining data/goaccess-1.4/src/browsers.h
Examining data/goaccess-1.4/src/settings.h
Examining data/goaccess-1.4/src/base64.h
Examining data/goaccess-1.4/src/opesys.c
Examining data/goaccess-1.4/src/gkhash.c
Examining data/goaccess-1.4/src/options.c
Examining data/goaccess-1.4/src/parser.h
Examining data/goaccess-1.4/src/gkhash.h
Examining data/goaccess-1.4/src/geoip1.h
Examining data/goaccess-1.4/src/gwsocket.c
Examining data/goaccess-1.4/src/util.h
Examining data/goaccess-1.4/src/error.c
Examining data/goaccess-1.4/src/sha1.c
Examining data/goaccess-1.4/src/sort.c
Examining data/goaccess-1.4/src/khash.h
Examining data/goaccess-1.4/src/xmalloc.h
Examining data/goaccess-1.4/src/opesys.h
Examining data/goaccess-1.4/src/gholder.h
Examining data/goaccess-1.4/src/gstorage.c
Examining data/goaccess-1.4/src/csv.c
Examining data/goaccess-1.4/src/gdashboard.c
Examining data/goaccess-1.4/src/goaccess.h
Examining data/goaccess-1.4/src/labels.h
Examining data/goaccess-1.4/src/base64.c
Examining data/goaccess-1.4/src/color.h
Examining data/goaccess-1.4/src/websocket.h
Examining data/goaccess-1.4/src/json.c
Examining data/goaccess-1.4/src/output.h
Examining data/goaccess-1.4/src/sha1.h
Examining data/goaccess-1.4/src/sort.h
Examining data/goaccess-1.4/src/gdns.h
Examining data/goaccess-1.4/src/gslist.h
Examining data/goaccess-1.4/src/tpl.h
Examining data/goaccess-1.4/src/util.c
Examining data/goaccess-1.4/src/ui.c
Examining data/goaccess-1.4/src/geoip2.c
Examining data/goaccess-1.4/src/settings.c
Examining data/goaccess-1.4/src/gslist.c
Examining data/goaccess-1.4/src/gdashboard.h
Examining data/goaccess-1.4/src/websocket.c
Examining data/goaccess-1.4/src/gdns.c
Examining data/goaccess-1.4/src/geoip1.c
Examining data/goaccess-1.4/src/gholder.c
Examining data/goaccess-1.4/src/color.c
Examining data/goaccess-1.4/src/error.h
Examining data/goaccess-1.4/src/xmalloc.c
Examining data/goaccess-1.4/src/browsers.c
Examining data/goaccess-1.4/src/parser.c
Examining data/goaccess-1.4/src/options.h
Examining data/goaccess-1.4/src/commons.c
Examining data/goaccess-1.4/src/gmenu.h
Examining data/goaccess-1.4/src/ui.h
Examining data/goaccess-1.4/src/tpl.c
Examining data/goaccess-1.4/src/gwsocket.h
Examining data/goaccess-1.4/src/goaccess.c
Examining data/goaccess-1.4/src/json.h
Examining data/goaccess-1.4/src/bin2c.c
Examining data/goaccess-1.4/src/csv.h

FINAL RESULTS:

data/goaccess-1.4/src/browsers.c:366:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (val, "Opera%s", token);
data/goaccess-1.4/src/csv.c:226:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, now, OVERALL_DATETIME);
data/goaccess-1.4/src/csv.c:231:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_REQ);
data/goaccess-1.4/src/csv.c:236:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_VALID);
data/goaccess-1.4/src/csv.c:240:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_FAILED);
data/goaccess-1.4/src/csv.c:245:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, t, OVERALL_GENTIME);
data/goaccess-1.4/src/csv.c:250:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_VISITORS);
data/goaccess-1.4/src/csv.c:254:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_FILES);
data/goaccess-1.4/src/csv.c:258:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_EXCL_HITS);
data/goaccess-1.4/src/csv.c:262:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_REF);
data/goaccess-1.4/src/csv.c:266:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_NOTFOUND);
data/goaccess-1.4/src/csv.c:270:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, total, OVERALL_STATIC);
data/goaccess-1.4/src/csv.c:274:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, (intmax_t) get_log_sizes (), OVERALL_LOGSIZE);
data/goaccess-1.4/src/csv.c:278:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, ht_sum_bw (), OVERALL_BANDWIDTH);
data/goaccess-1.4/src/csv.c:283:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (fp, fmt, i++, GENER_ID, source, OVERALL_LOG);
data/goaccess-1.4/src/error.c:102:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access (path, F_OK) != -1)
data/goaccess-1.4/src/error.c:181:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (log_file, fmt, args);
data/goaccess-1.4/src/error.c:195:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (log_invalid, fmt, args);
data/goaccess-1.4/src/error.c:205:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, fmt, args);
data/goaccess-1.4/src/error.c:218:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (access_log, fmt, args);
data/goaccess-1.4/src/error.h:59:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (stderr, fmt, ##__VA_ARGS__);                                       \
data/goaccess-1.4/src/error.h:81:67:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void access_fprintf (const char *fmt, ...) __attribute__((format (printf, 1, 2)));
data/goaccess-1.4/src/error.h:83:63:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void dbg_printf (const char *fmt, ...) __attribute__((format (printf, 1, 2)));
data/goaccess-1.4/src/error.h:85:64:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void dbg_fprintf (const char *fmt, ...) __attribute__((format (printf, 1, 2)));
data/goaccess-1.4/src/error.h:88:68:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void invalid_fprintf (const char *fmt, ...) __attribute__((format (printf, 1, 2)));
data/goaccess-1.4/src/gdashboard.c:245:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, " %s%s %s", bend, horz, data);
data/goaccess-1.4/src/gdashboard.c:532:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (s, "%s: %d/%d", GEN_TOTAL, total, ht_size);
data/goaccess-1.4/src/gdashboard.c:885:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (hd, "%c %d - %s", ind, k, data->head);
data/goaccess-1.4/src/gdns.c:115:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (q->buffer[q->tail], item);
data/goaccess-1.4/src/gkhash.c:1064:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (path, "%s/%s", rpath, fn);
data/goaccess-1.4/src/gkhash.c:1082:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (fn, "%s_%s_%s.db", type, modstr, mtrstr);
data/goaccess-1.4/src/gkhash.c:1542:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access (path, F_OK) != -1)
data/goaccess-1.4/src/gmenu.c:74:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (lbl, "[%c] %s", check, s);
data/goaccess-1.4/src/json.c:173:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
__attribute__((format (printf, 2, 3)))
data/goaccess-1.4/src/json.c:179:14:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  if ((len = vsnprintf (NULL, 0, fmt, args)) < 0)
data/goaccess-1.4/src/json.c:187:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf (json->buf + json->offset, fmt, args);
data/goaccess-1.4/src/json.c:200:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (fp, fmt, args);
data/goaccess-1.4/src/json.h:59:70:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void fpjson (FILE * fp, const char *fmt, ...) __attribute__((format (printf, 2, 3)));
data/goaccess-1.4/src/options.c:160: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 (
data/goaccess-1.4/src/parser.c:947:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    err = xmalloc (snprintf (NULL, 0, fmt, (tkn ? tkn : "-"), spec) + 1);
data/goaccess-1.4/src/parser.c:948:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf (err, fmt, (tkn ? tkn : "-"), spec);
data/goaccess-1.4/src/parser.c:952:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    err = xmalloc (snprintf (NULL, 0, fmt, spec) + 1);
data/goaccess-1.4/src/parser.c:953:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf (err, fmt, spec);
data/goaccess-1.4/src/parser.c:957:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    err = xmalloc (snprintf (NULL, 0, fmt, spec) + 1);
data/goaccess-1.4/src/parser.c:958:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf (err, fmt, spec);
data/goaccess-1.4/src/parser.c:962:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    err = xmalloc (snprintf (NULL, 0, fmt, (tkn ? tkn : "-"), spec) + 1);
data/goaccess-1.4/src/parser.c:963:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf (err, fmt, (tkn ? tkn : "-"), spec);
data/goaccess-1.4/src/parser.c:1538:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (stderr, ERR_PARSED_NLINES, glog->log_erridx);
data/goaccess-1.4/src/parser.c:2632:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (line + linelen, buf);
data/goaccess-1.4/src/settings.c:304:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (opt, "--%s", line);
data/goaccess-1.4/src/settings.c:496:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (s, "%s%s", date_format, spec_format);
data/goaccess-1.4/src/tpl.c:192:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__((__format__ (printf, 1, 2))) __attribute__((__noreturn__));
data/goaccess-1.4/src/tpl.c:196:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__((__format__ (printf, 1, 2)));
data/goaccess-1.4/src/tpl.c:263:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, fmt, ap);
data/goaccess-1.4/src/tpl.c:2348:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  vsnprintf (exit_msg, 100, fmt, ap);
data/goaccess-1.4/src/tpl.h:84:52:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    tpl_print_fcn *oops __attribute__((__format__ (printf, 1, 2)));
data/goaccess-1.4/src/tpl.h:88:53:  [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.
    tpl_fatal_fcn *fatal __attribute__((__format__ (printf, 1, 2)))
data/goaccess-1.4/src/ui.c:225:18:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  buf = xmalloc (snprintf (NULL, 0, fmt, s) + 1);
data/goaccess-1.4/src/ui.c:226:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf (buf, fmt, s);
data/goaccess-1.4/src/ui.c:377:24:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  char *lbl = xmalloc (snprintf (NULL, 0, T_ACTIVE_PANEL, module) + 1);
data/goaccess-1.4/src/ui.c:378:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf (lbl, T_ACTIVE_PANEL, module);
data/goaccess-1.4/src/ui.c:558:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (hd, "%s (%s - %s)", head, start, end);
data/goaccess-1.4/src/ui.c:920:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf (buf, sizeof buf, AGENTSDLG_HEAD, addr);
data/goaccess-1.4/src/ui.c:984:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf (buf, sizeof buf, SPIN_FMT, sp->label);
data/goaccess-1.4/src/ui.c:988:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf (buf, sizeof buf, SPIN_FMTM, sp->label, *(sp->processed), psec);
data/goaccess-1.4/src/util.c:169:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (new, str);
data/goaccess-1.4/src/util.c:456:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (path, "%s/.goaccessrc", user_home);
data/goaccess-1.4/src/util.c:469:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (path, "%s/goaccess/goaccess.conf", SYSCONFDIR);
data/goaccess-1.4/src/util.c:888:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, "%*s", indent, s);
data/goaccess-1.4/src/websocket.c:529:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (wsconfig.pipein && access (wsconfig.pipein, F_OK) != -1)
data/goaccess-1.4/src/websocket.c:544:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (wsconfig.pipeout && access (wsconfig.pipeout, F_OK) != -1)
data/goaccess-1.4/src/websocket.c:2223:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access (f, F_OK) == 0)
data/goaccess-1.4/src/gkhash.c:1053:11:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  rpath = realpath (dbpath, NULL);
data/goaccess-1.4/src/goaccess.c:1181:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  loc_ctype = getenv ("LC_CTYPE");
data/goaccess-1.4/src/goaccess.c:1184:25:  [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.
  else if ((loc_ctype = getenv ("LC_ALL")))
data/goaccess-1.4/src/options.c:591:15:  [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 ((o = getopt_long (argc, argv, short_options, long_opts, &idx)) >= 0) {
data/goaccess-1.4/src/options.c:637:15:  [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 ((o = getopt_long (argc, argv, short_options, long_opts, &idx)) >= 0) {
data/goaccess-1.4/src/settings.c:125:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    rpath = realpath (conf.iconfigfile, NULL);
data/goaccess-1.4/src/settings.c:134:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  if ((rpath = realpath (upath, NULL)) != NULL) {
data/goaccess-1.4/src/settings.c:143:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  if ((rpath = realpath (gpath, NULL)) != NULL && conf.load_global_config) {
data/goaccess-1.4/src/util.c:451:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  user_home = getenv ("HOME");
data/goaccess-1.4/src/bin2c.c:39: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).
  f_input = fopen (argv[1], "rb");
data/goaccess-1.4/src/bin2c.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).
  f_output = fopen (argv[2], "w");
data/goaccess-1.4/src/browsers.c:307:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[MAX_LINE_BROWSERS + 1];
data/goaccess-1.4/src/browsers.c:322: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).
  if ((file = fopen (conf.browsers_file, "r")) == NULL)
data/goaccess-1.4/src/browsers.c:347: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 type[BROWSER_TYPE_LEN];
data/goaccess-1.4/src/browsers.h:39:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char browser_type[BROWSER_TYPE_LEN];
data/goaccess-1.4/src/color.c:454: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 bgcolor[COLOR_STR_LEN] = "", fgcolor[COLOR_STR_LEN] = "";
data/goaccess-1.4/src/csv.c:215: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 now[DATE_TIME];
data/goaccess-1.4/src/csv.c:298:29:  [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 = (filename != NULL) ? fopen (filename, "w") : stdout;
data/goaccess-1.4/src/error.c:58:16:  [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).
    log_file = fopen (path, "w");
data/goaccess-1.4/src/error.c:76:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    log_invalid = fopen (path, "w");
data/goaccess-1.4/src/error.c:103: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).
    access_log = fopen (path, "a");
data/goaccess-1.4/src/error.c:105: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).
    access_log = fopen (path, "w");
data/goaccess-1.4/src/gdashboard.c:514:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (fmt, "%%%d%c", w, type);
data/goaccess-1.4/src/gdashboard.c:1156:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[REGEX_ERROR];
data/goaccess-1.4/src/gdashboard.c:1234:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[REGEX_ERROR], *data;
data/goaccess-1.4/src/gdns.c:159: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 h[H_SIZE];
data/goaccess-1.4/src/gdns.h:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[QUEUE_SIZE][H_SIZE];      /* data item */
data/goaccess-1.4/src/geoip1.h:44:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char city[CITY_LEN];
data/goaccess-1.4/src/geoip1.h:45: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 continent[CONTINENT_LEN];
data/goaccess-1.4/src/gholder.c:335: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 city[CITY_LEN] = "";
data/goaccess-1.4/src/gholder.c:336: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 continent[CONTINENT_LEN] = "";
data/goaccess-1.4/src/gholder.c:337:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char country[COUNTRY_LEN] = "";
data/goaccess-1.4/src/gholder.c:499: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 buf4[INET_ADDRSTRLEN];
data/goaccess-1.4/src/gholder.c:500: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 buf6[INET6_ADDRSTRLEN];
data/goaccess-1.4/src/goaccess.c:241: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 ((pidfile = fopen (path, "w"))) {
data/goaccess-1.4/src/goaccess.c:283: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 ("/dev/null", O_RDWR, 0)) == -1) {
data/goaccess-1.4/src/goaccess.c:748:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LINE_BUFFER] = { 0 };
data/goaccess-1.4/src/goaccess.c:786: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 (!(fp = fopen (fn, "r")))
data/goaccess-1.4/src/goaccess.c:1207:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return open (term, O_RDONLY);
data/goaccess-1.4/src/gwsocket.c:266:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fdfifo = open (fifo, O_RDWR | O_NONBLOCK)) == -1)
data/goaccess-1.4/src/gwsocket.c:281:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((fdfifo = open (fifo, O_WRONLY | O_NONBLOCK)) == -1)
data/goaccess-1.4/src/gwsocket.h:46: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 hdr[HDR_SIZE];           /* FIFO header's buffer */
data/goaccess-1.4/src/json.c:238:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[8];
data/goaccess-1.4/src/json.c:252:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2];
data/goaccess-1.4/src/json.c:442: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 now[DATE_TIME];
data/goaccess-1.4/src/json.c:1119:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen (filename, "w");
data/goaccess-1.4/src/opesys.h:37:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char os_type[OPESYS_TYPE_LEN];
data/goaccess-1.4/src/options.c:324:25:  [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).
    conf.color_scheme = atoi (oarg);
data/goaccess-1.4/src/output.c:500:40:  [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).
  fpskeyival (fp, "port", (conf.port ? atoi (conf.port) : 7890), sp, 1);
data/goaccess-1.4/src/output.c:1166: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 now[DATE_TIME];
data/goaccess-1.4/src/output.c:1169:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen (filename, "w");
data/goaccess-1.4/src/parser.c:643: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 (host, begin, len);
data/goaccess-1.4/src/parser.c:850:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, *str, (len - 1));
data/goaccess-1.4/src/parser.c:908:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[DATE_LEN] = "";      /* Ymd */
data/goaccess-1.4/src/parser.c:924:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TIME_LEN] = "";
data/goaccess-1.4/src/parser.c:1351:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (ret, b1 + 1, len);
data/goaccess-1.4/src/parser.c:1431: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 end[2 + 1] = { 0 };
data/goaccess-1.4/src/parser.c:1871:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (key, logitem->date, s1);
data/goaccess-1.4/src/parser.c:1874:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (key + s1 + 1, logitem->host, s2 + 1);
data/goaccess-1.4/src/parser.c:1877:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (key + s1 + s2 + 2, ua, s3 + 1);
data/goaccess-1.4/src/parser.c:1915:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (key, logitem->req, s1);
data/goaccess-1.4/src/parser.c:1920:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (key + s1 + sep, logitem->method, s2 + 1);
data/goaccess-1.4/src/parser.c:1925:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (key + s1 + s2 + sep, logitem->protocol, s3 + 1);
data/goaccess-1.4/src/parser.c:1946:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (r, *req, s1);
data/goaccess-1.4/src/parser.c:1949:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (r + s1 + qm, qstr, s2 + 1);
data/goaccess-1.4/src/parser.c:1981:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (key, *fdate, dlen);
data/goaccess-1.4/src/parser.c:1982:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (key + dlen, tkey, tlen + 1);
data/goaccess-1.4/src/parser.c:2139: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 browser_type[BROWSER_TYPE_LEN] = "";
data/goaccess-1.4/src/parser.c:2171: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 os_type[OPESYS_TYPE_LEN] = "";
data/goaccess-1.4/src/parser.c:2250: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 continent[CONTINENT_LEN] = "";
data/goaccess-1.4/src/parser.c:2251: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 country[COUNTRY_LEN] = "";
data/goaccess-1.4/src/parser.c:2324: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 hour[HRMI_LEN] = "";     /* %H:%M */
data/goaccess-1.4/src/parser.c:2608:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LINE_BUFFER] = { 0 };
data/goaccess-1.4/src/parser.c:2687:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[LINE_BUFFER] = { 0 };
data/goaccess-1.4/src/parser.c:2729:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!piping && (fp = fopen (fn, "r")) == NULL)
data/goaccess-1.4/src/parser.h:77: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 site[REF_SITE_LEN + 1];
data/goaccess-1.4/src/settings.c:248:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[MAX_LINE_CONF + 1];
data/goaccess-1.4/src/settings.c:255:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  append_to_argv (&nargc, &nargv, xstrdup ((char *) *argv[0]));
data/goaccess-1.4/src/settings.c:263: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).
  if ((file = fopen (path, "r")) == NULL) {
data/goaccess-1.4/src/settings.c:313:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    append_to_argv (&nargc, &nargv, xstrdup ((char *) (*argv)[i]));
data/goaccess-1.4/src/settings.h:93: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 *colors[MAX_CUSTOM_COLORS];        /* colors */
data/goaccess-1.4/src/settings.h:94: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 *enable_panels[TOTAL_MODULES];     /* array of panels to enable */
data/goaccess-1.4/src/settings.h:95: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 *filenames[MAX_FILENAMES];         /* log files */
data/goaccess-1.4/src/settings.h:96: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 *hide_referers[MAX_IGNORE_REF];    /* hide referrers from report */
data/goaccess-1.4/src/settings.h:97: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 *ignore_ips[MAX_IGNORE_IPS];       /* array of ips to ignore */
data/goaccess-1.4/src/settings.h:98: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 *ignore_panels[TOTAL_MODULES];     /* array of panels to ignore */
data/goaccess-1.4/src/settings.h:99: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 *ignore_referers[MAX_IGNORE_REF];  /* referrers to ignore */
data/goaccess-1.4/src/settings.h:100: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 *ignore_status[MAX_IGNORE_STATUS]; /* status to ignore */
data/goaccess-1.4/src/settings.h:101: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 *output_formats[MAX_OUTFORMATS];   /* output format, e.g. , HTML */
data/goaccess-1.4/src/settings.h:102: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 *sort_panels[TOTAL_MODULES];       /* sorting options for each panel */
data/goaccess-1.4/src/settings.h:103: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 *static_files[MAX_EXTENSIONS];     /* static extensions */
data/goaccess-1.4/src/sha1.c:62: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 (block, buffer, 64);
data/goaccess-1.4/src/sha1.c:189:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&context->buffer[j], data, (i = 64 - j));
data/goaccess-1.4/src/sha1.c:197:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&context->buffer[j], &data[i], len - i);
data/goaccess-1.4/src/sort.c:463: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 module[SORT_MODULE_LEN], field[SORT_FIELD_LEN], order[SORT_ORDER_LEN];
data/goaccess-1.4/src/tpl.c:609:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (((tpl_root_data *) (root->data))->fmt, fmt, strlen (fmt) + 1);
data/goaccess-1.4/src/tpl.c:859:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (datav, data, sz);
data/goaccess-1.4/src/tpl.c:937:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&binp, datav, sizeof (tpl_bin *));      /* cp to aligned */
data/goaccess-1.4/src/tpl.c:946:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (&strp, datav, sizeof (char *));       /* cp to aligned */
data/goaccess-1.4/src/tpl.c:955:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&atypp, datav, sizeof (tpl_atyp *));    /* cp to aligned */
data/goaccess-1.4/src/tpl.c:1011: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 (&binp, c->data, sizeof (tpl_bin *));      /* cp to aligned */
data/goaccess-1.4/src/tpl.c:1017:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&strp, &((char **) c->data)[i], sizeof (char *));       /* cp to aligned */
data/goaccess-1.4/src/tpl.c:1270: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 (&intlflags, dv, sizeof (char));       /* extract flags */
data/goaccess-1.4/src/tpl.c:1280: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 (&intlsz, dv, sizeof (uint32_t));      /* extract internal size */
data/goaccess-1.4/src/tpl.c:1314:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&flen, dv, sizeof (uint32_t));      /* stored flen */
data/goaccess-1.4/src/tpl.c:1421: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.
  if ((((char *) dv)[3] & TPL_FL_NULLSTRINGS) == 0)
data/goaccess-1.4/src/tpl.c:1424: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 (&intlsz, dv, sizeof (uint32_t));      /* extract internal size */
data/goaccess-1.4/src/tpl.c:1448: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 (fmt_cpy, fmt, fmt_len);
data/goaccess-1.4/src/tpl.c:1463: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 (fxlensv, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:1501:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&datapeek_ssz, dv, sizeof (uint32_t));  /* get slen */
data/goaccess-1.4/src/tpl.c:1519:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (datapeek_s, dv, datapeek_ssz - 1);
data/goaccess-1.4/src/tpl.c:1532:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (datapeek_p, dv, datapeek_csz);
data/goaccess-1.4/src/tpl.c:1726:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&binp, dv, sizeof (tpl_bin *)); /* cp to aligned */
data/goaccess-1.4/src/tpl.c:1734:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (&strp, dv, sizeof (char *));  /* cp to aligned */
data/goaccess-1.4/src/tpl.c:1752:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&atypp, dv, sizeof (tpl_atyp *));       /* cp to aligned */
data/goaccess-1.4/src/tpl.c:1787:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&num, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:1818:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&slen, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:1832:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (&slen, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:1879:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open (filename, O_CREAT | O_TRUNC | O_RDWR, perms);
data/goaccess-1.4/src/tpl.c:1910:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((mr->fd = open (filename, O_RDONLY)) == -1) {
data/goaccess-1.4/src/tpl.c:1970: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 (child->data, child->addr, tpl_types[child->type].sz * child->num);
data/goaccess-1.4/src/tpl.c:1983:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (str, ((tpl_bin *) child->addr)->addr, slen);
data/goaccess-1.4/src/tpl.c:1999: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 (child->data, &bin, sizeof (tpl_bin *));
data/goaccess-1.4/src/tpl.c:2020:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (str, caddr, slen);    /* include \0 */
data/goaccess-1.4/src/tpl.c:2028:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (cdata, &str, sizeof (char *));
data/goaccess-1.4/src/tpl.c:2161:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (caddr, dv, tpl_types[c->type].sz);
data/goaccess-1.4/src/tpl.c:2167:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (c->addr, dv, tpl_types[c->type].sz * c->num);
data/goaccess-1.4/src/tpl.c:2172: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 (&slen, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:2183:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (str, dv, slen);
data/goaccess-1.4/src/tpl.c:2184: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 (&(((tpl_bin *) c->addr)->addr), &str, sizeof (void *));
data/goaccess-1.4/src/tpl.c:2185: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 (&(((tpl_bin *) c->addr)->sz), &slen, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:2190:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&slen, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:2201:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (str, dv, slen - 1);
data/goaccess-1.4/src/tpl.c:2206:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&((char **) c->addr)[fidx], &str, sizeof (char *));
data/goaccess-1.4/src/tpl.c:2235: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 (&((tpl_atyp *) (c->data))->num, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:2282: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 (&slen, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:2290:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&slen, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:2314: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 (&((tpl_atyp *) (c->data))->num, dv, sizeof (uint32_t));
data/goaccess-1.4/src/tpl.c:2345: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 exit_msg[100];
data/goaccess-1.4/src/tpl.c:2402: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 preamble[8];
data/goaccess-1.4/src/tpl.c:2423:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&tpllen, &preamble[4], 4);
data/goaccess-1.4/src/tpl.c:2443: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 (*img, preamble, 8);   /* copy preamble to output buffer */
data/goaccess-1.4/src/tpl.c:2446: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.
    rc = read (fd, &((*(char **) img)[i]), tpllen - i);
data/goaccess-1.4/src/tpl.c:2471:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TPL_GATHER_BUFLEN], *img, *tpl;
data/goaccess-1.4/src/tpl.c:2514:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (img + (*gs)->len, buf, rc);
data/goaccess-1.4/src/tpl.c:2533:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&tpllen, &tpl[4], 4);
data/goaccess-1.4/src/tpl.c:2573:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy ((*gs)->img, tpl, img + catlen - tpl);
data/goaccess-1.4/src/tpl.c:2607:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (img + (*gs)->len, buf, len);
data/goaccess-1.4/src/tpl.c:2626:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&tpllen, &tpl[4], 4);
data/goaccess-1.4/src/tpl.c:2666:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy ((*gs)->img, tpl, img + catlen - tpl);
data/goaccess-1.4/src/ui.c:490:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (s, "%us", secs);
data/goaccess-1.4/src/ui.c:530: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[DATE_LEN];
data/goaccess-1.4/src/ui.c:531:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char e[DATE_LEN];
data/goaccess-1.4/src/ui.c:534:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (s, "%u", dates[0]);
data/goaccess-1.4/src/ui.c:535:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (e, "%u", dates[len - 1]);
data/goaccess-1.4/src/ui.c:679:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (s, str, len);
data/goaccess-1.4/src/ui.c:895:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/goaccess-1.4/src/ui.c:964:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[SPIN_LBL];
data/goaccess-1.4/src/util.c:157:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buffer, &(str[begin]), len);
data/goaccess-1.4/src/util.c:480:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char date[DATE_TIME] = "";    /* Ymd */
data/goaccess-1.4/src/util.c:735:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (s, "%*d", width, d);
data/goaccess-1.4/src/util.c:747:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (s, "%*u", width, d);
data/goaccess-1.4/src/util.c:759:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (s, "%*.2f", width, d);
data/goaccess-1.4/src/util.c:902: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 (str + curlen, src, srclen + 1);
data/goaccess-1.4/src/websocket.c:600:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (str + curlen, src, srclen + 1);
data/goaccess-1.4/src/websocket.c:1141:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (tmp, line, len);
data/goaccess-1.4/src/websocket.c:1168: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 (queue->queued, buffer + bytes, len - bytes);
data/goaccess-1.4/src/websocket.c:1288: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 (queue->queued + queue->qlen, buf, len);
data/goaccess-1.4/src/websocket.c:1330:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[32] = { 0 };
data/goaccess-1.4/src/websocket.c:1355:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (buf + 2, &u64, sizeof (uint64_t));
data/goaccess-1.4/src/websocket.c:1361: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 (frm, buf, hsize);
data/goaccess-1.4/src/websocket.c:1363:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (frm + hsize, p, sz);
data/goaccess-1.4/src/websocket.c:1378:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[128] = { 0 };
data/goaccess-1.4/src/websocket.c:1382:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, &code_be, 2);
data/goaccess-1.4/src/websocket.c:1395:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64] = { 0 };
data/goaccess-1.4/src/websocket.c:1464:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (s, headers->ws_key, klen);
data/goaccess-1.4/src/websocket.c:1465:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (s + klen, WS_MAGIC_STR, mlen + 1);
data/goaccess-1.4/src/websocket.c:1719:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, (*msg)->payload + pos, len);
data/goaccess-1.4/src/websocket.c:1876:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&len16, (buf + 2), sizeof (uint16_t));
data/goaccess-1.4/src/websocket.c:1880:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&len64, (buf + 2), sizeof (uint64_t));
data/goaccess-1.4/src/websocket.c:2241:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((pipein->fd = open (wsconfig.pipein, O_RDWR | O_NONBLOCK)) < 0)
data/goaccess-1.4/src/websocket.c:2254:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  status = open (wsconfig.pipeout, O_WRONLY | O_NONBLOCK);
data/goaccess-1.4/src/websocket.c:2317: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 (queue->queued + queue->qlen, buf, len);
data/goaccess-1.4/src/websocket.c:2334: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 ((*queue)->queued, buffer + bytes, len - bytes);
data/goaccess-1.4/src/websocket.c:2493:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, &v32, sizeof (uint32_t));
data/goaccess-1.4/src/websocket.c:2504: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 (&v32, buf, sizeof (uint32_t));
data/goaccess-1.4/src/websocket.c:2606:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[PIPE_BUF] = { 0 };
data/goaccess-1.4/src/websocket.h:169:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[WS_MAX_HEAD_SZ + 1];
data/goaccess-1.4/src/websocket.h:193: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 mask[4];        /* mask key */
data/goaccess-1.4/src/websocket.h:202:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[WS_FRM_HEAD_SZ + 1]; /* frame's header */
data/goaccess-1.4/src/websocket.h:228: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 remote_ip[INET6_ADDRSTRLEN];     /* client IP */
data/goaccess-1.4/src/websocket.h:253: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 hdr[HDR_SIZE];           /* FIFO header's buffer */
data/goaccess-1.4/src/bin2c.c:62:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc (f_input) != EOF) {
data/goaccess-1.4/src/browsers.c:278:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (line) == idx)
data/goaccess-1.4/src/browsers.c:286:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (val) == idx)
data/goaccess-1.4/src/browsers.c:329:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memmove (line, line + 1, strlen (line));
data/goaccess-1.4/src/browsers.c:464:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memmove (match + 5, slh, strlen (slh) + 1);
data/goaccess-1.4/src/color.c:658:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (line) == idx)
data/goaccess-1.4/src/color.c:668:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (val) == idx)
data/goaccess-1.4/src/commons.c:487: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/goaccess-1.4/src/gdashboard.c:285: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).
  int llen = strlen (MTRC_HITS_LBL);
data/goaccess-1.4/src/gdashboard.c:300: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).
  int llen = strlen (MTRC_HITS_PERC_LBL);
data/goaccess-1.4/src/gdashboard.c:315: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).
  int llen = strlen (MTRC_VISITORS_SHORT_LBL);
data/goaccess-1.4/src/gdashboard.c:330: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).
  int llen = strlen (MTRC_VISITORS_PERC_LBL);
data/goaccess-1.4/src/gdashboard.c:344: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).
  int vlen = strlen (idata->metrics->bw.sbw);
data/goaccess-1.4/src/gdashboard.c:345: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).
  int llen = strlen (MTRC_BW_LBL);
data/goaccess-1.4/src/gdashboard.c:364:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  vlen = strlen (idata->metrics->avgts.sts);
data/goaccess-1.4/src/gdashboard.c:365:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  llen = strlen (MTRC_AVGTS_LBL);
data/goaccess-1.4/src/gdashboard.c:384:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  vlen = strlen (idata->metrics->cumts.sts);
data/goaccess-1.4/src/gdashboard.c:385:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  llen = strlen (MTRC_AVGTS_LBL);
data/goaccess-1.4/src/gdashboard.c:404:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  vlen = strlen (idata->metrics->maxts.sts);
data/goaccess-1.4/src/gdashboard.c:405:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  llen = strlen (MTRC_AVGTS_LBL);
data/goaccess-1.4/src/gdashboard.c:424:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  vlen = strlen (idata->metrics->method);
data/goaccess-1.4/src/gdashboard.c:425:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  llen = strlen (MTRC_METHODS_SHORT_LBL);
data/goaccess-1.4/src/gdashboard.c:444:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  vlen = strlen (idata->metrics->protocol);
data/goaccess-1.4/src/gdashboard.c:445:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  llen = strlen (MTRC_PROTOCOLS_SHORT_LBL);
data/goaccess-1.4/src/gdashboard.c:461:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  vlen = strlen (idata->metrics->data);
data/goaccess-1.4/src/gdashboard.c:462:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  llen = strlen (MTRC_DATA_LBL);
data/goaccess-1.4/src/gdashboard.c:533: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).
  draw_header (win, s, "%s", y, win_w - strlen (s) - 2, win_w, func);
data/goaccess-1.4/src/gdashboard.c:569: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).
    date_len = strlen (date);
data/goaccess-1.4/src/goaccess.c:266:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask (0);
data/goaccess-1.4/src/goaccess.c:694:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  broadcast_holder (gwswriter->fd, json, strlen (json));
data/goaccess-1.4/src/goaccess.c:711:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  send_holder_to_client (gwswriter->fd, listener, json, strlen (json));
data/goaccess-1.4/src/goaccess.c:801:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ht_insert_last_parse (glog->inode, glog->read);
data/goaccess-1.4/src/goaccess.c:810:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep (200000);      /* 0.2 seconds */
data/goaccess-1.4/src/goaccess.c:853:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep (800000);    /* 0.8 secs */
data/goaccess-1.4/src/options.c:566:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (conf.static_file_max_len < strlen (oarg))
data/goaccess-1.4/src/options.c:567:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      conf.static_file_max_len = strlen (oarg);
data/goaccess-1.4/src/parser.c:631: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 (begin)) == 0)
data/goaccess-1.4/src/parser.c:659:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const char *nul = req + strlen (req);
data/goaccess-1.4/src/parser.c:663:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (req) < conf.static_file_max_len)
data/goaccess-1.4/src/parser.c:671: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).
    elen = strlen (ext);
data/goaccess-1.4/src/parser.c:716: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).
      list_length[i] = strlen (methods[i]);
data/goaccess-1.4/src/parser.c:787: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).
    req = line + strlen (meth);
data/goaccess-1.4/src/parser.c:796:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (request, req, rlen);
data/goaccess-1.4/src/parser.c:1864: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).
  s1 = strlen (logitem->date);
data/goaccess-1.4/src/parser.c:1865: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).
  s2 = strlen (logitem->host);
data/goaccess-1.4/src/parser.c:1866: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).
  s3 = strlen (ua);
data/goaccess-1.4/src/parser.c:1902: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).
  s1 = strlen (logitem->req);
data/goaccess-1.4/src/parser.c:1904:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s2 = strlen (logitem->method);
data/goaccess-1.4/src/parser.c:1908:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s3 = strlen (logitem->protocol);
data/goaccess-1.4/src/parser.c:1938: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).
  s1 = strlen (*req);
data/goaccess-1.4/src/parser.c:1939: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).
  s2 = strlen (qstr);
data/goaccess-1.4/src/parser.c:1977:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  dlen = strlen (*fdate);
data/goaccess-1.4/src/parser.c:1978:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tlen = strlen (tkey);
data/goaccess-1.4/src/parser.c:2519:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (glog->inode > 0 && last > 0 && last > glog->read)
data/goaccess-1.4/src/parser.c:2621:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (buf);
data/goaccess-1.4/src/parser.c:2745:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ht_insert_last_parse ((*glog)->inode, (*glog)->read);
data/goaccess-1.4/src/parser.h:102:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  uint32_t read;                /* lines read/parsed */
data/goaccess-1.4/src/settings.c:202:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (conf.static_file_max_len < strlen (exts[i]))
data/goaccess-1.4/src/settings.c:203:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      conf.static_file_max_len = strlen (exts[i]);
data/goaccess-1.4/src/settings.c:270:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memmove (line, line + 1, strlen (line));
data/goaccess-1.4/src/settings.c:277:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (line) == idx)
data/goaccess-1.4/src/settings.c:294:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (line) == idx)
data/goaccess-1.4/src/settings.c:610: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).
  flen = (strlen (fmt) * 2) + 1;
data/goaccess-1.4/src/settings.c:646:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  flen = strlen (fdate) + 1;
data/goaccess-1.4/src/sort.c:465:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if (sscanf (conf.sort_panels[i], "%15[^','],%11[^','],%4s", module, field, order) != 3)
data/goaccess-1.4/src/tpl.c:359: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).
  root->ser_osz += strlen (fmt) + 1;    /* fmt + NUL-terminator */
data/goaccess-1.4/src/tpl.c:606: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).
  ((tpl_root_data *) (root->data))->fmt = tpl_hook.malloc (strlen (fmt) + 1);
data/goaccess-1.4/src/tpl.c:609:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memcpy (((tpl_root_data *) (root->data))->fmt, fmt, strlen (fmt) + 1);
data/goaccess-1.4/src/tpl.c:947: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).
          slen = strp ? (strlen (strp) + 1) : 0;
data/goaccess-1.4/src/tpl.c:1018: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).
        sz += strp ? strlen (strp) : 0;
data/goaccess-1.4/src/tpl.c:1166: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).
  dv = tpl_cpv (dv, fmt, strlen (fmt) + 1);     /* copy format with NUL-term */
data/goaccess-1.4/src/tpl.c:1192: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).
        slen = str ? strlen (str) + 1 : 0;
data/goaccess-1.4/src/tpl.c:1475: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).
    datapeek_flen = strlen (datapeek_f);
data/goaccess-1.4/src/tpl.c:2015: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).
        slen = caddr ? (strlen (caddr) + 1) : 0;
data/goaccess-1.4/src/tpl.c:2407:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rc = read (fd, &preamble[i], 8 - i);
data/goaccess-1.4/src/tpl.c:2446:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rc = read (fd, &((*(char **) img)[i]), tpllen - i);
data/goaccess-1.4/src/tpl.c:2477:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rc = read (fd, buf, TPL_GATHER_BUFLEN);
data/goaccess-1.4/src/ui.c:175:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep (SPIN_UPDATE_INTERVAL);
data/goaccess-1.4/src/ui.c:383: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).
  mvwprintw (header_win, 0, col - strlen (lbl) - 1, "%s", lbl);
data/goaccess-1.4/src/ui.c:604:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (fields[j].field);
data/goaccess-1.4/src/ui.c:611:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (fields[j].value);
data/goaccess-1.4/src/ui.c:678:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = MIN (max_width, strlen (str));
data/goaccess-1.4/src/ui.c:684:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (s) > size_x) {
data/goaccess-1.4/src/ui.c:712: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 (s) > size_x) {
data/goaccess-1.4/src/ui.c:714: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).
        pos = strlen (s) - size_x;
data/goaccess-1.4/src/ui.c:717: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).
        x = strlen (s);
data/goaccess-1.4/src/ui.c:758: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).
      if ((x + pos) < strlen (s)) {
data/goaccess-1.4/src/ui.c:771: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 (s) == max_width)
data/goaccess-1.4/src/ui.c:776: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 (s) == pos) {
data/goaccess-1.4/src/ui.c:781: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).
        memmove (&s[pos + x + 1], &s[pos + x], strlen (&s[pos + x]) + 1);
data/goaccess-1.4/src/ui.c:792: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).
    tmp[MIN (strlen (tmp), size_x)] = '\0';
data/goaccess-1.4/src/ui.c:793:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = strlen (tmp); i < size_x; i++)
data/goaccess-1.4/src/ui.c:1006:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep (SPIN_UPDATE_INTERVAL);
data/goaccess-1.4/src/util.c:146: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).
    begin = strlen (str) + begin;
data/goaccess-1.4/src/util.c:151:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (((size_t) begin) > strlen (str))
data/goaccess-1.4/src/util.c:152: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).
    begin = strlen (str);
data/goaccess-1.4/src/util.c:153:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (((size_t) len) > strlen (&str[begin]))
data/goaccess-1.4/src/util.c:154:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (&str[begin]);
data/goaccess-1.4/src/util.c:168: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).
  char *new = xmalloc (strlen (str) + 1);
data/goaccess-1.4/src/util.c:177:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (dest, source, dest_size);
data/goaccess-1.4/src/util.c:426: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).
  sl = strlen (ext);
data/goaccess-1.4/src/util.c:654: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).
  memmove (s, begin, strlen (begin) + 1);
data/goaccess-1.4/src/util.c:665: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).
  char *end = s + strlen (s);
data/goaccess-1.4/src/util.c:886: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).
  indent = strlen (s) + indent;
data/goaccess-1.4/src/util.c:897:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t curlen = strlen (*dest);
data/goaccess-1.4/src/util.c:898:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t srclen = strlen (src);
data/goaccess-1.4/src/util.c:922: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).
  q = dest = xmalloc (strlen (src) * 4 + 1);
data/goaccess-1.4/src/util.c:971: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).
  dest = xmalloc (strlen (src) + 1);
data/goaccess-1.4/src/websocket.c:250: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).
  q = dest = xmalloc (strlen (src) * 4 + 1);
data/goaccess-1.4/src/websocket.c:595:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t curlen = strlen (*dest);
data/goaccess-1.4/src/websocket.c:596:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t srclen = strlen (src);
data/goaccess-1.4/src/websocket.c:1003: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).
    req = line + strlen (meth);
data/goaccess-1.4/src/websocket.c:1013:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (request, req, rlen);
data/goaccess-1.4/src/websocket.c:1135: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 (line);
data/goaccess-1.4/src/websocket.c:1440:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return ws_respond (client, buffer, strlen (buffer));
data/goaccess-1.4/src/websocket.c:1456:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t klen = strlen (headers->ws_key);
data/goaccess-1.4/src/websocket.c:1457:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t mlen = strlen (WS_MAGIC_STR);
data/goaccess-1.4/src/websocket.c:1504:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  bytes = ws_respond (client, str, strlen (str));
data/goaccess-1.4/src/websocket.c:1536:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (buf) < WS_MAX_HEAD_SZ)
data/goaccess-1.4/src/websocket.c:2477:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bytes = read (fd, buf + pos, need);
data/goaccess-1.4/src/websocket.c:2608:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((bytes = read (pi->fd, buf, PIPE_BUF)) < 0)
data/goaccess-1.4/src/xmalloc.c:57: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 (s) + 1;
data/goaccess-1.4/src/xmalloc.c:60:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (ptr, s, len);

ANALYSIS SUMMARY:

Hits = 387
Lines analyzed = 31858 in approximately 0.96 seconds (33275 lines/second)
Physical Source Lines of Code (SLOC) = 21669
Hits@level = [0] 183 [1] 123 [2] 183 [3]   9 [4]  72 [5]   0
Hits@level+ = [0+] 570 [1+] 387 [2+] 264 [3+]  81 [4+]  72 [5+]   0
Hits/KSLOC@level+ = [0+] 26.3049 [1+] 17.8596 [2+] 12.1833 [3+] 3.73806 [4+] 3.32272 [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.