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/webdruid-0.5.4/webdruid.c
Examining data/webdruid-0.5.4/parser.c
Examining data/webdruid-0.5.4/sengine.h
Examining data/webdruid-0.5.4/xml_output.h
Examining data/webdruid-0.5.4/logs_mgmt.h
Examining data/webdruid-0.5.4/utils.c
Examining data/webdruid-0.5.4/output.h
Examining data/webdruid-0.5.4/webdruid.h
Examining data/webdruid-0.5.4/hashtab.c
Examining data/webdruid-0.5.4/graphs.c
Examining data/webdruid-0.5.4/parser.h
Examining data/webdruid-0.5.4/dot_output.c
Examining data/webdruid-0.5.4/linklist.c
Examining data/webdruid-0.5.4/lang.h
Examining data/webdruid-0.5.4/dns_resolv.h
Examining data/webdruid-0.5.4/utils.h
Examining data/webdruid-0.5.4/graphs.h
Examining data/webdruid-0.5.4/hashtab.h
Examining data/webdruid-0.5.4/preserve.c
Examining data/webdruid-0.5.4/linklist.h
Examining data/webdruid-0.5.4/dot_output.h
Examining data/webdruid-0.5.4/sengine.c
Examining data/webdruid-0.5.4/xml_output.c
Examining data/webdruid-0.5.4/preserve.h
Examining data/webdruid-0.5.4/logs_mgmt.c
Examining data/webdruid-0.5.4/lang_strings.h
Examining data/webdruid-0.5.4/output.c
Examining data/webdruid-0.5.4/dns_resolv.c

FINAL RESULTS:

data/webdruid-0.5.4/dns_resolv.c:480: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/webdruid-0.5.4/dns_resolv.c:481: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/webdruid-0.5.4/dns_resolv.c:506: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,(res_ent->h_name+(size-MAXHOST+1)));
data/webdruid-0.5.4/dns_resolv.c:507: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, res_ent->h_name);
data/webdruid-0.5.4/hashtab.c:126: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/webdruid-0.5.4/hashtab.c:317: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/webdruid-0.5.4/hashtab.c:450: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/webdruid-0.5.4/hashtab.c:570: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/webdruid-0.5.4/hashtab.c:687: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/webdruid-0.5.4/hashtab.c:858: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/webdruid-0.5.4/output.c:1833:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   snprintf(buffer, sizeof(buffer), _2utf8(_("%u most used search phrases grouped per search engine")), ntop_search);
data/webdruid-0.5.4/output.c:1865:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            snprintf(buffer, sizeof(buffer), _2utf8(_("%.0f%% of all requests")), pcent);
data/webdruid-0.5.4/output.c:1941:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            snprintf(buffer, sizeof(buffer), _2utf8(_("%.2f%% of all requests")),
data/webdruid-0.5.4/preserve.c:120:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(check_file, "%s.%d", INCREMENTAL_BASENAME, i);
data/webdruid-0.5.4/preserve.c:123:10:  [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(check_file, R_OK) == 0)
data/webdruid-0.5.4/preserve.c:248:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(state_fname, "%s.%d", INCREMENTAL_BASENAME, INCREMENTAL_VERSION);
data/webdruid-0.5.4/preserve.c:519:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(state_fname, "%s.%d", INCREMENTAL_BASENAME, INCREMENTAL_VERSION);
data/webdruid-0.5.4/preserve.c:535: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/webdruid-0.5.4/sengine.c:655: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(engines_table[n_sengines - 1].dns_beg, host_beg);
data/webdruid-0.5.4/sengine.c:656: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(engines_table[n_sengines - 1].dns_middle, host_middle);
data/webdruid-0.5.4/sengine.c:657: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(engines_table[n_sengines - 1].dns_ext, host_ext);
data/webdruid-0.5.4/sengine.c:658: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(engines_table[n_sengines - 1].display_name, display_name);
data/webdruid-0.5.4/sengine.c:791: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/webdruid-0.5.4/utils.c:405:7:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execv(path, argv);
data/webdruid-0.5.4/webdruid.c:388:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tmp_buf,"%s/webdruid/webdruid.conf", SYSCONFDIR);
data/webdruid-0.5.4/webdruid.c:390: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("webdruid.conf", R_OK))
data/webdruid-0.5.4/webdruid.c:393: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, R_OK))
data/webdruid-0.5.4/webdruid.c:593:10:  [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(SYSCONFDIR "/webdruid/" ENGINES_FNAME, R_OK) == 0)
data/webdruid-0.5.4/webdruid.c:651:10:  [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(dot_location, X_OK) != 0)
data/webdruid-0.5.4/webdruid.c:1722: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(*target,str);
data/webdruid-0.5.4/dot_output.c:204:50:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
               const char *color_str = gv_colors[random() % GV_NCOLORS];
