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/webalizer-2.23.08/dns_resolv.h
Examining data/webalizer-2.23.08/linklist.h
Examining data/webalizer-2.23.08/output.h
Examining data/webalizer-2.23.08/parser.h
Examining data/webalizer-2.23.08/wcmgr.c
Examining data/webalizer-2.23.08/graphs.h
Examining data/webalizer-2.23.08/hashtab.h
Examining data/webalizer-2.23.08/preserve.h
Examining data/webalizer-2.23.08/lang.h
Examining data/webalizer-2.23.08/lang2.h
Examining data/webalizer-2.23.08/webalizer.h
Examining data/webalizer-2.23.08/dns_resolv.c
Examining data/webalizer-2.23.08/graphs.c
Examining data/webalizer-2.23.08/hashtab.c
Examining data/webalizer-2.23.08/linklist.c
Examining data/webalizer-2.23.08/output.c
Examining data/webalizer-2.23.08/parser.c
Examining data/webalizer-2.23.08/preserve.c
Examining data/webalizer-2.23.08/webalizer.c

FINAL RESULTS:

data/webalizer-2.23.08/dns_resolv.c:247:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(tmp_buf, buffer);            /* save buffer in case of error */
data/webalizer-2.23.08/dns_resolv.c:421:28:  [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(child_buf,(hbuf+(size-MAXHOST+1)));
data/webalizer-2.23.08/dns_resolv.c:422:30:  [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).
                        else strcpy(child_buf, hbuf);
data/webalizer-2.23.08/hashtab.c:131:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(sptr,str);
data/webalizer-2.23.08/hashtab.c:330:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(sptr,str);
data/webalizer-2.23.08/hashtab.c:466:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(sptr,str);
data/webalizer-2.23.08/hashtab.c:587:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(sptr,str);
data/webalizer-2.23.08/hashtab.c:706:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(sptr,str);
data/webalizer-2.23.08/hashtab.c:813:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(sptr,str);
data/webalizer-2.23.08/hashtab.c:993:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(sptr,str);
data/webalizer-2.23.08/preserve.c:160:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(new_fname, "%s.new", hist_fname);
data/webalizer-2.23.08/preserve.c:210:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(old_fname, "%s.sav", hist_fname);
data/webalizer-2.23.08/preserve.c:332:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(new_fname, "%s.new", state_fname);
data/webalizer-2.23.08/preserve.c:577:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tmp_buf,"# Webalizer V%s    ",version);
data/webalizer-2.23.08/wcmgr.c:418:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(out_file, "%s.new", in_file);
data/webalizer-2.23.08/webalizer.c:334:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tmp_buf,"%s/webalizer.conf",ETCDIR);
data/webalizer-2.23.08/webalizer.c:336:9:  [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("webalizer.conf",F_OK))
data/webalizer-2.23.08/webalizer.c:338:14:  [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.
   else if (!access(tmp_buf,F_OK))
data/webalizer-2.23.08/webalizer.c:731:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(tmp_buf, buffer);            /* save buffer in case of error */
data/webalizer-2.23.08/webalizer.c:1134:22:  [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(log_rec.hostname, host_buf);
data/webalizer-2.23.08/webalizer.c:1943:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(cp1,str);
data/webalizer-2.23.08/wcmgr.c:230:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while ((i=getopt(argc,argv,"a:cd:f:hi:ln:p::st:vVx:"))!=EOF)
data/webalizer-2.23.08/webalizer.c:343:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while ((i=getopt(argc,argv,"a:A:bc:C:dD:e:E:fF:g:GhHiI:jJ:k:K:l:Lm:M:n:N:o:O:pP:qQr:R:s:S:t:Tu:U:vVwW:x:XYz:Z"))!=EOF)
data/webalizer-2.23.08/dns_resolv.c:83:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char     buffer[BUFSIZE];                      /* log file record buffer   */
data/webalizer-2.23.08/dns_resolv.c:84:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char     tmp_buf[BUFSIZE];                     /* used to temp save above  */
data/webalizer-2.23.08/dns_resolv.c:127: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(&alignedRecord, response.data, sizeof(struct dnsRecord));
data/webalizer-2.23.08/dns_resolv.c:197:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        (dns_db->open(dns_db, NULL,
data/webalizer-2.23.08/dns_resolv.c:267:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy(&alignedRecord, r.data, sizeof(struct dnsRecord));
data/webalizer-2.23.08/dns_resolv.c:351:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   child_buf[MAXHOST+3-((unsigned long)&trav+sizeof(trav))%3];
data/webalizer-2.23.08/dns_resolv.c:352:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   dns_buf[MAXHOST];
data/webalizer-2.23.08/dns_resolv.c:357:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   hbuf[NI_MAXHOST];
data/webalizer-2.23.08/dns_resolv.c:709:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         memcpy(&recPtr->hostName, value, nameLen);
data/webalizer-2.23.08/dns_resolv.c:772:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        (dns_db->open(dns_db, NULL,
data/webalizer-2.23.08/dns_resolv.c:820:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[1025];
data/webalizer-2.23.08/dns_resolv.c:832:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if (geo_db->open(geo_db,NULL,buf,NULL,DB_BTREE,DB_RDONLY,0)) return NULL;
data/webalizer-2.23.08/dns_resolv.c:852:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned  char x[16];
data/webalizer-2.23.08/dns_resolv.c:875:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char addr[16];
data/webalizer-2.23.08/dns_resolv.c:899:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   if (!i) memcpy(buf, v.data, 2);
data/webalizer-2.23.08/dns_resolv.h:8:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                   char      hostName[1]; };  /* Hostname (var length)     */
data/webalizer-2.23.08/graphs.c:90:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char            maxvaltxt[32];             /* graph values        */
data/webalizer-2.23.08/graphs.c:108:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int year_graph6x(char *fname, char *title, struct hist_rec data[HISTSIZE])
data/webalizer-2.23.08/graphs.c:108:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int year_graph6x(char *fname, char *title, struct hist_rec data[HISTSIZE])
data/webalizer-2.23.08/graphs.c:220:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                     236,(unsigned char *)Q_(s_month[data[i].month-1]),black);
data/webalizer-2.23.08/graphs.c:239:16:  [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(maxvaltxt, "%04d", data[i].year);
data/webalizer-2.23.08/graphs.c:252:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(maxvaltxt, "%llu", maxval);
data/webalizer-2.23.08/graphs.c:299:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(maxvaltxt, "%llu", maxval);
data/webalizer-2.23.08/graphs.c:341:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(maxvaltxt, "%.0f", fmaxval);
data/webalizer-2.23.08/graphs.c:411: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 ((out = fopen(fname, "wb")) != NULL)
data/webalizer-2.23.08/graphs.c:478:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                     (unsigned char *)numchar[i+1],HITCOLOR);
data/webalizer-2.23.08/graphs.c:481:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                     (unsigned char *)numchar[i+1],black);
data/webalizer-2.23.08/graphs.c:493:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(maxvaltxt, "%llu", maxval);
data/webalizer-2.23.08/graphs.c:602:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(maxvaltxt, "%llu", maxval);
data/webalizer-2.23.08/graphs.c:641:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(maxvaltxt, "%.0f", fmaxval/1024);
data/webalizer-2.23.08/graphs.c:705: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 ((out = fopen(fname, "wb")) != NULL)
data/webalizer-2.23.08/graphs.c:722:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int day_graph3(     char  *fname,
data/webalizer-2.23.08/graphs.c:723:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char  *title,
data/webalizer-2.23.08/graphs.c:748:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)numchar[i],black);
data/webalizer-2.23.08/graphs.c:754:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(maxvaltxt, "%llu", maxval);
data/webalizer-2.23.08/graphs.c:831: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 ((out = fopen(fname, "wb")) != NULL)
data/webalizer-2.23.08/graphs.c:855:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[128];
data/webalizer-2.23.08/graphs.c:937: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 ((out = fopen(fname, "wb")) != NULL)
data/webalizer-2.23.08/hashtab.c:488:21:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   if (str[0]=='-') strcpy(str,"- (Direct Request)");
data/webalizer-2.23.08/hashtab.c:1021:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         if (addr) memcpy(&nptr->addr, addr, len);
data/webalizer-2.23.08/hashtab.c:1039:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         if (addr) memcpy(&nptr->addr, addr, len);
data/webalizer-2.23.08/lang.h:14:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *s_month[12];
data/webalizer-2.23.08/lang.h:15:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *l_month[12];
data/webalizer-2.23.08/lang2.h:95:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *s_month[12]={ gettext_noop("Jan"), gettext_noop("Feb"), gettext_noop("Mar"),
data/webalizer-2.23.08/lang2.h:101:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *l_month[12]={ gettext_noop("January"), gettext_noop("February"), gettext_noop("March"),
data/webalizer-2.23.08/linklist.c:184:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char temp_buf[MAXKVAL];
data/webalizer-2.23.08/linklist.h:4:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
struct nlist {  char string[MAXKVAL];     /* list struct for HIDE items   */
data/webalizer-2.23.08/linklist.h:8:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
struct glist {  char string[MAXKVAL];     /* list struct for GROUP items  */
data/webalizer-2.23.08/linklist.h:9:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[MAXKVAL];
data/webalizer-2.23.08/output.c:283:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char html_fname[256];           /* filename storage areas...       */
data/webalizer-2.23.08/output.c:284:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char png1_fname[32];
data/webalizer-2.23.08/output.c:285:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char png2_fname[32];
data/webalizer-2.23.08/output.c:287:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[BUFSIZE];           /* scratch buffer                  */
data/webalizer-2.23.08/output.c:288:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dtitle[256];
data/webalizer-2.23.08/output.c:289:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char htitle[256];
data/webalizer-2.23.08/output.c:297:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(png1_fname,"daily_usage_%04d%02d.png",cur_year,cur_month);
data/webalizer-2.23.08/output.c:298:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(png2_fname,"hourly_usage_%04d%02d.png",cur_year,cur_month);
data/webalizer-2.23.08/output.c:1076:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char     site_fname[256], buffer[256];
data/webalizer-2.23.08/output.c:1335:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char     url_fname[256], buffer[256];
data/webalizer-2.23.08/output.c:1635:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char     ref_fname[256], buffer[256];
data/webalizer-2.23.08/output.c:1789:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char     agent_fname[256], buffer[256];
data/webalizer-2.23.08/output.c:1924:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char     search_fname[256], buffer[256];
data/webalizer-2.23.08/output.c:2089:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char     user_fname[256], buffer[256];
data/webalizer-2.23.08/output.c:2196:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      *pie_legend[10];
data/webalizer-2.23.08/output.c:2197:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      pie_title[48];
data/webalizer-2.23.08/output.c:2198:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      pie_fname[48];
data/webalizer-2.23.08/output.c:2199:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      flag_buf[256];
data/webalizer-2.23.08/output.c:2208:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char          geo_ctry[3]="--";
data/webalizer-2.23.08/output.c:2328:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(pie_fname,"ctry_usage_%04d%02d.png",cur_year,cur_month);
data/webalizer-2.23.08/output.c:2426:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      filename[256];
data/webalizer-2.23.08/output.c:2478:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      filename[256];
data/webalizer-2.23.08/output.c:2527:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      filename[256];
data/webalizer-2.23.08/output.c:2566:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      filename[256];
data/webalizer-2.23.08/output.c:2605:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      filename[256];
data/webalizer-2.23.08/output.c:2655:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      filename[256];
data/webalizer-2.23.08/output.c:2693:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char    index_fname[256];
data/webalizer-2.23.08/output.c:2694:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char    buffer[BUFSIZE];
data/webalizer-2.23.08/output.c:2736: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).
      if ((out_fp=fopen(".htaccess","wx")) != NULL)
data/webalizer-2.23.08/output.c:3267:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ( (out_fp=fopen(filename,"w")) == NULL)
data/webalizer-2.23.08/parser.c:129:6:  [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).
   i=atoi(cp1);   /* get day number  */
data/webalizer-2.23.08/parser.c:135:6:  [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).
   j=atoi(cp1);   /* get year        */
data/webalizer-2.23.08/parser.c:155:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(log_rec.hostname,"NONE");
data/webalizer-2.23.08/parser.c:330:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   log_rec.resp_code = atoi(cp1);
data/webalizer-2.23.08/parser.c:402:6:  [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).
   i=atoi(cp1);		/* get timestamp */
data/webalizer-2.23.08/parser.c:439:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   log_rec.resp_code = atoi(cp1);
data/webalizer-2.23.08/parser.c:700:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   if (fields.status) log_rec.resp_code = atoi(fields.status);
data/webalizer-2.23.08/parser.c:722: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).
      gm_time.tm_year = atoi(fields.date);
data/webalizer-2.23.08/parser.c:727:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      gm_time.tm_mon = atoi(fields.date) - 1;
data/webalizer-2.23.08/parser.c:731: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).
      gm_time.tm_mday = atoi(fields.date);
data/webalizer-2.23.08/parser.c:735: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).
      gm_time.tm_hour = atoi(fields.time);
data/webalizer-2.23.08/parser.c:739:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      gm_time.tm_min = atoi(fields.time);
data/webalizer-2.23.08/parser.c:743:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      gm_time.tm_sec = atoi(fields.time);
data/webalizer-2.23.08/preserve.c:71:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  buffer[BUFSIZE];
data/webalizer-2.23.08/preserve.c:74:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   hist_fp=fopen(hist_fname,"r");
data/webalizer-2.23.08/preserve.c:153:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char    new_fname[MAXKVAL+4];
data/webalizer-2.23.08/preserve.c:154:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char    old_fname[MAXKVAL+4];
data/webalizer-2.23.08/preserve.c:157:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char    timestamp[48];
data/webalizer-2.23.08/preserve.c:179: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).
   hist_fp = fopen(new_fname,"w");
data/webalizer-2.23.08/preserve.c:328:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[BUFSIZE];
data/webalizer-2.23.08/preserve.c:329:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char new_fname[MAXKVAL+4];
data/webalizer-2.23.08/preserve.c:347:7:  [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(new_fname,"w");
data/webalizer-2.23.08/preserve.c:353:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer,"%02d/%02d/%04d %02d:%02d:%02d",
data/webalizer-2.23.08/preserve.c:366:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(buffer,"%d %d %d %d %d %d\n",
data/webalizer-2.23.08/preserve.c:371:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(buffer,"%llu %llu %llu %llu %llu %llu %.0f %llu %llu %llu %.0f %.0f\n",
data/webalizer-2.23.08/preserve.c:377:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(buffer,"%llu %llu %llu %d %d\n",
data/webalizer-2.23.08/preserve.c:384:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer,"%llu %llu %.0f %llu %llu %llu %.0f %.0f\n",
data/webalizer-2.23.08/preserve.c:393:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer,"%llu %llu %.0f %llu %.0f %.0f\n",
data/webalizer-2.23.08/preserve.c:401:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer,"%llu\n",response[i].count);
data/webalizer-2.23.08/preserve.c:556:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char         buffer[BUFSIZE];
data/webalizer-2.23.08/preserve.c:557:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char         tmp_buf[BUFSIZE];
data/webalizer-2.23.08/preserve.c:565:7:  [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(state_fname,"r");
data/webalizer-2.23.08/preserve.c:583:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(tmp_buf,"# Webalizer V2.01-1");
data/webalizer-2.23.08/wcmgr.c:115:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char      out_file[MAXHOST+4];             /* output cache filename       */
data/webalizer-2.23.08/wcmgr.c:118:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char      addr[129];                       /* buffer for IP search addr   */
data/webalizer-2.23.08/wcmgr.c:119:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char      name[MAXHOST+1];                 /* buffer for name value       */
data/webalizer-2.23.08/wcmgr.c:130:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char      hostName[MAXHOST+1];   /* Hostname buffer (variable)  */
data/webalizer-2.23.08/wcmgr.c:193:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static   char our_buffer[32];         /* string return buffer      */
data/webalizer-2.23.08/wcmgr.c:206:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(our_buffer,"%02dd:%02dh:%02dm",days, hours, mins);
data/webalizer-2.23.08/wcmgr.c:242:59:  [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).
         case 'p':  action='p'; if (optarg!=NULL) rec_ttl=atoi(optarg); break;
data/webalizer-2.23.08/wcmgr.c:244:29:  [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).
         case 't':  rec_ttl=atoi(optarg);                             break;
data/webalizer-2.23.08/wcmgr.c:295:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      ip_buf[48];
data/webalizer-2.23.08/wcmgr.c:300:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=dns_db->open(dns_db, NULL, in_file, NULL, DB_HASH, DB_RDONLY, 0)))
data/webalizer-2.23.08/wcmgr.c:337: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(&dns_rec, r.data, (r.size>DNSZ)?DNSZ:r.size);          
data/webalizer-2.23.08/wcmgr.c:366:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      ip_buf[48];
data/webalizer-2.23.08/wcmgr.c:379:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=dns_db->open(dns_db, NULL, in_file, NULL, DB_HASH, 0, 0)))
data/webalizer-2.23.08/wcmgr.c:421:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=out_db->open(out_db, NULL, out_file, NULL,
data/webalizer-2.23.08/wcmgr.c:441: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(&dns_rec, r.data, (r.size>DNSZ)?DNSZ:r.size);          
data/webalizer-2.23.08/wcmgr.c:511:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=dns_db->open(dns_db, NULL, in_file, NULL, DB_HASH, DB_RDONLY, 0)))
data/webalizer-2.23.08/wcmgr.c:538: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(&dns_rec, r.data, r.size);                      /* get record   */
data/webalizer-2.23.08/wcmgr.c:577:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  ip_buf[48];
data/webalizer-2.23.08/wcmgr.c:580:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=dns_db->open(dns_db, NULL, in_file, NULL, DB_HASH, DB_RDONLY, 0)))
data/webalizer-2.23.08/wcmgr.c:603: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(&dns_rec, r.data, (r.size>DNSZ)?DNSZ:r.size);          
data/webalizer-2.23.08/wcmgr.c:663:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=dns_db->open(dns_db, NULL, in_file, NULL, DB_HASH, 0, 0)))
data/webalizer-2.23.08/wcmgr.c:730:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=dns_db->open(dns_db, NULL, in_file, NULL, DB_HASH, 0, 0)))
data/webalizer-2.23.08/wcmgr.c:787:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=dns_db->open(dns_db,NULL,in_file,NULL,
data/webalizer-2.23.08/wcmgr.c:807:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      ip_buf[48];
data/webalizer-2.23.08/wcmgr.c:808:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      buffer[4096];
data/webalizer-2.23.08/wcmgr.c:812:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=dns_db->open(dns_db, NULL, in_file, NULL, DB_HASH, flag, 0644)))
data/webalizer-2.23.08/wcmgr.c:820: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).
   in_fp=fopen(out_file,"r");