data/webdruid-0.5.4/dot_output.c:376:35:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            color_str = gv_colors[random() % GV_NCOLORS];
data/webdruid-0.5.4/webdruid.c:370:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   if(getenv("GDFONTPATH") == 0)
data/webdruid-0.5.4/webdruid.c:399:16:  [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, optstring)) != -1)
data/webdruid-0.5.4/webdruid.c:406:16:  [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, optstring)) != -1)
data/webdruid-0.5.4/dns_resolv.c:167: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(&alignedRecord, response.data, sizeof(struct dnsRecord));
data/webdruid-0.5.4/dns_resolv.c:279: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(&log_rec.addr, ares->ai_addr, ares->ai_addrlen);
data/webdruid-0.5.4/dns_resolv.c:298: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/webdruid-0.5.4/dns_resolv.c:387: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];
data/webdruid-0.5.4/dns_resolv.c:388: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/webdruid-0.5.4/dns_resolv.c:450:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char hbuf[NI_MAXHOST];
data/webdruid-0.5.4/dns_resolv.c:810: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/webdruid-0.5.4/dns_resolv.h:17: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/webdruid-0.5.4/dot_output.c:102: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 dot_filename[64];
data/webdruid-0.5.4/dot_output.c:103: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 buff[256];
data/webdruid-0.5.4/dot_output.c:105: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 *dot_args[5]; /* to be filled later */
data/webdruid-0.5.4/dot_output.c:274: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 dot_filename[64];
data/webdruid-0.5.4/dot_output.c:275: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 buff[256];
data/webdruid-0.5.4/dot_output.c:277: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 *dot_args[5]; /* to be filled later */
data/webdruid-0.5.4/dot_output.c:362:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            current_from_url = (char *)nodearray[j]->path->item;
data/webdruid-0.5.4/dot_output.c:370:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                     && current_from_url == (char *)nodearray[j]->path->item);
data/webdruid-0.5.4/dot_output.c:384:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  UNODEPTR from = find_url_node((char *) nodearray[j]->path->item);
data/webdruid-0.5.4/dot_output.c:385:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  UNODEPTR to = find_url_node((char *) nodearray[j]->path->next->item);
data/webdruid-0.5.4/dot_output.c:403:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                     && current_from_url == (char *)nodearray[j]->path->item);
data/webdruid-0.5.4/graphs.c:78: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/webdruid-0.5.4/graphs.c:174: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, "%lu", maxval);
data/webdruid-0.5.4/graphs.c:258: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, "%lu", maxval);
data/webdruid-0.5.4/graphs.c:294: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/webdruid-0.5.4/graphs.c:313: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/webdruid-0.5.4/graphs.c:391: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, "%lu", maxval);
data/webdruid-0.5.4/graphs.c:471: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, "%lu", maxval);
data/webdruid-0.5.4/graphs.c:504: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/webdruid-0.5.4/graphs.c:520: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/webdruid-0.5.4/graphs.c:537: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 day_graph3(  char *fname,
data/webdruid-0.5.4/graphs.c:538: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.
                 char *title,
data/webdruid-0.5.4/graphs.c:568: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, "%lu", maxval);
data/webdruid-0.5.4/graphs.c:627:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ( (out = fopen(fname, "wb")) != NULL)
data/webdruid-0.5.4/graphs.c:650: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/webdruid-0.5.4/graphs.c:718: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/webdruid-0.5.4/hashtab.c:471: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/webdruid-0.5.4/hashtab.c:890: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, sizeof(struct sockaddr_storage));
data/webdruid-0.5.4/hashtab.c:893: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, sizeof(struct in_addr));
data/webdruid-0.5.4/hashtab.c:912: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, sizeof(struct sockaddr_storage));
data/webdruid-0.5.4/hashtab.c:915: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, sizeof(struct in_addr));
data/webdruid-0.5.4/lang.h:10: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/webdruid-0.5.4/lang.h:11: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/webdruid-0.5.4/lang_strings.h:58: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/webdruid-0.5.4/lang_strings.h:64: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"),   gettext_noop("April"),
data/webdruid-0.5.4/linklist.c:131: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(itemptr, item, deepcopy);
data/webdruid-0.5.4/linklist.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 temp_buf[80];
data/webdruid-0.5.4/linklist.h:35: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[80];           /* list struct for HIDE items   */
data/webdruid-0.5.4/linklist.h:39: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[80];           /* list struct for GROUP items  */
data/webdruid-0.5.4/linklist.h:40: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[80];
data/webdruid-0.5.4/logs_mgmt.c:102: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];
data/webdruid-0.5.4/logs_mgmt.c:371: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(precord, &active_files->cur_record, sizeof(struct log_struct));
data/webdruid-0.5.4/output.c:280: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/webdruid-0.5.4/output.c:281: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/webdruid-0.5.4/output.c:282: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/webdruid-0.5.4/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 png3_fname[32];
data/webdruid-0.5.4/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 png4_fname[32];
data/webdruid-0.5.4/output.c:286: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/webdruid-0.5.4/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 dtitle[256];
data/webdruid-0.5.4/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 htitle[256];
data/webdruid-0.5.4/output.c:313: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/webdruid-0.5.4/output.c:314: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/webdruid-0.5.4/output.c:315: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(png3_fname,"path_graph_%04d%02d",cur_year,cur_month);
data/webdruid-0.5.4/output.c:316: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(png4_fname,"users_flow_%04d%02d",cur_year,cur_month);
data/webdruid-0.5.4/output.c:457:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char search_fname[256];
data/webdruid-0.5.4/output.c:458:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char buffer[256];
data/webdruid-0.5.4/output.c:476:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char dump_fname[256];
data/webdruid-0.5.4/output.c:1015: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/webdruid-0.5.4/output.c:1217: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/webdruid-0.5.4/output.c:1490: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/webdruid-0.5.4/output.c:1644: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/webdruid-0.5.4/output.c:1772: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[1024];
data/webdruid-0.5.4/output.c:1784:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(sp_sorted_table, sp_table, sizeof(struct sengine) * n_sengines);
data/webdruid-0.5.4/output.c:1927:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char sp_buffer[MAXSRCHH + 1];
data/webdruid-0.5.4/output.c:2181: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/webdruid-0.5.4/output.c:2261: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/webdruid-0.5.4/output.c:2262: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/webdruid-0.5.4/output.c:2263: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/webdruid-0.5.4/output.c:2347: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/webdruid-0.5.4/output.c:2442: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/webdruid-0.5.4/output.c:2485: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/webdruid-0.5.4/output.c:2525: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/webdruid-0.5.4/output.c:2564: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/webdruid-0.5.4/output.c:2603: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/webdruid-0.5.4/output.c:2654: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/webdruid-0.5.4/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    buffer[BUFSIZE];
data/webdruid-0.5.4/output.c:2687: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(index_fname,"w")) == NULL)
data/webdruid-0.5.4/parser.c:82:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *log_month[12]={ "jan", "feb", "mar",
data/webdruid-0.5.4/parser.c:87:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tmp_buf[BUFSIZE];
data/webdruid-0.5.4/parser.c:170: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 datetime[29];  /* raw timestamp        */
data/webdruid-0.5.4/parser.c:278:28:  [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_record->resp_code = atoi(cp1);
data/webdruid-0.5.4/parser.c:335:23:  [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_record->year = atoi(&datetime[8]);    /* get year number (int)   */
data/webdruid-0.5.4/parser.c:336:23:  [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_record->day  = atoi(&datetime[1]);    /* get day number          */
data/webdruid-0.5.4/parser.c:337:23:  [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_record->hour = atoi(&datetime[13]);   /* get hour number         */
data/webdruid-0.5.4/parser.c:338:23:  [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_record->min  = atoi(&datetime[16]);   /* get minute number       */
data/webdruid-0.5.4/parser.c:339:23:  [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_record->sec  = atoi(&datetime[19]);   /* get second number       */
data/webdruid-0.5.4/parser.c:539:47:  [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_record->resp_code = atoi(fields.status);
data/webdruid-0.5.4/parser.c:565: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).
      log_record->year = atoi(fields.date);
data/webdruid-0.5.4/parser.c:569:27:  [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_record->month = atoi(fields.date);
data/webdruid-0.5.4/parser.c:573: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).
      log_record->day = atoi(fields.date);
data/webdruid-0.5.4/parser.c:577: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).
      log_record->hour = atoi(fields.time);
data/webdruid-0.5.4/parser.c:581: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).
      log_record->min = atoi(fields.time);
data/webdruid-0.5.4/parser.c:585: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).
      log_record->sec = atoi(fields.time);
data/webdruid-0.5.4/preserve.c:115: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 check_file[32];
data/webdruid-0.5.4/preserve.c:122:10:  [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(check_file, "webalizer.current");
data/webdruid-0.5.4/preserve.c:142: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/webdruid-0.5.4/preserve.c:152: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(HISTORY_FILENAME,"r");
data/webdruid-0.5.4/preserve.c:159:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         i = atoi(buffer) -1;
data/webdruid-0.5.4/preserve.c:200:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   hist_fp = fopen(HISTORY_FILENAME,"w");
data/webdruid-0.5.4/preserve.c:245: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/webdruid-0.5.4/preserve.c:246: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 state_fname[32];
data/webdruid-0.5.4/preserve.c:251: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,"w");
data/webdruid-0.5.4/preserve.c:257: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/webdruid-0.5.4/preserve.c:270: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/webdruid-0.5.4/preserve.c:275: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,"%lu %lu %lu %lu %lu %lu %.0f %lu %lu %lu\n",
data/webdruid-0.5.4/preserve.c:281: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,"%lu %lu %lu %d %d\n",
data/webdruid-0.5.4/preserve.c:288: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,"%lu %lu %.0f %lu %lu %lu\n",
data/webdruid-0.5.4/preserve.c:296: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,"%lu %lu %.0f %lu\n",
data/webdruid-0.5.4/preserve.c:304: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,"%lu\n",response[i].count);
data/webdruid-0.5.4/preserve.c:514: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/webdruid-0.5.4/preserve.c:515: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/webdruid-0.5.4/preserve.c:516: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   state_fname[32];
data/webdruid-0.5.4/preserve.c:521: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/webdruid-0.5.4/sengine.c:56: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   display_name[SE_MAXDNAME + 1];
data/webdruid-0.5.4/sengine.c:57: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_ext[SE_MAXDNSEXT + 1];
data/webdruid-0.5.4/sengine.c:58: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_beg[SE_MAXDNSBEG + 1];
data/webdruid-0.5.4/sengine.c:59: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_middle[SE_MAXDNSMID + 1];
data/webdruid-0.5.4/sengine.c:60: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  *querytag[SE_MAXQTAG];
data/webdruid-0.5.4/sengine.c:221: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   tmpbuf[MAXSRCH];
data/webdruid-0.5.4/sengine.c:222: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          tmpbuf2[MAXSRCH];
data/webdruid-0.5.4/sengine.c:224: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   tmpbuf3[MAXSRCH*4];
data/webdruid-0.5.4/sengine.c:225: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/webdruid-0.5.4/sengine.c:500: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/webdruid-0.5.4/sengine.c:505: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(filename,"r")) == NULL)
data/webdruid-0.5.4/sengine.c:514:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char host_middle[SE_MAXDNSMID] = "";
data/webdruid-0.5.4/sengine.c:515:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char host_ext[SE_MAXDNSEXT] = "";
data/webdruid-0.5.4/sengine.c:516:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char host_beg[SE_MAXDNSBEG] = "";
data/webdruid-0.5.4/sengine.c:517:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char display_name[SE_MAXDNAME] = "";
data/webdruid-0.5.4/sengine.c:518:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *querytag[SE_MAXQTAG];
data/webdruid-0.5.4/utils.c:158: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/webdruid-0.5.4/utils.c:175: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 buff[256];
data/webdruid-0.5.4/utils.c:199: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(buff,"w")) == NULL)
data/webdruid-0.5.4/utils.c:322: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 bufs[NBUFFS][BUFFSLEN];
data/webdruid-0.5.4/webdruid.c:222: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    timestamp[32];                        /* for the reports          */
data/webdruid-0.5.4/webdruid.c:224: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/webdruid-0.5.4/webdruid.c:411: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/webdruid-0.5.4/webdruid.c:413: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/webdruid-0.5.4/webdruid.c:416: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/webdruid-0.5.4/webdruid.c:417: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/webdruid-0.5.4/webdruid.c:421: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 'g': group_domains=atoi(optarg);        break;  /* GroupDomains (0=no) */
data/webdruid-0.5.4/webdruid.c:427: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/webdruid-0.5.4/webdruid.c:429: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/webdruid-0.5.4/webdruid.c:430: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/webdruid-0.5.4/webdruid.c:432: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/webdruid-0.5.4/webdruid.c:439: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/webdruid-0.5.4/webdruid.c:441: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/webdruid-0.5.4/webdruid.c:445: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/webdruid-0.5.4/webdruid.c:1540: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/webdruid-0.5.4/webdruid.c:1541: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[32];
data/webdruid-0.5.4/webdruid.c:1542: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[132];
data/webdruid-0.5.4/webdruid.c:1547: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/webdruid-0.5.4/webdruid.c:1598: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/webdruid-0.5.4/webdruid.c:1599: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/webdruid-0.5.4/webdruid.c:1600: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/webdruid-0.5.4/webdruid.c:1601: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/webdruid-0.5.4/webdruid.c:1602: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/webdruid-0.5.4/webdruid.c:1611: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/webdruid-0.5.4/webdruid.c:1642: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/webdruid-0.5.4/webdruid.c:1644: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/webdruid-0.5.4/webdruid.c:1647: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/webdruid-0.5.4/webdruid.c:1648: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/webdruid-0.5.4/webdruid.c:1649: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/webdruid-0.5.4/webdruid.c:1650: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/webdruid-0.5.4/webdruid.c:1651: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/webdruid-0.5.4/webdruid.c:1658: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/webdruid-0.5.4/webdruid.c:1666: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/webdruid-0.5.4/webdruid.c:1682: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/webdruid-0.5.4/webdruid.c:1690:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 89: path_graph_max_paths=atoi(value); break;
data/webdruid-0.5.4/webdruid.c:1692:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        case 91: users_flow_max_edges=atoi(value); break;
data/webdruid-0.5.4/webdruid.c:2075:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *argv[10];
data/webdruid-0.5.4/webdruid.c:2076:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff1[256];
data/webdruid-0.5.4/webdruid.c:2077:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff2[256];
data/webdruid-0.5.4/webdruid.c:2078:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff3[256];
data/webdruid-0.5.4/webdruid.h:204: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/webdruid-0.5.4/webdruid.h:211: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/webdruid-0.5.4/webdruid.h:221: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/webdruid-0.5.4/webdruid.h:222: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/webdruid-0.5.4/webdruid.h:223: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/webdruid-0.5.4/webdruid.h:224: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/webdruid-0.5.4/xml_output.c:181: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 xml_fname[256];           /* filename storage area...       */
data/webdruid-0.5.4/xml_output.c:535: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(sp_sorted_table, sp_table, sizeof(struct sengine) * n_sengines);
data/webdruid-0.5.4/dns_resolv.c:157: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/webdruid-0.5.4/dns_resolv.c:168:10:  [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/webdruid-0.5.4/dns_resolv.c:283: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).
         q.size = strlen(log_rec.hostname);
data/webdruid-0.5.4/dns_resolv.c:440: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/webdruid-0.5.4/dns_resolv.c:470: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/webdruid-0.5.4/dns_resolv.c:476: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).
                                   size,strlen(hbuf));
data/webdruid-0.5.4/dns_resolv.c:479: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/webdruid-0.5.4/dns_resolv.c:482: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/webdruid-0.5.4/dns_resolv.c:496: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(res_ent->h_name)>3)
data/webdruid-0.5.4/dns_resolv.c:502: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).
                                   size,strlen(res_ent->h_name));
data/webdruid-0.5.4/dns_resolv.c:505: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(res_ent->h_name)) > MAXHOST-2)
data/webdruid-0.5.4/dns_resolv.c:508: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/webdruid-0.5.4/dns_resolv.c:688: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/webdruid-0.5.4/dns_resolv.c:799:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int nameLen = strlen(value)+1;
data/webdruid-0.5.4/dns_resolv.c:813: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/webdruid-0.5.4/graphs.c:175: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,8,26+(strlen(maxvaltxt)*6),maxvaltxt,black);
data/webdruid-0.5.4/graphs.c:180: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(_("KBytes"))*6);
data/webdruid-0.5.4/graphs.c:185: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/webdruid-0.5.4/graphs.c:186: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/webdruid-0.5.4/graphs.c:195: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/webdruid-0.5.4/graphs.c:196: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/webdruid-0.5.4/graphs.c:259: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/webdruid-0.5.4/graphs.c:295: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/webdruid-0.5.4/graphs.c:392: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/webdruid-0.5.4/graphs.c:402: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/webdruid-0.5.4/graphs.c:411: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/webdruid-0.5.4/graphs.c:412: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/webdruid-0.5.4/graphs.c:413: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/webdruid-0.5.4/graphs.c:472: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/webdruid-0.5.4/graphs.c:505: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/webdruid-0.5.4/graphs.c:569: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/webdruid-0.5.4/graphs.c:575: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/webdruid-0.5.4/graphs.c:576: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/webdruid-0.5.4/graphs.c:577: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/webdruid-0.5.4/hashtab.c:113: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/webdruid-0.5.4/hashtab.c:117:94:  [1] (buffer) strlen:
  Does not handle 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"),(int)strlen(str));