data/webalizer-2.23.08/wcmgr.c:867:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char      ip_buf[48];
data/webalizer-2.23.08/wcmgr.c:879:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((i=dns_db->open(dns_db, NULL, in_file, NULL, DB_HASH, DB_RDONLY, 0)))
data/webalizer-2.23.08/wcmgr.c:905:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ( (out_fp=fopen(out_file,"w")) == NULL)
data/webalizer-2.23.08/wcmgr.c:923: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(&dns_rec, r.data, (r.size>DNSZ)?DNSZ:r.size);          
data/webalizer-2.23.08/wcmgr.c:955:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char      hostName[1];           /* Hostname buffer (variable)  */
data/webalizer-2.23.08/wcmgr.c:973:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         memcpy(&recPtr->hostName, value, nameLen);
data/webalizer-2.23.08/webalizer.c:260:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char       buffer[BUFSIZE];                   /* log file record buffer   */
data/webalizer-2.23.08/webalizer.c:261:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char       tmp_buf[BUFSIZE];                  /* used to temp save above  */
data/webalizer-2.23.08/webalizer.c:266:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char       f_buf[GZ_BUFSIZE];                 /* our_getfs buffer         */
data/webalizer-2.23.08/webalizer.c:292:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char     host_buf[MAXHOST+1];         /* used to save hostname       */
data/webalizer-2.23.08/webalizer.c:314:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char *log_month[12]={ "jan", "feb", "mar",
data/webalizer-2.23.08/webalizer.c:348:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 'A': ntop_agents=atoi(optarg);  break;  /* Top agents          */
data/webalizer-2.23.08/webalizer.c:351:30:  [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).
        case 'C': ntop_ctrys=atoi(optarg);   break;  /* Top countries       */
data/webalizer-2.23.08/webalizer.c:354:30:  [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).
        case 'e': ntop_entry=atoi(optarg);   break;  /* Top entry pages     */
data/webalizer-2.23.08/webalizer.c:355:29:  [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).
        case 'E': ntop_exit=atoi(optarg);    break;  /* Top exit pages      */
data/webalizer-2.23.08/webalizer.c:361:26:  [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).
	case 'g': group_domains=atoi(optarg); break; /* GroupDomains (0=no) */
data/webalizer-2.23.08/webalizer.c:369:30:  [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).
        case 'k': graph_mths=atoi(optarg);   break;  /* # months idx graph  */
data/webalizer-2.23.08/webalizer.c:370:30:  [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).
        case 'K': index_mths=atoi(optarg);   break;  /* # months idx table  */
data/webalizer-2.23.08/webalizer.c:371:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 'l': graph_lines=atoi(optarg);  break;  /* Graph Lines         */
data/webalizer-2.23.08/webalizer.c:373:33:  [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).
        case 'm': visit_timeout=atoi(optarg); break; /* Visit Timeout       */
data/webalizer-2.23.08/webalizer.c:374:32:  [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).
        case 'M': mangle_agent=atoi(optarg); break;  /* mangle user agents  */
data/webalizer-2.23.08/webalizer.c:376:32:  [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).
        case 'N': dns_children=atoi(optarg); break;  /* # of DNS children   */
data/webalizer-2.23.08/webalizer.c:384:29:  [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).
        case 'R': ntop_refs=atoi(optarg);    break;  /* Top referrers       */
data/webalizer-2.23.08/webalizer.c:386:30:  [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).
        case 'S': ntop_sites=atoi(optarg);   break;  /* Top sites           */
data/webalizer-2.23.08/webalizer.c:390:29:  [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).
        case 'U': ntop_urls=atoi(optarg);    break;  /* Top urls            */
data/webalizer-2.23.08/webalizer.c:541: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_fp = fopen(log_fname,"r");
data/webalizer-2.23.08/webalizer.c:753:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         rec_year=atoi(&log_rec.datetime[8]);    /* get year number (int)   */
data/webalizer-2.23.08/webalizer.c:754:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         rec_day =atoi(&log_rec.datetime[1]);    /* get day number          */
data/webalizer-2.23.08/webalizer.c:755:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         rec_hour=atoi(&log_rec.datetime[13]);   /* get hour number         */
data/webalizer-2.23.08/webalizer.c:756:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         rec_min =atoi(&log_rec.datetime[16]);   /* get minute number       */
data/webalizer-2.23.08/webalizer.c:757:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         rec_sec =atoi(&log_rec.datetime[19]);   /* get second number       */
data/webalizer-2.23.08/webalizer.c:846:29:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
         if (*++cp1 == '-') strcpy(log_rec.url,"/INVALID-URL");
data/webalizer-2.23.08/webalizer.c:900:19:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                  strcpy(log_rec.url,"/INVALID-URL");
data/webalizer-2.23.08/webalizer.c:1690:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[BUFSIZE];
data/webalizer-2.23.08/webalizer.c:1691:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char keyword[MAXKWORD];
data/webalizer-2.23.08/webalizer.c:1692:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char value[MAXKVAL];
data/webalizer-2.23.08/webalizer.c:1697: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).
   if ( (fp=fopen(fname,"r")) == NULL)