data/webdruid-0.5.4/hashtab.c:125: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/webdruid-0.5.4/hashtab.c:304: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/webdruid-0.5.4/hashtab.c:308:94:  [1] (buffer) strlen:
  Does not handle 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"),(int)strlen(str));
data/webdruid-0.5.4/hashtab.c:316: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/webdruid-0.5.4/hashtab.c:437: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/webdruid-0.5.4/hashtab.c:441:94:  [1] (buffer) strlen:
  Does not handle 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"),(int)strlen(str));
data/webdruid-0.5.4/hashtab.c:449: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/webdruid-0.5.4/hashtab.c:557: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/webdruid-0.5.4/hashtab.c:561:94:  [1] (buffer) strlen:
  Does not handle 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"),(int)strlen(str));
data/webdruid-0.5.4/hashtab.c:569: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/webdruid-0.5.4/hashtab.c:674: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/webdruid-0.5.4/hashtab.c:678:94:  [1] (buffer) strlen:
  Does not handle 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"),(int)strlen(str));
data/webdruid-0.5.4/hashtab.c:686: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/webdruid-0.5.4/hashtab.c:845: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/webdruid-0.5.4/hashtab.c:849:94:  [1] (buffer) strlen:
  Does not handle 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"),(int)strlen(str));
data/webdruid-0.5.4/hashtab.c:857: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/webdruid-0.5.4/linklist.c:214: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/webdruid-0.5.4/linklist.c:220: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/webdruid-0.5.4/linklist.c:270: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/webdruid-0.5.4/linklist.c:271: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/webdruid-0.5.4/linklist.c:278: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/webdruid-0.5.4/linklist.c:279: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/webdruid-0.5.4/linklist.c:296: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,79);
data/webdruid-0.5.4/linklist.c:416: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/webdruid-0.5.4/linklist.c:420: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/webdruid-0.5.4/logs_mgmt.c:123:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (!strcmp((filename + strlen(filename) - 3), ".gz"))
data/webdruid-0.5.4/logs_mgmt.c:483: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/webdruid-0.5.4/logs_mgmt.c:495: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/webdruid-0.5.4/output.c:1958:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
               strncpy(sp_buffer, snode->string, MAXSRCHH);
data/webdruid-0.5.4/output.c:2275:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            domain = hptr->string+strlen(hptr->string)-1;
data/webdruid-0.5.4/parser.c:172: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/webdruid-0.5.4/parser.c:321:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(tmp_buf, buffer, BUFSIZE);
data/webdruid-0.5.4/parser.c:440: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/webdruid-0.5.4/parser.c:532:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy(log_record->url, fields.url, MAXURL - 1);
data/webdruid-0.5.4/parser.c:536: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_record->hostname, fields.ip, MAXHOST - 1);
data/webdruid-0.5.4/parser.c:542: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_record->refer, fields.referer, MAXREF - 1);
data/webdruid-0.5.4/parser.c:556:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(log_record->agent, fields.agent, MAXAGENT - 1);
data/webdruid-0.5.4/parser.c:560: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_record->ident, fields.username, MAXIDENT - 1);
data/webdruid-0.5.4/preserve.c:611: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/webdruid-0.5.4/preserve.c:612: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/webdruid-0.5.4/preserve.c:642: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/webdruid-0.5.4/preserve.c:643: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/webdruid-0.5.4/preserve.c:659: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/webdruid-0.5.4/preserve.c:682: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/webdruid-0.5.4/preserve.c:683: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/webdruid-0.5.4/preserve.c:699: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/webdruid-0.5.4/preserve.c:721: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/webdruid-0.5.4/preserve.c:722: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/webdruid-0.5.4/preserve.c:746: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/webdruid-0.5.4/preserve.c:747: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/webdruid-0.5.4/preserve.c:823: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/webdruid-0.5.4/preserve.c:824: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/webdruid-0.5.4/sengine.c:143: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).
   cp1 = hostname + strlen(hostname) - 1;