data/webalizer-2.23.08/webalizer.c:1752:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 11: ntop_sites = atoi(value);         break; /* TopSites       */
data/webalizer-2.23.08/webalizer.c:1753:30:  [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).
        case 12: ntop_urls = atoi(value);          break; /* TopURLs        */
data/webalizer-2.23.08/webalizer.c:1754:30:  [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).
        case 13: ntop_refs = atoi(value);          break; /* TopRefs        */
data/webalizer-2.23.08/webalizer.c:1755:32:  [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).
        case 14: ntop_agents = atoi(value);        break; /* TopAgents      */
data/webalizer-2.23.08/webalizer.c:1756:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 15: ntop_ctrys = atoi(value);         break; /* TopCountries   */
data/webalizer-2.23.08/webalizer.c:1765:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 24: mangle_agent=atoi(value);         break; /* MangleAgents   */
data/webalizer-2.23.08/webalizer.c:1797:32:  [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).
        case 50: visit_timeout=atoi(value);        break; /* VisitTimeout   */
data/webalizer-2.23.08/webalizer.c:1800:32:  [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).
        case 52: graph_lines = atoi(value);        break; /* GraphLines     */
data/webalizer-2.23.08/webalizer.c:1805:32:  [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).
        case 55: ntop_sitesK = atoi(value);        break; /* TopKSites (KB) */