data/webdruid-0.5.4/sengine.c:150: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).
   cp2 = hostname + strlen(hostname) - 1;
data/webdruid-0.5.4/sengine.c:238:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(srch + 1,cps,sizeof(srch)-2);           /* First, try "?...   "   */
data/webdruid-0.5.4/sengine.c:286: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).
      cp1=cp2+strlen(cp2)-1;
data/webdruid-0.5.4/sengine.c:305:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy(srch + 1,engines_table[sengine_index].charsettag,sizeof(srch)-2);
data/webdruid-0.5.4/sengine.c:315:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            cp1 += strlen(engines_table[sengine_index].charsettag) + 1;
data/webdruid-0.5.4/sengine.c:352:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t in_size = strlen(cp2) + 1, out_size = MAXSRCH * 4;
data/webdruid-0.5.4/sengine.c:414: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).
   buffer[strlen(buffer) - 1] = 0;
data/webdruid-0.5.4/sengine.c:417: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).
   j = strlen(buffer);
data/webdruid-0.5.4/sengine.c:422:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if ( (buffer[0]=='#') || (strlen(buffer) == 0) ) return NULL;
data/webdruid-0.5.4/sengine.c:433: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).
   i = strlen(buffer) - 1;
data/webdruid-0.5.4/sengine.c:437: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).
   j = strlen(buffer) - 1; i = 0;