data/webalizer-2.23.08/webalizer.c:1806:32:  [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).
        case 56: ntop_urlsK  = atoi(value);        break; /* TopKUrls (KB)  */
data/webalizer-2.23.08/webalizer.c:1807:32:  [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).
        case 57: ntop_entry  = atoi(value);        break; /* Top Entry pgs  */
data/webalizer-2.23.08/webalizer.c:1808:32:  [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).
        case 58: ntop_exit   = atoi(value);        break; /* Top Exit pages */
data/webalizer-2.23.08/webalizer.c:1809:32:  [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).
        case 59: ntop_search = atoi(value);        break; /* Top Search pgs */
data/webalizer-2.23.08/webalizer.c:1815:32:  [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).
        case 62: group_domains=atoi(value);        break; /* GroupDomains   */
data/webalizer-2.23.08/webalizer.c:1830:29:  [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).
        case 70: ntop_users=atoi(value);           break; /* TopUsers       */
data/webalizer-2.23.08/webalizer.c:1853:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 85: dns_children=atoi(value);         break; /* DNSChildren    */
data/webalizer-2.23.08/webalizer.c:1879:29:  [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).
        case 102: cache_ttl=atoi(value);           break; /* CacheTTL days  */
data/webalizer-2.23.08/webalizer.c:1891:29:  [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).
        case 106: trimsquid=atoi(value);           break; /* TrimSquidURL   */