data/webdruid-0.5.4/sengine.c:440:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   return (strlen(buffer) ? buffer : NULL);
data/webdruid-0.5.4/sengine.c:543:62:  [1] (buffer) strlen:
  Does not handle 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(strcmp("name", clean_line) && isspace(clean_line[strlen("name")]))
data/webdruid-0.5.4/sengine.c:545:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            clean_line += strlen("name");
data/webdruid-0.5.4/sengine.c:547:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(display_name, clean_line, SE_MAXDNAME);
data/webdruid-0.5.4/sengine.c:552:67:  [1] (buffer) strlen:
  Does not handle 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(strcmp("querytags", clean_line) && isspace(clean_line[strlen("querytags")]))
data/webdruid-0.5.4/sengine.c:557:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            clean_line += strlen("querytags") + 1;
data/webdruid-0.5.4/sengine.c:578:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               if(tag[strlen(tag) - 1] != '=')
data/webdruid-0.5.4/sengine.c:585: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).
               querytag[i] = malloc(strlen(tag) + 1);
data/webdruid-0.5.4/sengine.c:586:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
               strncpy(querytag[i], tag, strlen(tag) + 1);
data/webdruid-0.5.4/sengine.c:586: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).
               strncpy(querytag[i], tag, strlen(tag) + 1);