data/webalizer-2.23.08/webalizer.c:1909:30:  [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).
        case 114: index_mths=atoi(value);          break; /* IndexMonths    */
data/webalizer-2.23.08/webalizer.c:1910:30:  [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).
        case 115: graph_mths=atoi(value);          break; /* GraphMonths    */
data/webalizer-2.23.08/webalizer.c:2009:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[128]="";
data/webalizer-2.23.08/webalizer.c:2050:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static     char timestamp[48];
data/webalizer-2.23.08/webalizer.c:2125:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char buf[8];
data/webalizer-2.23.08/webalizer.c:2199:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char tmpbuf[BUFSIZE];
data/webalizer-2.23.08/webalizer.c:2200:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char srch[80]="";
data/webalizer-2.23.08/webalizer.h:154:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
struct  log_struct  {  char   hostname[MAXHOST];  /* hostname             */
data/webalizer-2.23.08/webalizer.h:155:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       char   datetime[29];       /* raw timestamp        */
data/webalizer-2.23.08/webalizer.h:156:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       char   url[MAXURL];        /* raw request field    */
data/webalizer-2.23.08/webalizer.h:161:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       char   refer[MAXREF];      /* referrer             */
data/webalizer-2.23.08/webalizer.h:162:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       char   agent[MAXAGENT];    /* user agent (browser) */
data/webalizer-2.23.08/webalizer.h:163:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       char   srchstr[MAXSRCH];   /* search string        */
data/webalizer-2.23.08/webalizer.h:164:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       char   ident[MAXIDENT]; }; /* ident string (user)  */
data/webalizer-2.23.08/dns_resolv.c:121: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).
   query.size = strlen(log_rec->hostname);
data/webalizer-2.23.08/dns_resolv.c:128:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (log_rec->hostname,
data/webalizer-2.23.08/dns_resolv.c:236: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(buffer) == (BUFSIZE-1))
data/webalizer-2.23.08/dns_resolv.c:242: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).
            if (strlen(buffer) < BUFSIZE-1) break;
data/webalizer-2.23.08/dns_resolv.c:261: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).
            q.size = strlen(log_rec.hostname);
data/webalizer-2.23.08/dns_resolv.c:401:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while((size = read(child[i].outpipe[0], child_buf, MAXHOST)))
data/webalizer-2.23.08/dns_resolv.c:417: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 (strlen(hbuf)>3)
data/webalizer-2.23.08/dns_resolv.c:420:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        if ((size = strlen(hbuf)) > MAXHOST-2)
data/webalizer-2.23.08/dns_resolv.c:423: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).
                        size = strlen(child_buf);
data/webalizer-2.23.08/dns_resolv.c:586:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  switch (size=read(child[i].inpipe[0], dns_buf, MAXHOST))
data/webalizer-2.23.08/dns_resolv.c:611:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        if( strlen(dns_buf) > 1 &&
data/webalizer-2.23.08/dns_resolv.c:697:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int    nameLen = strlen(value)+1;
data/webalizer-2.23.08/dns_resolv.c:718: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).
         k.size = strlen(key);
data/webalizer-2.23.08/dns_resolv.c:825:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf,dbname,sizeof(buf)-1);
data/webalizer-2.23.08/dns_resolv.c:862:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
   if (i) strncpy(str, "Unknown", 8);
data/webalizer-2.23.08/dns_resolv.c:863:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   else   strncpy(str, v.data+3, v.size-3);
data/webalizer-2.23.08/dns_resolv.c:878:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
   strncpy(buf, "--", 3);
data/webalizer-2.23.08/graphs.c:144: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).
      i = (strlen(_("kB F"))*6);
data/webalizer-2.23.08/graphs.c:154: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).
      j = (strlen(_("kB In"))*6);
data/webalizer-2.23.08/graphs.c:155: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).
      k = (strlen(_("kB Out"))*6);
data/webalizer-2.23.08/graphs.c:174: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).
      i = (strlen(_("Visits"))*6);
data/webalizer-2.23.08/graphs.c:175: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).
      j = (strlen(_("Sites"))*6);
data/webalizer-2.23.08/graphs.c:188: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).
      i = (strlen(_("Pages"))*6);
data/webalizer-2.23.08/graphs.c:189: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).
      j = (strlen(_("Files"))*6);
data/webalizer-2.23.08/graphs.c:253:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   gdImageStringUp(im,gdFontSmall,6,26+(strlen(maxvaltxt)*6),
data/webalizer-2.23.08/graphs.c:300:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   gdImageStringUp(im, gdFontSmall,493,26+(strlen(maxvaltxt)*6),
data/webalizer-2.23.08/graphs.c:342:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   gdImageStringUp(im, gdFontSmall,493,130+(strlen(maxvaltxt)*6),
data/webalizer-2.23.08/graphs.c:494: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).
   gdImageStringUp(im, gdFontSmall,8,26+(strlen(maxvaltxt)*6),
data/webalizer-2.23.08/graphs.c:506:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	 i=(strlen(_("kB F"))*6);
data/webalizer-2.23.08/graphs.c:507:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	 j=(strlen(_("kB In"))*6);
data/webalizer-2.23.08/graphs.c:523: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).
      i = (strlen(_("Sites"))*6);
data/webalizer-2.23.08/graphs.c:536: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).
      s = ( i=(strlen(_("Pages"))*6) )+
data/webalizer-2.23.08/graphs.c:537: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).
          ( j=(strlen(_("Files"))*6) )+
data/webalizer-2.23.08/graphs.c:538:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          ( strlen(_("Hits"))*6 )+ 52;
data/webalizer-2.23.08/graphs.c:603:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   gdImageStringUp(im, gdFontSmall,8,180+(strlen(maxvaltxt)*6),
data/webalizer-2.23.08/graphs.c:642:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   gdImageStringUp(im, gdFontSmall,8,280+(strlen(maxvaltxt)*6),
data/webalizer-2.23.08/graphs.c:755:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   gdImageStringUp(im, gdFontSmall, 8, 26+(strlen(maxvaltxt)*6),
data/webalizer-2.23.08/graphs.c:761: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).
      s = ( i=(strlen(_("Pages"))*6) )+
data/webalizer-2.23.08/graphs.c:762: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).
          ( j=(strlen(_("Files"))*6) )+
data/webalizer-2.23.08/graphs.c:763:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          ( strlen(_("Hits"))*6 )+ 52;
data/webalizer-2.23.08/graphs.c:901: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).
         x=480-(strlen(buffer)*7);
data/webalizer-2.23.08/graphs.c:917: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).
      x=480-(strlen(buffer)*7);
data/webalizer-2.23.08/hashtab.c:118:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(str) >= MAXHOST)
data/webalizer-2.23.08/hashtab.c:122:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         fprintf(stderr,"[new_hnode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
data/webalizer-2.23.08/hashtab.c:130: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).
   if ( (sptr=malloc(strlen(str)+1))==NULL ) return (HNODEPTR)NULL;
data/webalizer-2.23.08/hashtab.c:317:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(str) >= MAXURLH)
data/webalizer-2.23.08/hashtab.c:321:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         fprintf(stderr,"[new_unode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
data/webalizer-2.23.08/hashtab.c:329: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).
   if ( (sptr=malloc(strlen(str)+1))==NULL) return (UNODEPTR)NULL;
data/webalizer-2.23.08/hashtab.c:453:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(str) >= MAXREFH)
data/webalizer-2.23.08/hashtab.c:457:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         fprintf(stderr,"[new_rnode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
data/webalizer-2.23.08/hashtab.c:465: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).
   if ( (sptr=malloc(strlen(str)+1))==NULL ) return (RNODEPTR)NULL;
data/webalizer-2.23.08/hashtab.c:574:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(str) >= MAXAGENT)
data/webalizer-2.23.08/hashtab.c:578:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         fprintf(stderr,"[new_anode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
data/webalizer-2.23.08/hashtab.c:586: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).
   if ( (sptr=malloc(strlen(str)+1))==NULL ) return (ANODEPTR)NULL;
data/webalizer-2.23.08/hashtab.c:693:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(str) >= MAXSRCHH)
data/webalizer-2.23.08/hashtab.c:697:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         fprintf(stderr,"[new_snode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
data/webalizer-2.23.08/hashtab.c:705: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).
   if ( (sptr=malloc(strlen(str)+1))==NULL ) return (SNODEPTR)NULL;
data/webalizer-2.23.08/hashtab.c:800:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(str) >= MAXIDENT)
data/webalizer-2.23.08/hashtab.c:804:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         fprintf(stderr,"[new_inode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
data/webalizer-2.23.08/hashtab.c:812: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).
   if ( (sptr=malloc(strlen(str)+1))==NULL ) return (INODEPTR)NULL;
data/webalizer-2.23.08/hashtab.c:980:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(str) >= MAXHOST)
data/webalizer-2.23.08/hashtab.c:984:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         fprintf(stderr,"[new_dnode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
data/webalizer-2.23.08/hashtab.c:992: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).
   if ( (sptr=malloc(strlen(str)+1))==NULL ) return (DNODEPTR)NULL;
data/webalizer-2.23.08/hashtab.c:1231: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).
   int len=strlen(str);