data/webdruid-0.5.4/sengine.c:592:68:  [1] (buffer) strlen:
  Does not handle 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(strcmp("charsettag", clean_line) && isspace(clean_line[strlen("charsettag")]))
data/webdruid-0.5.4/sengine.c:594:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            clean_line += strlen("charsettag");
data/webdruid-0.5.4/sengine.c:596:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if(clean_line[strlen(clean_line) - 1] != '=')
data/webdruid-0.5.4/sengine.c:603: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).
            charsettag = malloc(strlen(clean_line) + 1);
data/webdruid-0.5.4/sengine.c:604:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(charsettag, clean_line, strlen(clean_line) + 1);
data/webdruid-0.5.4/sengine.c:604: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).
            strncpy(charsettag, clean_line, strlen(clean_line) + 1);
data/webdruid-0.5.4/sengine.c:609:66:  [1] (buffer) strlen:
  Does not handle 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(strcmp("hostname", clean_line) && isspace(clean_line[strlen("hostname")]))
data/webdruid-0.5.4/sengine.c:611:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            clean_line += strlen("hostname");
data/webdruid-0.5.4/sengine.c:616: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).
            cp2 = clean_line + strlen(clean_line) - 1;
data/webdruid-0.5.4/sengine.c:628:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(host_middle, cp1 + 1, cp2 - cp1 - 1);
data/webdruid-0.5.4/sengine.c:629:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(host_ext, cp2 + 1, SE_MAXDNSEXT - 1);
data/webdruid-0.5.4/sengine.c:632:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(host_beg, clean_line, SE_MAXDNSBEG - 1);
data/webdruid-0.5.4/sengine.c:778: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/webdruid-0.5.4/sengine.c:782:94:  [1] (buffer) strlen:
  Does not handle 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"),(int)strlen(str));
data/webdruid-0.5.4/sengine.c:790: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/webdruid-0.5.4/sengine.c:856: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).
         nptr->urls  = new_list(url, strlen(url) + 1);
data/webdruid-0.5.4/sengine.c:875: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).
               add_list(&cptr->urls, url, strlen(url) + 1);
data/webdruid-0.5.4/sengine.c:884: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).
         nptr->urls  = new_list(url, strlen(url) + 1);
data/webdruid-0.5.4/utils.c:106: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).
   end = *str + strlen(*str) - 1;
data/webdruid-0.5.4/utils.c:348: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).
      in_size = strlen(from) + 1;
data/webdruid-0.5.4/webdruid.c:819: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,cp1,MAXSRCH);
data/webdruid-0.5.4/webdruid.c:984: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/webdruid-0.5.4/webdruid.c:992: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/webdruid-0.5.4/webdruid.c:1127: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/webdruid-0.5.4/webdruid.c:1721:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if ( (*target=malloc(strlen(str)+1)) != NULL )
data/webdruid-0.5.4/webdruid.c:1856:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int i=strlen(str),j=0;
data/webdruid-0.5.4/webdruid.c:1915: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 = 361
Lines analyzed = 15781 in approximately 0.57 seconds (27742 lines/second)
Physical Source Lines of Code (SLOC) = 10821
Hits@level = [0] 883 [1] 137 [2] 189 [3]   5 [4]  30 [5]   0
Hits@level+ = [0+] 1244 [1+] 361 [2+] 224 [3+]  35 [4+]  30 [5+]   0
Hits/KSLOC@level+ = [0+] 114.962 [1+] 33.3611 [2+] 20.7005 [3+] 3.23445 [4+] 2.77239 [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.