data/webalizer-2.23.08/linklist.c:106:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (sizeof(newptr->string) < strlen(str))
data/webalizer-2.23.08/linklist.c:112:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    {strncpy(newptr->string, str, sizeof(newptr->string));newptr->next=NULL;}
data/webalizer-2.23.08/linklist.c:162:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (sizeof(newptr->string) < strlen(str) ||
data/webalizer-2.23.08/linklist.c:163:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       sizeof(newptr->name) < strlen(name))
data/webalizer-2.23.08/linklist.c:170:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy(newptr->string, str, sizeof(newptr->string));
data/webalizer-2.23.08/linklist.c:171:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy(newptr->name, name, sizeof(newptr->name));
data/webalizer-2.23.08/linklist.c:190:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(temp_buf,str,MAXKVAL-1);
data/webalizer-2.23.08/linklist.c:278: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).
   cp1=(cp+strlen(cp))-1;
data/webalizer-2.23.08/linklist.c:282: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).
      cp2=str+strlen(str)-1;
data/webalizer-2.23.08/output.c:2258: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).
               domain = hptr->string+strlen(hptr->string)-1;
data/webalizer-2.23.08/output.c:2370: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 (strlen(domain)<3 && idx!=0) /* only to ccTLDs */
data/webalizer-2.23.08/parser.c:118: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).
   size = strlen(buffer);                 /* get length of buffer        */
data/webalizer-2.23.08/parser.c:161:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(log_rec.hostname, ++cp1, MAXHOST);
data/webalizer-2.23.08/parser.c:217: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).
   size = strlen(buffer);                 /* get length of buffer        */
data/webalizer-2.23.08/parser.c:396: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).
   size = strlen(buffer);                 /* get length of buffer        */
data/webalizer-2.23.08/parser.c:575: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).
   size = strlen(buffer);                 /* get length of buffer        */
data/webalizer-2.23.08/parser.c:697:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   if (fields.ip) strncpy(log_rec.hostname, fields.ip, MAXHOST - 1);
data/webalizer-2.23.08/parser.c:703:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   if (fields.referer) strncpy(log_rec.refer, fields.referer, MAXREF - 1);
data/webalizer-2.23.08/parser.c:713:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(log_rec.agent, fields.agent, MAXAGENT - 1);
data/webalizer-2.23.08/parser.c:717:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   if (fields.username) strncpy(log_rec.ident, fields.username, MAXIDENT - 1);
data/webalizer-2.23.08/preserve.c:662:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp_buf,buffer,MAXURLH);
data/webalizer-2.23.08/preserve.c:663: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).
      tmp_buf[strlen(tmp_buf)-1]=0;
data/webalizer-2.23.08/preserve.c:694:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp_buf,buffer,MAXHOST);
data/webalizer-2.23.08/preserve.c:695: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).
      tmp_buf[strlen(buffer)-1]=0;
data/webalizer-2.23.08/preserve.c:711:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         buffer[strlen(buffer)-1]=0;
data/webalizer-2.23.08/preserve.c:735:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp_buf,buffer,MAXHOST);
data/webalizer-2.23.08/preserve.c:736: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).
      tmp_buf[strlen(buffer)-1]=0;
data/webalizer-2.23.08/preserve.c:752:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         buffer[strlen(buffer)-1]=0;
data/webalizer-2.23.08/preserve.c:775:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp_buf,buffer,MAXREFH);
data/webalizer-2.23.08/preserve.c:776: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).
      tmp_buf[strlen(buffer)-1]=0;
data/webalizer-2.23.08/preserve.c:800:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp_buf,buffer,MAXAGENT);
data/webalizer-2.23.08/preserve.c:801: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).
      tmp_buf[strlen(buffer)-1]=0;
data/webalizer-2.23.08/preserve.c:825:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp_buf,buffer,MAXSRCH);
data/webalizer-2.23.08/preserve.c:826: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).
      tmp_buf[strlen(buffer)-1]=0;
data/webalizer-2.23.08/preserve.c:850:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp_buf,buffer,MAXIDENT);
data/webalizer-2.23.08/preserve.c:851: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).
      tmp_buf[strlen(buffer)-1]=0;
data/webalizer-2.23.08/wcmgr.c:234:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         case 'a':  action='a'; strncpy(addr,optarg,sizeof(addr)-1);  break;
data/webalizer-2.23.08/wcmgr.c:236:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         case 'd':  action='d'; strncpy(addr,optarg,sizeof(addr)-1);  break;
data/webalizer-2.23.08/wcmgr.c:237:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         case 'f':  action='f'; strncpy(addr,optarg,sizeof(addr)-1);  break;
data/webalizer-2.23.08/wcmgr.c:238:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         case 'i':  action='i'; strncpy(out_file,optarg,sizeof(out_file)-1);
data/webalizer-2.23.08/wcmgr.c:241:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         case 'n':  strncpy(name,optarg,sizeof(name)-1);              break;
data/webalizer-2.23.08/wcmgr.c:247:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         case 'x':  action='x'; strncpy(out_file,optarg,sizeof(out_file)-1);
data/webalizer-2.23.08/wcmgr.c:336:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ip_buf, q.data, (q.size>47)?47:q.size);  /* save IP address  */
data/webalizer-2.23.08/wcmgr.c:464:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ip_buf, q.data, (q.size>47)?47:q.size);
data/webalizer-2.23.08/wcmgr.c:597: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).
   q.size = strlen(addr);
data/webalizer-2.23.08/wcmgr.c:602:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ip_buf, q.data, (q.size>47)?47:q.size);  /* save IP address  */
data/webalizer-2.23.08/wcmgr.c:677: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).
   q.size = strlen(addr);
data/webalizer-2.23.08/wcmgr.c:716:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(addr)>47)
data/webalizer-2.23.08/wcmgr.c:747: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).
   q.size = strlen(addr);
data/webalizer-2.23.08/wcmgr.c:764:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(name,addr,strlen(addr));
data/webalizer-2.23.08/wcmgr.c:764:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncpy(name,addr,strlen(addr));
data/webalizer-2.23.08/wcmgr.c:827:14:  [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.
         i = sscanf(buffer,"%47s\t%lu\t%d\t%" SMAXHOST "s",
data/webalizer-2.23.08/wcmgr.c:922:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ip_buf, q.data, (q.size>47)?47:q.size);  /* save IP address  */
data/webalizer-2.23.08/wcmgr.c:961:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int    nameLen = strlen(value)+1;
data/webalizer-2.23.08/wcmgr.c:978: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).
         k.size = strlen(key);
data/webalizer-2.23.08/webalizer.c:409:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (log_fname) if (!strcmp((log_fname+strlen(log_fname)-3),".gz"))
data/webalizer-2.23.08/webalizer.c:414:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (log_fname) if (!strcmp((log_fname+strlen(log_fname)-4),".bz2"))
data/webalizer-2.23.08/webalizer.c:671:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(hname)) if (verbose>1) printf("%s '%s'\n",_("Hostname for reports is"),hname);
data/webalizer-2.23.08/webalizer.c:705: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(buffer) == (BUFSIZE-1))
data/webalizer-2.23.08/webalizer.c:720:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(buffer) < BUFSIZE-1)
data/webalizer-2.23.08/webalizer.c:903:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            while ( log_rec.url[ (i=strlen(log_rec.url)-1) ] == '?' )
data/webalizer-2.23.08/webalizer.c:964:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                  strncpy(log_rec.srchstr,(char *)cp1,MAXSRCH);
data/webalizer-2.23.08/webalizer.c:997: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 (strlen(log_rec.refer)>=MAXREFH)
data/webalizer-2.23.08/webalizer.c:1005: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 (strlen(log_rec.url)>=MAXURLH)
data/webalizer-2.23.08/webalizer.c:1097:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy(host_buf, log_rec.hostname, sizeof(log_rec.hostname));
data/webalizer-2.23.08/webalizer.c:1119:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(log_rec.hostname, "Invalid", 8);
data/webalizer-2.23.08/webalizer.c:1135:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                  else strncpy(log_rec.hostname,"Invalid",8);
data/webalizer-2.23.08/webalizer.c:1142:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                  strncpy(log_rec.hostname,"Invalid",8);
data/webalizer-2.23.08/webalizer.c:1148:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(log_rec.hostname,"Unknown",8);
data/webalizer-2.23.08/webalizer.c:1865:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 90: strncpy(hit_color+1,  value, 6);  break; /* ColorHit       */
data/webalizer-2.23.08/webalizer.c:1866:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 91: strncpy(file_color+1, value, 6);  break; /* ColorFile      */
data/webalizer-2.23.08/webalizer.c:1867:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 92: strncpy(site_color+1, value, 6);  break; /* ColorSite      */
data/webalizer-2.23.08/webalizer.c:1868:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 93: strncpy(kbyte_color+1,value, 6);  break; /* ColorKbyte     */
data/webalizer-2.23.08/webalizer.c:1869:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 94: strncpy(page_color+1, value, 6);  break; /* ColorPage      */
data/webalizer-2.23.08/webalizer.c:1870:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 95: strncpy(visit_color+1,value, 6);  break; /* ColorVisit     */
data/webalizer-2.23.08/webalizer.c:1871:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 96: strncpy(misc_color+1, value, 6);  break; /* ColorMisc      */
data/webalizer-2.23.08/webalizer.c:1872:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 97: strncpy(pie_color1+1, value, 6);  break; /* PieColor1      */
data/webalizer-2.23.08/webalizer.c:1873:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 98: strncpy(pie_color2+1, value, 6);  break; /* PieColor2      */
data/webalizer-2.23.08/webalizer.c:1874:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 99: strncpy(pie_color3+1, value, 6);  break; /* PieColor3      */
data/webalizer-2.23.08/webalizer.c:1875:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 100:strncpy(pie_color4+1, value, 6);  break; /* PieColor4      */
data/webalizer-2.23.08/webalizer.c:1923:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 122: strncpy(ikbyte_color+1,value,6); break; /* ColorIKbyte    */
data/webalizer-2.23.08/webalizer.c:1924:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        case 123: strncpy(okbyte_color+1,value,6); break; /* ColorOKbyte    */
data/webalizer-2.23.08/webalizer.c:1941:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if ( (cp1=malloc(strlen(str)+1))==NULL) return NULL;
data/webalizer-2.23.08/webalizer.c:2018:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
   strncpy(&buf[strlen(buf)],"DNS/GeoDB ",11);
data/webalizer-2.23.08/webalizer.c:2018: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).
   strncpy(&buf[strlen(buf)],"DNS/GeoDB ",11);
data/webalizer-2.23.08/webalizer.c:2021:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
   strncpy(&buf[strlen(buf)],"BZip2 ",7);
data/webalizer-2.23.08/webalizer.c:2021: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).
   strncpy(&buf[strlen(buf)],"BZip2 ",7);
data/webalizer-2.23.08/webalizer.c:2024:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
   strncpy(&buf[strlen(buf)],"GeoIP ",7);
data/webalizer-2.23.08/webalizer.c:2024: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).
   strncpy(&buf[strlen(buf)],"GeoIP ",7);
data/webalizer-2.23.08/webalizer.c:2083:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strncmp(str,t->string,strlen(t->string))==0) return 1;
data/webalizer-2.23.08/webalizer.c:2109:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int       i=strlen(str),j=0;
data/webalizer-2.23.08/webalizer.c:2210:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(&srch[1],(char *)cps,sizeof(srch)-2);   /* First, try "?..."      */
data/webalizer-2.23.08/webalizer.c:2238: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).
   cp1=cp2+strlen((char *)cp2)-1;
data/webalizer-2.23.08/webalizer.c:2264: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).
   cp = str+strlen(str)-1;

ANALYSIS SUMMARY:

Hits = 389
Lines analyzed = 13094 in approximately 0.53 seconds (24752 lines/second)
Physical Source Lines of Code (SLOC) = 10021
Hits@level = [0] 846 [1] 158 [2] 208 [3]   2 [4]  21 [5]   0
Hits@level+ = [0+] 1235 [1+] 389 [2+] 231 [3+]  23 [4+]  21 [5+]   0
Hits/KSLOC@level+ = [0+] 123.241 [1+] 38.8185 [2+] 23.0516 [3+] 2.29518 [4+] 2.0956 [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.