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/ganglia-3.7.2/gstat/gstat.c
Examining data/ganglia-3.7.2/gstat/cmdline.h
Examining data/ganglia-3.7.2/gstat/cmdline.c
Examining data/ganglia-3.7.2/libmetrics/cygwin/metrics.c
Examining data/ganglia-3.7.2/libmetrics/solaris/metrics.c
Examining data/ganglia-3.7.2/libmetrics/irix/metrics.c
Examining data/ganglia-3.7.2/libmetrics/dragonfly/metrics.c
Examining data/ganglia-3.7.2/libmetrics/hpux/metrics.c
Examining data/ganglia-3.7.2/libmetrics/netbsd/metrics.c
Examining data/ganglia-3.7.2/libmetrics/mingw/metrics.c
Examining data/ganglia-3.7.2/libmetrics/darwin/metrics.c
Examining data/ganglia-3.7.2/libmetrics/libmetrics.c
Examining data/ganglia-3.7.2/libmetrics/openbsd/metrics.c
Examining data/ganglia-3.7.2/libmetrics/libmetrics.h
Examining data/ganglia-3.7.2/libmetrics/tests/test-metrics.c
Examining data/ganglia-3.7.2/libmetrics/get_ifi_info.c
Examining data/ganglia-3.7.2/libmetrics/interface.h
Examining data/ganglia-3.7.2/libmetrics/freebsd/metrics.c
Examining data/ganglia-3.7.2/libmetrics/unpifi.h
Examining data/ganglia-3.7.2/libmetrics/osf/metrics.c
Examining data/ganglia-3.7.2/libmetrics/interface.c
Examining data/ganglia-3.7.2/libmetrics/aix/metrics.c
Examining data/ganglia-3.7.2/libmetrics/linux/metrics.c
Examining data/ganglia-3.7.2/gmetric/cmdline.h
Examining data/ganglia-3.7.2/gmetric/gmetric.c
Examining data/ganglia-3.7.2/gmetric/cmdline.c
Examining data/ganglia-3.7.2/gmetad/daemon_init.h
Examining data/ganglia-3.7.2/gmetad/rrd_helpers.c
Examining data/ganglia-3.7.2/gmetad/export_helpers.h
Examining data/ganglia-3.7.2/gmetad/process_xml.c
Examining data/ganglia-3.7.2/gmetad/gmetad.c
Examining data/ganglia-3.7.2/gmetad/server.c
Examining data/ganglia-3.7.2/gmetad/conf.h
Examining data/ganglia-3.7.2/gmetad/cmdline.h
Examining data/ganglia-3.7.2/gmetad/server_priv.h
Examining data/ganglia-3.7.2/gmetad/conf.c
Examining data/ganglia-3.7.2/gmetad/daemon_init.c
Examining data/ganglia-3.7.2/gmetad/export_helpers.c
Examining data/ganglia-3.7.2/gmetad/circuit_breaker.c
Examining data/ganglia-3.7.2/gmetad/cleanup.c
Examining data/ganglia-3.7.2/gmetad/type_hash.c
Examining data/ganglia-3.7.2/gmetad/data_thread.c
Examining data/ganglia-3.7.2/gmetad/gmetad.h
Examining data/ganglia-3.7.2/gmetad/xml_hash.c
Examining data/ganglia-3.7.2/gmetad/rrd_helpers.h
Examining data/ganglia-3.7.2/gmetad/cmdline.c
Examining data/ganglia-3.7.2/gmond/sflow.h
Examining data/ganglia-3.7.2/gmond/sflow.c
Examining data/ganglia-3.7.2/gmond/dtd.h
Examining data/ganglia-3.7.2/gmond/gmond.c
Examining data/ganglia-3.7.2/gmond/g25_config.h
Examining data/ganglia-3.7.2/gmond/modules/memory/mod_mem.c
Examining data/ganglia-3.7.2/gmond/modules/status/mod_gstatus.c
Examining data/ganglia-3.7.2/gmond/modules/cpu/mod_load.c
Examining data/ganglia-3.7.2/gmond/modules/cpu/mod_multicpu.c
Examining data/ganglia-3.7.2/gmond/modules/cpu/mod_cpu.c
Examining data/ganglia-3.7.2/gmond/modules/python/mod_python.c
Examining data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c
Examining data/ganglia-3.7.2/gmond/modules/disk/mod_disk.c
Examining data/ganglia-3.7.2/gmond/modules/network/mod_net.c
Examining data/ganglia-3.7.2/gmond/modules/system/mod_sys.c
Examining data/ganglia-3.7.2/gmond/modules/system/mod_proc.c
Examining data/ganglia-3.7.2/gmond/modules/example/mod_example.c
Examining data/ganglia-3.7.2/gmond/g25_config.c
Examining data/ganglia-3.7.2/gmond/cmdline.h
Examining data/ganglia-3.7.2/gmond/sflow_gmetric.h
Examining data/ganglia-3.7.2/gmond/core_metrics.c
Examining data/ganglia-3.7.2/gmond/cmdline.c
Examining data/ganglia-3.7.2/gmond/gmond_internal.h
Examining data/ganglia-3.7.2/include/ganglia.h
Examining data/ganglia-3.7.2/include/ganglia_gexec.h
Examining data/ganglia-3.7.2/include/gm_metric.h
Examining data/ganglia-3.7.2/include/gm_value.h
Examining data/ganglia-3.7.2/include/gm_file.h
Examining data/ganglia-3.7.2/include/gm_mmn.h
Examining data/ganglia-3.7.2/include/gm_msg.h
Examining data/ganglia-3.7.2/lib/gm_protocol.h
Examining data/ganglia-3.7.2/lib/apr_net.c
Examining data/ganglia-3.7.2/lib/my_inet_ntop.c
Examining data/ganglia-3.7.2/lib/apr_net.h
Examining data/ganglia-3.7.2/lib/debug_msg.c
Examining data/ganglia-3.7.2/lib/rdwr.h
Examining data/ganglia-3.7.2/lib/tcp.c
Examining data/ganglia-3.7.2/lib/dotconf.h
Examining data/ganglia-3.7.2/lib/hash.c
Examining data/ganglia-3.7.2/lib/llist.c
Examining data/ganglia-3.7.2/lib/inetaddr.c
Examining data/ganglia-3.7.2/lib/ganglia.c
Examining data/ganglia-3.7.2/lib/my_inet_ntop.h
Examining data/ganglia-3.7.2/lib/gm_scoreboard.h
Examining data/ganglia-3.7.2/lib/file.c
Examining data/ganglia-3.7.2/lib/update_pidfile.h
Examining data/ganglia-3.7.2/lib/scoreboard.c
Examining data/ganglia-3.7.2/lib/hash.h
Examining data/ganglia-3.7.2/lib/update_pidfile.c
Examining data/ganglia-3.7.2/lib/become_a_nobody.c
Examining data/ganglia-3.7.2/lib/getopt_init.c
Examining data/ganglia-3.7.2/lib/getopt1.c
Examining data/ganglia-3.7.2/lib/getopt.h
Examining data/ganglia-3.7.2/lib/gm_protocol_xdr.c
Examining data/ganglia-3.7.2/lib/libgmond.c
Examining data/ganglia-3.7.2/lib/readdir.h
Examining data/ganglia-3.7.2/lib/error_msg.c
Examining data/ganglia-3.7.2/lib/net.h
Examining data/ganglia-3.7.2/lib/readdir.c
Examining data/ganglia-3.7.2/lib/become_a_nobody.h
Examining data/ganglia-3.7.2/lib/rdwr.c
Examining data/ganglia-3.7.2/lib/llist.h
Examining data/ganglia-3.7.2/lib/getopt.c
Examining data/ganglia-3.7.2/lib/ganglia_priv.h
Examining data/ganglia-3.7.2/lib/dotconf.c

FINAL RESULTS:

data/ganglia-3.7.2/libmetrics/hpux/metrics.c:210:7:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
      strncat( val.str, uts.version, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/gmetad/cmdline.c:262:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(result, s);
data/ganglia-3.7.2/gmetad/conf.c:28:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(root.strings, cmd->data.str);
data/ganglia-3.7.2/gmetad/export_helpers.c:302:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(s_path, "%s/%s/%s", cluster, host, metric);
data/ganglia-3.7.2/gmetad/export_helpers.c:308:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(s_path, "%s/%s", host, metric);     
data/ganglia-3.7.2/gmetad/export_helpers.c:514: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 (tokens[i], p);
data/ganglia-3.7.2/gmetad/export_helpers.c:572:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(attr_str, "grid=%s,cluster=%s,ip=%s,location=%s%s%s", grid, cluster, ip, location,
data/ganglia-3.7.2/gmetad/gmetad.c:135: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(strings + e, s);
data/ganglia-3.7.2/gmetad/gmetad.c:432:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(root.strings, "http://%s/ganglia/", hostname);
data/ganglia-3.7.2/gmetad/process_xml.c:189:22:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                     strcpy(xmldata->sourcename, name);
data/ganglia-3.7.2/gmetad/process_xml.c:305: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(xmldata->sourcename, name);
data/ganglia-3.7.2/gmetad/process_xml.c:453: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(xmldata->hostname, name);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:92:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(cmd, "UPDATE %s %u:%s:%s\n", rrd, process_time, sum, num);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:94:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(cmd, "UPDATE %s %u:%s\n", rrd, process_time, sum);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:208:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(val, "%u:%s:%s", process_time, sum, num);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:210:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(val, "%u:%s", process_time, sum);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:274:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(sum,"DS:sum:%s:%d:U:U",
data/ganglia-3.7.2/gmetad/rrd_helpers.c:279:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(num,"DS:num:%s:%d:U:U", 
data/ganglia-3.7.2/gmetad/server.c:183:4:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   vsnprintf (buf, sizeof (buf), fmt, ap);  
data/ganglia-3.7.2/gmetad/server.c:234:43:  [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.
   #define xml_print(client, ...) 0; b += snprintf(b, sizeof(buf) - (b - buf), __VA_ARGS__);
data/ganglia-3.7.2/gmetad/server.c:294:43:  [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.
   #define xml_print(client, ...) 0; b += snprintf(b, sizeof(buf) - (b - buf), __VA_ARGS__);
data/ganglia-3.7.2/gmetad/server.c:1006: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 (buf + (offset - 1), BUFSIZE > offset - 1 ? BUFSIZE - (offset + 1) : 0,  callback != NULL ? "}})\r\n" : "}}\r\n");
data/ganglia-3.7.2/gmetric/cmdline.c:356:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(result, s);
data/ganglia-3.7.2/gmond/cmdline.c:305:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(result, s);
data/ganglia-3.7.2/gmond/g25_config.c:14:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(result, s);
data/ganglia-3.7.2/gmond/gmond.c:558:65:  [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.
      *(Ganglia_access **)apr_array_push( acl->access_array ) = access;
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:378: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(path, F_OK)) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:384: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(path, R_OK)) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:418:19:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        modpath = strcat(modpath, modname);
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:569: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(path, F_OK))
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:576: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(path, R_OK))
data/ganglia-3.7.2/gmond/modules/status/mod_gstatus.c:121: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(val.str, MAX_G_STRING_SIZE, VERSION);
data/ganglia-3.7.2/gmond/modules/status/mod_gstatus.c:125: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(val.str, MAX_G_STRING_SIZE, GANGLIA_VERSION_FULL);
data/ganglia-3.7.2/gstat/cmdline.c:290:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(result, s);
data/ganglia-3.7.2/include/gm_msg.h:5:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define CHECK_FMT(posf,posv) __attribute__((format(printf, posf, posv)))
data/ganglia-3.7.2/lib/debug_msg.c:22:10:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
         vfprintf(stderr, format, ap);
data/ganglia-3.7.2/lib/dotconf.c:66:9:  [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.
#define snprintf _snprintf
data/ganglia-3.7.2/lib/dotconf.c:66:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/ganglia-3.7.2/lib/dotconf.c:67:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/ganglia-3.7.2/lib/dotconf.c:205:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(msg, CFG_BUFSIZE, fmt, args);
data/ganglia-3.7.2/lib/dotconf.c:212:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, fmt, args);
data/ganglia-3.7.2/lib/dotconf.c:310:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(cp1 + length - 2, cp2);
data/ganglia-3.7.2/lib/dotconf.c:716:6:  [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(fname, R_OK))
data/ganglia-3.7.2/lib/dotconf.c:1044:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(new_path,"%s%s%s",path,new_pre,ext);
data/ganglia-3.7.2/lib/dotconf.c:1053: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(already_matched,new_path);
data/ganglia-3.7.2/lib/dotconf.c:1078:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(new_path,"%s%s",path,dirptr->d_name);
data/ganglia-3.7.2/lib/dotconf.c:1080: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(new_path, R_OK))
data/ganglia-3.7.2/lib/dotconf.c:1223:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
					strcat(new_pre,new_ext);
data/ganglia-3.7.2/lib/dotconf.c:1229:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(new_path,"%s%s%s",path,new_pre,t_ext);
data/ganglia-3.7.2/lib/dotconf.c:1238: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(already_matched,new_path);
data/ganglia-3.7.2/lib/dotconf.c:1264:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(new_path,"%s%s",path,dirptr->d_name);
data/ganglia-3.7.2/lib/dotconf.c:1267: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(new_path, R_OK))
data/ganglia-3.7.2/lib/dotconf.c:1354:6:  [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(filename, R_OK))
data/ganglia-3.7.2/lib/error_msg.c:140:4:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   vsnprintf (buf, MAXLINE, fmt, ap);	/* safe */
data/ganglia-3.7.2/lib/error_msg.c:142:4:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
   vsprintf (buf, fmt, ap);	/* not safe */
data/ganglia-3.7.2/lib/ganglia.c:46:16:  [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(cluster->host->name,   attr[1]);
data/ganglia-3.7.2/lib/ganglia.c:70:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy(cluster->host->ip, attr[3]);
data/ganglia-3.7.2/lib/readdir.c:88:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(filespec, dir);
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:674:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(errmsg, "host_processor_sets: %s\n", mach_error_string(error));
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:683:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(errmsg, "host_processor_set_priv: %s\n", mach_error_string(error));
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:690:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
           sprintf(errmsg, "processor_set_tasks: %s\n", mach_error_string(error));
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:700:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(errmsg, "task_threads: %s\n", mach_error_string(error));
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:709:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf(errmsg, "thread_info: %s\n", mach_error_string(error));
data/ganglia-3.7.2/libmetrics/dragonfly/metrics.c:914:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(strptr, listptr[i]);
data/ganglia-3.7.2/libmetrics/freebsd/metrics.c:1097:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(strptr, listptr[i]);
data/ganglia-3.7.2/libmetrics/irix/metrics.c:527:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	 strcat(pfilename,sdirp->d_name);
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:1072:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(strptr, listptr[i]);
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:893:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(strptr, listptr[i]);
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:712:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(buff, "%s%d", info->ks_module, info->ks_instance);
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:1051:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(&filename_buf[6],"%s/psinfo", direntp->d_name);
data/ganglia-3.7.2/gmetad/cmdline.c:477:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "hVc:d:p:", long_options, &option_index);
data/ganglia-3.7.2/gmetric/cmdline.c:582:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "hVc:n:v:t:u:s:x:d:g:C:D:T:S:H", long_options, &option_index);
data/ganglia-3.7.2/gmond/cmdline.c:530:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "hVc:l:d:ftmbr:p:z", long_options, &option_index);
data/ganglia-3.7.2/gmond/modules/example/mod_example.c:58:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL)%99);
data/ganglia-3.7.2/gstat/cmdline.c:514:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "hVadm1lni:p:", long_options, &option_index);
data/ganglia-3.7.2/lib/dotconf.c:174:22:  [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 ((env_value = getenv(env_name)) != NULL)
data/ganglia-3.7.2/lib/dotconf.c:737:16:  [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 ((dc_env = getenv(CFG_INCLUDEPATH_ENV)) != NULL)
data/ganglia-3.7.2/lib/dotconf.c:1380:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *env = getenv(CFG_INCLUDEPATH_ENV);
data/ganglia-3.7.2/lib/getopt.c:214:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#ifndef getenv
data/ganglia-3.7.2/lib/getopt.c:215:14:  [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.
extern char *getenv ();
data/ganglia-3.7.2/lib/getopt.c:400:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/ganglia-3.7.2/lib/getopt.c:1169:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (argc, argv, optstring)
data/ganglia-3.7.2/lib/getopt.c:1199:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/ganglia-3.7.2/lib/getopt.h:145:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
data/ganglia-3.7.2/lib/getopt.h:147:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/ganglia-3.7.2/lib/getopt.h:151:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int ___argc, char *const *___argv,
data/ganglia-3.7.2/lib/getopt.h:165:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/ganglia-3.7.2/lib/getopt.h:167:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long ();
data/ganglia-3.7.2/lib/getopt1.c:67:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (argc, argv, options, long_options, opt_index)
data/ganglia-3.7.2/lib/getopt1.c:123:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/ganglia-3.7.2/gmetad/cmdline.c:231: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).
  outfile = fopen(filename, "w");
data/ganglia-3.7.2/gmetad/conf.c:133: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).
               port = atoi ( p+1 );
data/ganglia-3.7.2/gmetad/conf.c:529:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[1024];
data/ganglia-3.7.2/gmetad/conf.h:39: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 *RRAs[MAX_RRAS];
data/ganglia-3.7.2/gmetad/export_helpers.c:294:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s_path[MEMCACHED_MAX_KEY_LENGTH];
data/ganglia-3.7.2/gmetad/export_helpers.c:348:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 path_cp[PATHSIZE]; //copy of path so we can clobber it
data/ganglia-3.7.2/gmetad/export_helpers.c:374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 hostcp[hostlen+1]; 
data/ganglia-3.7.2/gmetad/export_helpers.c:376:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 sourcecp[sourcelen+1];
data/ganglia-3.7.2/gmetad/export_helpers.c:378:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char metriccp[metriclen+1];
data/ganglia-3.7.2/gmetad/export_helpers.c:379:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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_process_time[15];
data/ganglia-3.7.2/gmetad/export_helpers.c:380: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 graphite_msg[ PATHSIZE + 1 ];
data/ganglia-3.7.2/gmetad/export_helpers.c:387:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(s_process_time, "%u", process_time);
data/ganglia-3.7.2/gmetad/export_helpers.c:447:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   	char graphite_path_cp[ PATHSIZE + 1 ]; //copy of graphite_path
data/ganglia-3.7.2/gmetad/export_helpers.c:561:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *tags[64] = { NULL };
data/ganglia-3.7.2/gmetad/export_helpers.c:571:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char attr_str[512];
data/ganglia-3.7.2/gmetad/export_helpers.c:576:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *kv[64] = { NULL };
data/ganglia-3.7.2/gmetad/export_helpers.c:585:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *pair[2] = { NULL };
data/ganglia-3.7.2/gmetad/gmetad.c:73: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 hostname[HOSTNAMESZ];
data/ganglia-3.7.2/gmetad/gmetad.c:303: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 sum[256];
data/ganglia-3.7.2/gmetad/gmetad.c:304: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 num[256];
data/ganglia-3.7.2/gmetad/gmetad.c:332: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(sum, "%.5f", metric->val.d);
data/ganglia-3.7.2/gmetad/gmetad.c:334: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(num, "%u", metric->num);
data/ganglia-3.7.2/gmetad/gmetad.h:181: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 strings[GMETAD_FRAMESIZE];
data/ganglia-3.7.2/gmetad/gmetad.h:203: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 strings[GMETAD_FRAMESIZE];
data/ganglia-3.7.2/gmetad/gmetad.h:239: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 strings[GMETAD_FRAMESIZE];
data/ganglia-3.7.2/gmetad/process_xml.c:131: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).
                  metric->tn = atoi(attr[i+1]);
data/ganglia-3.7.2/gmetad/process_xml.c:134:34:  [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).
                  metric->tmax = atoi(attr[i+1]);
data/ganglia-3.7.2/gmetad/process_xml.c:137:34:  [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).
                  metric->dmax = atoi(attr[i+1]);
data/ganglia-3.7.2/gmetad/process_xml.c:146: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).
                  metric->num = atoi(attr[i+1]);
data/ganglia-3.7.2/gmetad/process_xml.c:232: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(source, hash_datum->data, hash_datum->size);
data/ganglia-3.7.2/gmetad/process_xml.c:351: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(source, hash_datum->data, hash_datum->size);
data/ganglia-3.7.2/gmetad/process_xml.c:424:18:  [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).
            tn = atoi(attr[i+1]);
data/ganglia-3.7.2/gmetad/process_xml.c:426:20:  [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).
            tmax = atoi(attr[i+1]);
data/ganglia-3.7.2/gmetad/process_xml.c:487: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(host, hash_datum->data, hash_datum->size);
data/ganglia-3.7.2/gmetad/process_xml.c:544: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 value[12];
data/ganglia-3.7.2/gmetad/process_xml.c:545: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(value, "%d", reported);
data/ganglia-3.7.2/gmetad/process_xml.c:782: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(&xmldata->metric, hash_datum->data, hash_datum->size);
data/ganglia-3.7.2/gmetad/process_xml.c:852:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&metric, hash_datum->data, hash_datum->size);
data/ganglia-3.7.2/gmetad/process_xml.c:927:17:  [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(&sum_metric, hash_datum->data, hash_datum->size);
data/ganglia-3.7.2/gmetad/process_xml.c:1019: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(&xmldata->metric, hash_datum->data, hash_datum->size);
data/ganglia-3.7.2/gmetad/process_xml.c:1036: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).
            metric->num += atoi(metricnum);
data/ganglia-3.7.2/gmetad/process_xml.c:1063:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         if( !( xt = in_xml_list ( (char *)attr[i], strlen(attr[i]))) )
data/ganglia-3.7.2/gmetad/process_xml.c:1152: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 sum[512];
data/ganglia-3.7.2/gmetad/process_xml.c:1153: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 num[256];
data/ganglia-3.7.2/gmetad/process_xml.c:1182:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sum, "%.f", metric->val.d);
data/ganglia-3.7.2/gmetad/process_xml.c:1185:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sum, "%.*f", (int) metric->precision, metric->val.d);
data/ganglia-3.7.2/gmetad/process_xml.c:1190: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(num, "%u", metric->num);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:50: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 *cmd, *str, buf[1024];
data/ganglia-3.7.2/gmetad/rrd_helpers.c:202: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 *argv[3];
data/ganglia-3.7.2/gmetad/rrd_helpers.c:204: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 val[128];
data/ganglia-3.7.2/gmetad/rrd_helpers.c:238: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 *argv[128];
data/ganglia-3.7.2/gmetad/rrd_helpers.c:241:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[16], start[64];
data/ganglia-3.7.2/gmetad/rrd_helpers.c:242: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 sum[64];
data/ganglia-3.7.2/gmetad/rrd_helpers.c:243: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 num[64];
data/ganglia-3.7.2/gmetad/rrd_helpers.c:269: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(s, "%u", step);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:272: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(start, "%u", process_time-1);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:364: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 rrd[ PATHSIZE + 1 ];
data/ganglia-3.7.2/gmetad/server.c:166: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 hostname[HOSTNAMESZ];
data/ganglia-3.7.2/gmetad/server.c:173:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[4096];
data/ganglia-3.7.2/gmetad/server.c:206: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 sum[256];
data/ganglia-3.7.2/gmetad/server.c:223:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sum, "%.f", metric->val.d);
data/ganglia-3.7.2/gmetad/server.c:226:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sum, "%.*f", (int) metric->precision, metric->val.d);
data/ganglia-3.7.2/gmetad/server.c:232:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[16 * 1024];
data/ganglia-3.7.2/gmetad/server.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 buf[16 * 1024];
data/ganglia-3.7.2/gmetad/server.c:658:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[BUFSIZE];
data/ganglia-3.7.2/gmetad/server.c:808:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char coreBuf[METRICSBUFSIZE], cpuBuf[METRICSBUFSIZE], diskBuf[METRICSBUFSIZE],
data/ganglia-3.7.2/gmetad/server.c:1146: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 remote_ip[16];
data/ganglia-3.7.2/gmetad/server.c:1147: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 request[REQUESTLEN + 1];
data/ganglia-3.7.2/gmetric/cmdline.c:325: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).
  outfile = fopen(filename, "w");
data/ganglia-3.7.2/gmond/cmdline.c:274: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).
  outfile = fopen(filename, "w");
data/ganglia-3.7.2/gmond/g25_config.c:350:9:  [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( path, "r");
data/ganglia-3.7.2/gmond/gmond.c:70: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 myname[APRMAXHOSTLEN+1];
data/ganglia-3.7.2/gmond/gmond.c:260:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char outputbuffer[2048];
data/ganglia-3.7.2/gmond/gmond.c:671:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char apr_err[512];
data/ganglia-3.7.2/gmond/gmond.c:681:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char apr_err[512];
data/ganglia-3.7.2/gmond/gmond.c:1199:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msgbuf[GANGLIA_MAX_MESSAGE_LEN];
data/ganglia-3.7.2/gmond/gmond.c:1200:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char hostbuf[512];
data/ganglia-3.7.2/gmond/gmond.c:1335:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char srch_name[512];
data/ganglia-3.7.2/gmond/gmond.c:1465:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  remoteip[256];
data/ganglia-3.7.2/gmond/gmond.c:1466:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[max_udp_message_len];
data/ganglia-3.7.2/gmond/gmond.c:1641:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char outputbuffer[2048];
data/ganglia-3.7.2/gmond/gmond.c:1693:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char gangliaxml[128];
data/ganglia-3.7.2/gmond/gmond.c:1694:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char clusterxml[1024];
data/ganglia-3.7.2/gmond/gmond.c:1768:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hostxml[1024]; /* for <HOST></HOST> */
data/ganglia-3.7.2/gmond/gmond.c:1817:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char value[1024];
data/ganglia-3.7.2/gmond/gmond.c:1914:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char value[1024];
data/ganglia-3.7.2/gmond/gmond.c:1955:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char metricxml[1024];
data/ganglia-3.7.2/gmond/gmond.c:2023:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  remoteip[256];
data/ganglia-3.7.2/gmond/gmond.c:2162: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 buff[128];
data/ganglia-3.7.2/gmond/gmond.c:2194: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 buff[128];
data/ganglia-3.7.2/gmond/gmond.c:2365:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char my_error[256];
data/ganglia-3.7.2/gmond/gmond.c:2381:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char my_error[256];
data/ganglia-3.7.2/gmond/gmond.c:2466:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (metric_info, metric_cb->info, sizeof(Ganglia_25metric));
data/ganglia-3.7.2/gmond/gmond.c:2924:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char metricmsg[max_udp_message_len];
data/ganglia-3.7.2/gmond/gmond.c:3117:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char modular_desc[1024];
data/ganglia-3.7.2/gmond/modules/cpu/mod_multicpu.c:140:18:  [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).
        *index = atoi(&metric[numIndex]);
data/ganglia-3.7.2/gmond/modules/cpu/mod_multicpu.c:546:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[64];
data/ganglia-3.7.2/gmond/modules/example/mod_example.c:72: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).
                random_max = atoi(params[i].value);
data/ganglia-3.7.2/gmond/modules/example/mod_example.c:75:34:  [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).
                constant_value = atoi(params[i].value);
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:70:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mname[128];
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:72:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vtype[32];
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char units[64];
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char slope[32];
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char format[64];
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[512];
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char groups[512];
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pcb[128];
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:89: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 modname_bfr[PATH_MAX];
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:211:17:  [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 (minfo->vtype, "uint");
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:221:17:  [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 (minfo->units, "unknown");
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:231:17:  [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 (minfo->slope, "both");
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:241:17:  [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 (minfo->format, "%u");
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:251:17:  [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 (minfo->desc, "unknown metric");
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:419:19:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        modpath = strcat(modpath, ".pl");
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mname[251];  // 255 (a fairly common filename max) - 4 (".rrd")
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vtype[32];
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:80:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char units[64];
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char slope[32];
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char format[64];
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[512];
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char groups[512];
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:98: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 modname_bfr[PATH_MAX];
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:321:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char strkey[1024], strvalue[1024];
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:359:17:  [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 (minfo->vtype, "uint");
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:367:17:  [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 (minfo->units, "unknown");
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:375:17:  [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 (minfo->slope, "both");
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:383:17:  [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 (minfo->format, "%u");
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:391:17:  [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 (minfo->desc, "unknown metric");
data/ganglia-3.7.2/gmond/modules/status/mod_gstatus.c:73:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(gmi, &static_metric_info[*i], sizeof(Ganglia_25metric));
data/ganglia-3.7.2/gmond/sflow.c:226:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mname_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:227:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mtitle_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:245:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mname_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:246:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mtitle_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:264:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mname_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:265:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mtitle_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:283:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mname_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:284:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mtitle_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:302:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mname_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:303:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mtitle_buf[SFLOW_MAX_METRIC_NAME_LEN];
data/ganglia-3.7.2/gmond/sflow.c:1147:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hostname[SFLOW_MAX_HOSTNAME_LEN + 1];
data/ganglia-3.7.2/gmond/sflow.c:1148:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char spoofstr[SFLOW_MAX_SPOOFHOST_LEN + 1];
data/ganglia-3.7.2/gmond/sflow.c:1149:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char osrelease[SFLOW_MAX_OSRELEASE_LEN + 1];
data/ganglia-3.7.2/gmond/sflow.c:1150:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char uuidstr[SFLOW_MAX_UUIDSTR_LEN + 1];
data/ganglia-3.7.2/gmond/sflow.c:1151:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char sflowdsi[SFLOW_MAX_DSI_LEN + 1];
data/ganglia-3.7.2/gmond/sflow.c:1152:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mprefix[SFLOW_MAX_METRIC_PREFIX_LEN + 1];
data/ganglia-3.7.2/gmond/sflow.c:1182: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(hostname, SFLOWXDR_str(x), hostname_len);
data/ganglia-3.7.2/gmond/sflow.c:1194: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(osrelease, SFLOWXDR_str(x), osrelease_len);
data/ganglia-3.7.2/gmond/sflow.c:1272:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dataSource->metric_prefix, mprefix, mprefix_len);
data/ganglia-3.7.2/gmond/sflow.h:77:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char agentipstr[SFLOW_MAX_IPSTR_LEN];
data/ganglia-3.7.2/gmond/sflow.h:130:71:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SFLOWXDR_next_float(x,pf) do { uint32_t tmp=SFLOWXDR_next(x); memcpy(pf, &tmp, 4); } while(0)
data/ganglia-3.7.2/gstat/cmdline.c:259: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).
  outfile = fopen(filename, "w");
data/ganglia-3.7.2/gstat/gstat.c:16: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 cluster_ip[16];
data/ganglia-3.7.2/include/ganglia_gexec.h:10:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ip[64];
data/ganglia-3.7.2/include/ganglia_gexec.h:11:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[GEXEC_HOST_STRING_LEN];
data/ganglia-3.7.2/include/ganglia_gexec.h:12:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char domain[GEXEC_HOST_STRING_LEN];
data/ganglia-3.7.2/include/ganglia_gexec.h:32: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 name[256];
data/ganglia-3.7.2/include/gm_value.h:31: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 str[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/lib/apr_net.c:91:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char _bind_address[APRMAXHOSTLEN+1];
data/ganglia-3.7.2/lib/apr_net.c:371:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&mreq->imr_multiaddr, &(sa->sa.sin.sin_addr), 
data/ganglia-3.7.2/lib/apr_net.c:391:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&mreq->imr_interface, 
data/ganglia-3.7.2/lib/apr_net.c:411:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&mreq->ipv6mr_multiaddr, &(sa->sa.sin6.sin6_addr),
data/ganglia-3.7.2/lib/dotconf.c:77: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 name[CFG_MAX_OPTION + 1];	/* option name */
data/ganglia-3.7.2/lib/dotconf.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 env_name[CFG_MAX_VALUE + 1];
data/ganglia-3.7.2/lib/dotconf.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 env_default[CFG_MAX_VALUE + 1];
data/ganglia-3.7.2/lib/dotconf.c:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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_value[CFG_MAX_VALUE + 1];
data/ganglia-3.7.2/lib/dotconf.c:204:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char msg[CFG_BUFSIZE];
data/ganglia-3.7.2/lib/dotconf.c:283:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 buf2[CFG_BUFSIZE];
data/ganglia-3.7.2/lib/dotconf.c:322:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[CFG_BUFSIZE];
data/ganglia-3.7.2/lib/dotconf.c:324:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 here_limit[9];	                       /* max length for here-document delimiter: 8 */
data/ganglia-3.7.2/lib/dotconf.c:380:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[CFG_MAX_VALUE];
data/ganglia-3.7.2/lib/dotconf.c:682:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[CFG_BUFSIZE];
data/ganglia-3.7.2/lib/dotconf.c:696:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[CFG_BUFSIZE];
data/ganglia-3.7.2/lib/dotconf.c:723:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(new->stream = fopen(fname, "r")))
data/ganglia-3.7.2/lib/dotconf.c:983:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char new_pre[CFG_MAX_FILENAME];
data/ganglia-3.7.2/lib/dotconf.c:984:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 already_matched[CFG_MAX_FILENAME];
data/ganglia-3.7.2/lib/dotconf.c:1120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char new_pre[CFG_MAX_FILENAME];
data/ganglia-3.7.2/lib/dotconf.c:1121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char new_ext[CFG_MAX_FILENAME];
data/ganglia-3.7.2/lib/dotconf.c:1122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 already_matched[CFG_MAX_FILENAME];
data/ganglia-3.7.2/lib/error_msg.c:133:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[MAXLINE + 1];
data/ganglia-3.7.2/lib/file.c:34:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fd = open(filename, O_RDONLY);
data/ganglia-3.7.2/lib/ganglia.c:29:31:  [2] (integer) atol:
  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).
         cluster->localtime = atol(attr[n+1]);
data/ganglia-3.7.2/lib/ganglia.c:47:16:  [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(cluster->host->domain, "unresolved");
data/ganglia-3.7.2/lib/ganglia.c:66:22:  [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(cluster->host->domain, "unspecified");
data/ganglia-3.7.2/lib/ganglia.c:71:41:  [2] (integer) atol:
  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).
         cluster->host->last_reported = atol(attr[7]);
data/ganglia-3.7.2/lib/ganglia.c:90:41:  [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).
               cluster->host->cpu_num = atoi( attr[3] );
data/ganglia-3.7.2/lib/ganglia.c:106:42:  [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).
               cluster->host->proc_run = atoi( attr[3] );
data/ganglia-3.7.2/lib/ganglia.c:110:44:  [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).
               cluster->host->proc_total = atoi( attr[3] );
data/ganglia-3.7.2/lib/getopt_init.c:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char var[50];
data/ganglia-3.7.2/lib/getopt_init.c:55:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  cp = memcpy (&var[sizeof (var) - sizeof (envvar_tail)], envvar_tail,
data/ganglia-3.7.2/lib/hash.c:28: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(datum->data, data, datum->size);
data/ganglia-3.7.2/lib/hash.c:49: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(dest->data, src->data, src->size);
data/ganglia-3.7.2/lib/hash.c:260: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( bucket->val->data, val->data, val->size );
data/ganglia-3.7.2/lib/hash.h:21: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 __pad[8];
data/ganglia-3.7.2/lib/inetaddr.c:46: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(&sa->sin_addr, (char*) &inaddr, sizeof(struct in_addr));
data/ganglia-3.7.2/lib/inetaddr.c:59:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
           memcpy(&sa->sin_addr, he->h_addr_list[0], he->h_length);
data/ganglia-3.7.2/lib/inetaddr.c:111: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(&sa_in->sin_addr, (char*) &inaddr, sizeof(struct in_addr));
data/ganglia-3.7.2/lib/inetaddr.c:123:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&sa_in->sin_addr, &sa.sin_addr, 4);
data/ganglia-3.7.2/lib/inetaddr.c:233:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&iface->sa, (char*) &myaddr, sizeof (struct sockaddr_in));
data/ganglia-3.7.2/lib/inetaddr.c:324: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(&ia->sa, &addr, sizeof(addr));
data/ganglia-3.7.2/lib/libgmond.c:29: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 myhost[APRMAXHOSTLEN+1];
data/ganglia-3.7.2/lib/libgmond.c:453:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char gmetricmsg[GANGLIA_MAX_MESSAGE_LEN];
data/ganglia-3.7.2/lib/libgmond.c:464:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( &(msg.Ganglia_metadata_msg_u.gfull.metric), gmetric->msg, sizeof(Ganglia_metadata_message));
data/ganglia-3.7.2/lib/libgmond.c:526:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char gmetricmsg[GANGLIA_MAX_MESSAGE_LEN];
data/ganglia-3.7.2/lib/readdir.c:92:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(filespec, "/*");
data/ganglia-3.7.2/lib/readdir.h:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char d_name[_MAX_FNAME+1];    /* filename (null terminated) */
data/ganglia-3.7.2/lib/update_pidfile.c:28:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (pidfile, "r");
data/ganglia-3.7.2/lib/update_pidfile.c:52:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (pidfile, "w");
data/ganglia-3.7.2/libmetrics/aix/metrics.c:52:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char filler[12];
data/ganglia-3.7.2/libmetrics/aix/metrics.c:53:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char lpp_name[145];      /* offset: 0xc ( 12) */
data/ganglia-3.7.2/libmetrics/aix/metrics.c:54:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char comp_id[20];        /* offset: 0x9d ( 157) */
data/ganglia-3.7.2/libmetrics/aix/metrics.c:57:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char fesn[10];           /* offset: 0xb8 ( 184) */
data/ganglia-3.7.2/libmetrics/aix/metrics.c:64:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char ptf[10];            /* offset: 0xd2 ( 210) */
data/ganglia-3.7.2/libmetrics/aix/metrics.c:66:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char sceded_by[10];      /* offset: 0xde ( 222) */
data/ganglia-3.7.2/libmetrics/aix/metrics.c:154:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   f = fopen( "/usr/ios/cli/ioscli", "r" );
data/ganglia-3.7.2/libmetrics/aix/metrics.c:206: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).
      utmp = fopen(UTMP_FILE, "r");
data/ganglia-3.7.2/libmetrics/aix/metrics.c:242:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (val.str, "unknown");
data/ganglia-3.7.2/libmetrics/aix/metrics.c:256:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy( val.str, "Virtual I/O Server" );
data/ganglia-3.7.2/libmetrics/aix/metrics.c:271: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 oslevel[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/libmetrics/aix/metrics.c:273: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(oslevel, "%d.%d.%d.%d", aixver, aixrel, aixlev, aixfix);
data/ganglia-3.7.2/libmetrics/cygwin/metrics.c:37: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 sys_osname[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/libmetrics/cygwin/metrics.c:38: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 sys_osrelease[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/libmetrics/cygwin/metrics.c:395:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     val.uint32 = atoi ( p );
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:193: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 *prefix, buf[1024];
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:214: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 *prefix, buf[1024];
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:235: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 *prefix, buf[1024];
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:656: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 errmsg[192];    /* error string to pass to err_msg */
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:944:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char            name[IFNAMSIZ];
data/ganglia-3.7.2/libmetrics/dragonfly/metrics.c:935:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[IFNAMSIZ];
data/ganglia-3.7.2/libmetrics/freebsd/metrics.c:162:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[1024];
data/ganglia-3.7.2/libmetrics/freebsd/metrics.c:1121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[IFNAMSIZ];
data/ganglia-3.7.2/libmetrics/get_ifi_info.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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				*ptr, *buf, lastname[IFNAMSIZ], *cptr;
data/ganglia-3.7.2/libmetrics/get_ifi_info.c:163:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(lastname, ifr->ifr_name, IFNAMSIZ);
data/ganglia-3.7.2/libmetrics/get_ifi_info.c:177:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ifi->ifi_name, ifr->ifr_name, IFI_NAME);
data/ganglia-3.7.2/libmetrics/get_ifi_info.c:181:17:  [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( mtu.ifr_name , ifi->ifi_name, IFI_NAME);
data/ganglia-3.7.2/libmetrics/get_ifi_info.c:197:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in));
data/ganglia-3.7.2/libmetrics/get_ifi_info.c:204:6:  [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(ifi->ifi_brdaddr, sinptr, sizeof(struct sockaddr_in));
data/ganglia-3.7.2/libmetrics/get_ifi_info.c:213:6:  [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(ifi->ifi_dstaddr, sinptr, sizeof(struct sockaddr_in));
data/ganglia-3.7.2/libmetrics/irix/metrics.c:171: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 cpufreq[16];
data/ganglia-3.7.2/libmetrics/irix/metrics.c:175:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     val.uint32 = atoi(cpufreq);
data/ganglia-3.7.2/libmetrics/irix/metrics.c:458: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 pfilename[512];
data/ganglia-3.7.2/libmetrics/irix/metrics.c:478:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 if ((pfd = open("/proc/pinfo", O_RDONLY|O_NONBLOCK)) == -1)
data/ganglia-3.7.2/libmetrics/irix/metrics.c:526: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(pfilename,"/proc/pinfo/");
data/ganglia-3.7.2/libmetrics/irix/metrics.c:528:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         if ((pffd = open(pfilename, O_RDONLY)) == -1)
data/ganglia-3.7.2/libmetrics/linux/metrics.c:67: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 proc_sys_kernel_osrelease[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/libmetrics/linux/metrics.c:70: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 sys_devices_system_cpu[32];
data/ganglia-3.7.2/libmetrics/linux/metrics.c:227:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char if_name[IFNAMSIZ];
data/ganglia-3.7.2/libmetrics/linux/metrics.c:571:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     val.uint32 = atoi ( p );
data/ganglia-3.7.2/libmetrics/linux/metrics.c:1362: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 procline[1024];
data/ganglia-3.7.2/libmetrics/linux/metrics.c:1370:11:  [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).
   mounts=fopen(MOUNTS,"r");
data/ganglia-3.7.2/libmetrics/mingw/metrics.c:48: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 sys_osrelease[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/libmetrics/netbsd/metrics.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 machine_type[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:243: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 osname[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:264: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 *prefix, buf[1024];
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:334: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(&cp_old, &cp_time, CPUSTATES*sizeof(long));
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:365: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(&cp_old, &cp_time, CPUSTATES*sizeof(long));
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:396: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(&cp_old, &cp_time, CPUSTATES*sizeof(long));
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:427: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(&cp_old, &cp_time, CPUSTATES*sizeof(long));
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:478: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(&cp_old, &cp_time, CPUSTATES*sizeof(long));
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:1093:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[IFNAMSIZ];
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:211: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 machine_type[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:229: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 osname[MAX_G_STRING_SIZE];
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:250: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 *prefix, buf[1024];
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:443: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 err_buf[_POSIX2_LINE_MAX];
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:463: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 err_buf[_POSIX2_LINE_MAX];
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:914:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[IFNAMSIZ];
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:488: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(ks_name,"cpu_stat%d",i);
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:667: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[20];
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:1032: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_buf[64];
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:1046:4:  [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(filename_buf, "/proc/");
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:1052:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     if ((fd = open (filename_buf, O_RDONLY)) < 0)
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:1295:11:  [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).
   mounts=fopen(MOUNTS,"r");
data/ganglia-3.7.2/libmetrics/unpifi.h:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char    ifi_name[IFI_NAME];	/* interface name, null terminated */
data/ganglia-3.7.2/gmetad/cmdline.c:101:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE),
data/ganglia-3.7.2/gmetad/cmdline.c:108:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_purpose) > 0)
data/ganglia-3.7.2/gmetad/cmdline.c:111:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_usage) > 0)
data/ganglia-3.7.2/gmetad/cmdline.c:116:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_description) > 0)
data/ganglia-3.7.2/gmetad/cmdline.c:259: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).
  result = (char*)malloc(strlen(s) + 1);
data/ganglia-3.7.2/gmetad/conf.c:29:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    root.stringslen += strlen(root.strings) + 1;
data/ganglia-3.7.2/gmetad/conf.c:156: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).
   key.size = strlen(key.data) + 1;
data/ganglia-3.7.2/gmetad/conf.h:16:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      int umask;
data/ganglia-3.7.2/gmetad/daemon_init.c:45:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
   umask (rrd_umask);
data/ganglia-3.7.2/gmetad/data_thread.c:56: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).
   key.size = strlen( key.data ) + 1;
data/ganglia-3.7.2/gmetad/data_thread.c:153:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                           bytes_read = read(sock->sockfd, buf+read_index, read_available);
data/ganglia-3.7.2/gmetad/export_helpers.c:245:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          nbytes = write (carbon_socket, graphite_msg, strlen(graphite_msg) + 1);
data/ganglia-3.7.2/gmetad/export_helpers.c:271:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      nbytes = sendto (carbon_udp_socket->sockfd, graphite_msg, strlen(graphite_msg), 0,
data/ganglia-3.7.2/gmetad/export_helpers.c:275:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (nbytes != strlen(graphite_msg))
data/ganglia-3.7.2/gmetad/export_helpers.c:298: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(cluster) + strlen(host) + strlen(metric) + 3 > MEMCACHED_MAX_KEY_LENGTH) {
data/ganglia-3.7.2/gmetad/export_helpers.c:298:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(cluster) + strlen(host) + strlen(metric) + 3 > MEMCACHED_MAX_KEY_LENGTH) {
data/ganglia-3.7.2/gmetad/export_helpers.c:298: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).
      if (strlen(cluster) + strlen(host) + strlen(metric) + 3 > MEMCACHED_MAX_KEY_LENGTH) {
data/ganglia-3.7.2/gmetad/export_helpers.c:304:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ( strlen(host) + strlen(metric) + 3 > MEMCACHED_MAX_KEY_LENGTH) {
data/ganglia-3.7.2/gmetad/export_helpers.c:304: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 ( strlen(host) + strlen(metric) + 3 > MEMCACHED_MAX_KEY_LENGTH) {
data/ganglia-3.7.2/gmetad/export_helpers.c:324: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).
   rc = memcached_set(memc, s_path, strlen(s_path), sum, strlen(sum), expiry_time, (uint32_t)0);
data/ganglia-3.7.2/gmetad/export_helpers.c:324:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   rc = memcached_set(memc, s_path, strlen(s_path), sum, strlen(sum), expiry_time, (uint32_t)0);
data/ganglia-3.7.2/gmetad/export_helpers.c:353:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(final, path, PATHSIZE);
data/ganglia-3.7.2/gmetad/export_helpers.c:354:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path_cp, path, PATHSIZE);
data/ganglia-3.7.2/gmetad/export_helpers.c:359: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).
			suffix=offset+(strlen(patrn[i].torepl));// get a pointer to after patrn 
data/ganglia-3.7.2/gmetad/export_helpers.c:362:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(path_cp, final,PATHSIZE); 
data/ganglia-3.7.2/gmetad/export_helpers.c:373:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int hostlen=strlen(host);
data/ganglia-3.7.2/gmetad/export_helpers.c:375:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int sourcelen=strlen(source);		
data/ganglia-3.7.2/gmetad/export_helpers.c:377: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).
    int metriclen=strlen(metric);
data/ganglia-3.7.2/gmetad/export_helpers.c:390:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (gmetad_config.graphite_prefix != NULL && strlen(gmetad_config.graphite_prefix) > 1) {
data/ganglia-3.7.2/gmetad/export_helpers.c:391:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
     strncpy(graphite_msg, gmetad_config.graphite_prefix, PATHSIZE);
data/ganglia-3.7.2/gmetad/export_helpers.c:425:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      i = strlen(graphite_msg);
data/ganglia-3.7.2/gmetad/export_helpers.c:445:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (gmetad_config.graphite_path != NULL && strlen(gmetad_config.graphite_path) > 1) {
data/ganglia-3.7.2/gmetad/export_helpers.c:449:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   	strncpy(graphite_path_cp,gmetad_config.graphite_path,PATHSIZE);
data/ganglia-3.7.2/gmetad/export_helpers.c:460:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(graphite_path_cp,graphite_path_ptr,PATHSIZE);
data/ganglia-3.7.2/gmetad/export_helpers.c:464:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   	if (gmetad_config.graphite_prefix != NULL && strlen(gmetad_config.graphite_prefix) > 1) {
data/ganglia-3.7.2/gmetad/export_helpers.c:465:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
   		strncat(graphite_msg, ".", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:465: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).
   		strncat(graphite_msg, ".", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:466:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
   		strncat(graphite_msg, graphite_path_cp, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:466:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   		strncat(graphite_msg, graphite_path_cp, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:468:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(graphite_msg, graphite_path_cp, PATHSIZE);
data/ganglia-3.7.2/gmetad/export_helpers.c:472:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   	if (gmetad_config.graphite_prefix != NULL && strlen(gmetad_config.graphite_prefix) > 1) {
data/ganglia-3.7.2/gmetad/export_helpers.c:473:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(graphite_msg, ".", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:473:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat(graphite_msg, ".", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:474:8:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
   	   strncat(graphite_msg, sourcecp, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:474:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   	   strncat(graphite_msg, sourcecp, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:476:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
     		strncpy(graphite_msg, sourcecp, PATHSIZE);
data/ganglia-3.7.2/gmetad/export_helpers.c:478:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
      strncat(graphite_msg, ".", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:478: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).
      strncat(graphite_msg, ".", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:479:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(graphite_msg, hostcp, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:479:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncat(graphite_msg, hostcp, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:480:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
   	strncat(graphite_msg, ".", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:480: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).
   	strncat(graphite_msg, ".", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:481:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
   	strncat(graphite_msg, metric, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:481: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).
   	strncat(graphite_msg, metric, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:485:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
	strncat(graphite_msg, " ", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:485: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).
	strncat(graphite_msg, " ", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:486:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  	strncat(graphite_msg, sum, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:486:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  	strncat(graphite_msg, sum, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:487:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
  	strncat(graphite_msg, " ", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:487:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  	strncat(graphite_msg, " ", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:488:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  	strncat(graphite_msg, s_process_time, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:488:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  	strncat(graphite_msg, s_process_time, PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:489:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
  	strncat(graphite_msg, "\n", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:489: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).
  	strncat(graphite_msg, "\n", PATHSIZE-strlen(graphite_msg));
data/ganglia-3.7.2/gmetad/export_helpers.c:491: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).
	graphite_msg[strlen(graphite_msg)+1] = 0;
data/ganglia-3.7.2/gmetad/export_helpers.c:512: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).
    tokens[i] = malloc (strlen (p) + 1);
data/ganglia-3.7.2/gmetad/gmetad.c:126: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 end = e + strlen(s) + 1;
data/ganglia-3.7.2/gmetad/gmetad.c:180:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         tt = in_type_list(type, strlen(type));
data/ganglia-3.7.2/gmetad/gmetad.c:233: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).
         skey.size = strlen(le->val) + 1;
data/ganglia-3.7.2/gmetad/gmetad.c:316: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).
   tt = in_type_list(type, strlen(type));
data/ganglia-3.7.2/gmetad/gmetad.c:433:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         root.stringslen += strlen(root.strings) + 1;
data/ganglia-3.7.2/gmetad/gmetad.c:442:25:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
         rrd_umask = c->umask;
data/ganglia-3.7.2/gmetad/gmetad.c:502:78:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         memcached_connection_pool = memcached_pool(c->memcached_parameters, strlen(c->memcached_parameters));
data/ganglia-3.7.2/gmetad/process_xml.c:94: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).
         xt = in_xml_list (attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:104: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).
                  tt = in_type_list(type, strlen(type));
data/ganglia-3.7.2/gmetad/process_xml.c:116: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 (p) metric->precision = (short int) strlen(p+1);
data/ganglia-3.7.2/gmetad/process_xml.c:181: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).
               xt = in_xml_list (attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:188:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                             realloc(xmldata->sourcename, strlen(name)+1);
data/ganglia-3.7.2/gmetad/process_xml.c:191: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).
                     hashkey.size =  strlen(name) + 1;
data/ganglia-3.7.2/gmetad/process_xml.c:247: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).
               xt = in_xml_list(attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:291: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).
         xt = in_xml_list (attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:304:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   xmldata->sourcename = realloc(xmldata->sourcename, strlen(name)+1);
data/ganglia-3.7.2/gmetad/process_xml.c:307: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).
   hashkey.size =  strlen(name) + 1;
data/ganglia-3.7.2/gmetad/process_xml.c:369: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).
         xt = in_xml_list (attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:418: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).
         xt = in_xml_list (attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:452:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   xmldata->hostname = realloc(xmldata->hostname, strlen(name)+1);
data/ganglia-3.7.2/gmetad/process_xml.c:463: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).
   hashkey.size =  strlen(name) + 1;
data/ganglia-3.7.2/gmetad/process_xml.c:508: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).
         xt = in_xml_list (attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:592: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).
         xt = in_xml_list (attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:638:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         xt = in_xml_list(attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:646: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).
                  hashkey.size =  strlen(name) + 1;
data/ganglia-3.7.2/gmetad/process_xml.c:669: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).
   tt = in_type_list(type, strlen(type));
data/ganglia-3.7.2/gmetad/process_xml.c:846: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).
    hashkey.size =  strlen(name) + 1;
data/ganglia-3.7.2/gmetad/process_xml.c:870: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).
        xt = in_xml_list(attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:897: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).
        hashkey.size =  strlen(name) + 1;
data/ganglia-3.7.2/gmetad/process_xml.c:918: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).
            if ( strlen(new_name) == 10 && !strcasecmp(new_name, SPOOF_HOST) )
data/ganglia-3.7.2/gmetad/process_xml.c:986:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         xt = in_xml_list(attr[i], strlen(attr[i]));
data/ganglia-3.7.2/gmetad/process_xml.c:994: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).
                  hashkey.size =  strlen(name) + 1;
data/ganglia-3.7.2/gmetad/process_xml.c:1023:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         tt = in_type_list(type, strlen(type));
data/ganglia-3.7.2/gmetad/process_xml.c:1063:53:  [1] (buffer) strlen:
  Does not handle 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( !( xt = in_xml_list ( (char *)attr[i], strlen(attr[i]))) )
data/ganglia-3.7.2/gmetad/process_xml.c:1095: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).
   xt = in_xml_list ((char *) el, strlen(el));
data/ganglia-3.7.2/gmetad/process_xml.c:1167: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).
   tt = in_type_list(type, strlen(type));
data/ganglia-3.7.2/gmetad/process_xml.c:1243: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).
         hashkey.size = strlen(xmldata->sourcename) + 1;
data/ganglia-3.7.2/gmetad/process_xml.c:1286: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).
         hashkey.size = strlen(xmldata->sourcename) + 1;
data/ganglia-3.7.2/gmetad/process_xml.c:1323:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if(! (xt = in_xml_list((char*) el, strlen(el))) )
data/ganglia-3.7.2/gmetad/process_xml.c:1377:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   rval = XML_Parse( xml_parser, buf, strlen(buf), 1 );
data/ganglia-3.7.2/gmetad/rrd_helpers.c:90: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).
   cmd = calloc(1, strlen(rrd) + 128);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:96:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   l = strlen(cmd);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:158:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               r = read(c, buf, sizeof(buf));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:180:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               while (l > 0 && (str = memchr(str, '\n', strlen(str))) != NULL)
data/ganglia-3.7.2/gmetad/rrd_helpers.c:370:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(rrd, gmetad_config.rrd_rootdir, PATHSIZE);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:373:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
      strncat(rrd, "/", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:373:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncat(rrd, "/", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:374:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(rrd, source, PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:374: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).
      strncat(rrd, source, PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:379:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
      strncat(rrd, "/", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:379:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncat(rrd, "/", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:380:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      i = strlen(rrd);
data/ganglia-3.7.2/gmetad/rrd_helpers.c:381:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(rrd, host, PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:381: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).
      strncat(rrd, host, PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:390:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
      strncat(rrd, "/", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:390:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncat(rrd, "/", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:391:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(rrd, summary_dir, PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:391: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).
      strncat(rrd, summary_dir, PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:395:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
   strncat(rrd, "/", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:395: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).
   strncat(rrd, "/", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:396:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
   strncat(rrd, metric, PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:396:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   strncat(rrd, metric, PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:397:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
   strncat(rrd, ".rrd", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/rrd_helpers.c:397:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   strncat(rrd, ".rrd", PATHSIZE-strlen(rrd));
data/ganglia-3.7.2/gmetad/server.c:185: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).
   len = strlen(buf);
data/ganglia-3.7.2/gmetad/server.c:213: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).
   tt = in_type_list(type, strlen(type));
data/ganglia-3.7.2/gmetad/server.c:579: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).
   pathend = path + strlen(path);
data/ganglia-3.7.2/gmetad/server.c:596:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy(element, p, len);
data/ganglia-3.7.2/gmetad/server.c:1017: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).
   len = strlen(buf);
data/ganglia-3.7.2/gmetad/server.c:1047: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).
   pathlen = strlen(path);
data/ganglia-3.7.2/gmetad/server.c:1058: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).
         pathlen = strlen(path + 4);
data/ganglia-3.7.2/gmetad/server.c:1103:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         justread = read(fd, ptr, nleft);
data/ganglia-3.7.2/gmetad/server.c:1235:17:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                strcpy(request, "/");
data/ganglia-3.7.2/gmetric/cmdline.c:154:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE),
data/ganglia-3.7.2/gmetric/cmdline.c:161:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_purpose) > 0)
data/ganglia-3.7.2/gmetric/cmdline.c:164:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_usage) > 0)
data/ganglia-3.7.2/gmetric/cmdline.c:169:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_description) > 0)
data/ganglia-3.7.2/gmetric/cmdline.c:353: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).
  result = (char*)malloc(strlen(s) + 1);
data/ganglia-3.7.2/gmond/cmdline.c:128:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE),
data/ganglia-3.7.2/gmond/cmdline.c:135:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_purpose) > 0)
data/ganglia-3.7.2/gmond/cmdline.c:138:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_usage) > 0)
data/ganglia-3.7.2/gmond/cmdline.c:143:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_description) > 0)
data/ganglia-3.7.2/gmond/cmdline.c:302: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).
  result = (char*)malloc(strlen(s) + 1);
data/ganglia-3.7.2/gmond/g25_config.c:11: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).
  char *result = (char*)malloc(strlen(s) + 1);
data/ganglia-3.7.2/gmond/gmond.c:944:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(metric_name) < 1) return;
data/ganglia-3.7.2/gmond/gmond.c:946: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).
    while (p < (metric_name + strlen(metric_name))) {
data/ganglia-3.7.2/gmond/gmond.c:975: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).
        name_len = strlen(firstName);
data/ganglia-3.7.2/gmond/gmond.c:977:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buff, firstName, name_len + 1);
data/ganglia-3.7.2/gmond/gmond.c:1022:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      spoof_info_len = strlen(metric_id->host);
data/ganglia-3.7.2/gmond/gmond.c:1024:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buff, metric_id->host, spoof_info_len + 1);
data/ganglia-3.7.2/gmond/gmond.c:1692: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).
  apr_size_t len = strlen(DTD);
data/ganglia-3.7.2/gmond/gmond.c:1873:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
              strncat(dst, "&amp;", max_dst_len);
data/ganglia-3.7.2/gmond/gmond.c:1877:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
              strncat(dst, "&lt;", max_dst_len);
data/ganglia-3.7.2/gmond/gmond.c:1881:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
              strncat(dst, "&gt;", max_dst_len);
data/ganglia-3.7.2/gmond/gmond.c:1885:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
              strncat(dst, "&quot;", max_dst_len);
data/ganglia-3.7.2/gmond/gmond.c:1889:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
              strncat(dst, "&apos;", max_dst_len);
data/ganglia-3.7.2/gmond/gmond.c:2686:63:  [1] (buffer) strlen:
  Does not handle 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((pcre_rc = pcre_exec(pcre_re, NULL, key, strlen(key), 0, 0, pcre_ovector, PCRE_OVECCOUNT)) < 1)
data/ganglia-3.7.2/gmond/gmond.c:2711:53:  [1] (buffer) strlen:
  Does not handle 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((ptrs = apr_pcalloc(p, strlen(title_tmpl) * sizeof(struct iovec))) == NULL)
data/ganglia-3.7.2/gmond/gmond.c:2791: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).
                  apr_ssize_t klen = strlen(name);
data/ganglia-3.7.2/gmond/modules/cpu/mod_multicpu.c:113: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).
    for (i=1; strlen(p) > 0;) {
data/ganglia-3.7.2/gmond/modules/cpu/mod_multicpu.c:138:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (name, metric, numIndex);
data/ganglia-3.7.2/gmond/modules/cpu/mod_multicpu.c:166: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).
        while (strlen(p) > 0) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:101:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(modname_bfr, fname, p-fname);
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:157:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (void)hv_store(params_hash, name, strlen(name), sv_value, 0);
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:181:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if (!strncpy(minfo->mname, value, sizeof(minfo->mname))) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:192:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if (!strncpy(minfo->pcb, value, sizeof(minfo->pcb))) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:210:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if (!strncpy(minfo->vtype, value, sizeof(minfo->vtype))) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:220:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if (!strncpy(minfo->units, value, sizeof(minfo->units))) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:230:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if (!strncpy(minfo->slope, value, sizeof(minfo->slope))) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:240:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if (!strncpy(minfo->format, value, sizeof(minfo->format))) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:250:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if (!strncpy(minfo->desc, value, sizeof(minfo->desc))) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:260:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            if (!strncpy(minfo->groups, value, sizeof(minfo->groups))) {
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:261:17:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                strcpy (minfo->groups, "");
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:414: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).
        size_t path_len = strlen(path) + strlen(modname) + 5;
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:414:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t path_len = strlen(path) + strlen(modname) + 5;
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:416:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        modpath = strncpy(modpath, path, path_len);
data/ganglia-3.7.2/gmond/modules/perl/mod_perl.c:417:19:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        modpath = strcat(modpath, "/");
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:110:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(modname_bfr, fname, p-fname);
data/ganglia-3.7.2/gmond/modules/python/mod_python.c:399:17:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                strcpy (minfo->groups, "");
data/ganglia-3.7.2/gmond/sflow.c:1270: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).
    mprefix_len = strlen(mprefix);
data/ganglia-3.7.2/gstat/cmdline.c:121:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE),
data/ganglia-3.7.2/gstat/cmdline.c:128:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_purpose) > 0)
data/ganglia-3.7.2/gstat/cmdline.c:131:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_usage) > 0)
data/ganglia-3.7.2/gstat/cmdline.c:136:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_description) > 0)
data/ganglia-3.7.2/gstat/cmdline.c:287: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).
  result = (char*)malloc(strlen(s) + 1);
data/ganglia-3.7.2/lib/apr_net.c:70:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove( addr, addr+7, strlen(addr+7) + 1);/* +1 for \0 */
data/ganglia-3.7.2/lib/apr_net.c:295:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(ifreq->ifr_name, ifname, IFNAMSIZ);
data/ganglia-3.7.2/lib/apr_net.c:378:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ifreq->ifr_name, ifname, IFNAMSIZ);
data/ganglia-3.7.2/lib/apr_net.c:417:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(ifreq->ifr_name, ifname, IFNAMSIZ);
data/ganglia-3.7.2/lib/dotconf.c:136: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).
	eob = cp1 + strlen(str) + 1;
data/ganglia-3.7.2/lib/dotconf.c:176:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
					strncat(cp2, env_value, eos - cp2);
data/ganglia-3.7.2/lib/dotconf.c:177: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).
					cp2 += strlen(env_value);
data/ganglia-3.7.2/lib/dotconf.c:181:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
					strncat(cp2, env_default, eos - cp2);
data/ganglia-3.7.2/lib/dotconf.c:182: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).
					cp2 += strlen(env_default);
data/ganglia-3.7.2/lib/dotconf.c:298: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).
	length = strlen(cp1);
data/ganglia-3.7.2/lib/dotconf.c:311: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).
		length = strlen(cp1);
data/ganglia-3.7.2/lib/dotconf.c:494: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).
	eob = args + strlen(args);
data/ganglia-3.7.2/lib/dotconf.c:610: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).
	eob = cp1 + strlen(cp1);
data/ganglia-3.7.2/lib/dotconf.c:775: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).
	int wildcards_len = strlen(WILDCARDS);
data/ganglia-3.7.2/lib/dotconf.c:842:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(filename);
data/ganglia-3.7.2/lib/dotconf.c:873:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(*path,filename,tmp_count);
data/ganglia-3.7.2/lib/dotconf.c:876:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(*pre,(tmp+(found_path?1:0)),
data/ganglia-3.7.2/lib/dotconf.c:900:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len_1 = strlen(s1);
data/ganglia-3.7.2/lib/dotconf.c:901:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len_2 = strlen(s2);
data/ganglia-3.7.2/lib/dotconf.c:919:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int dir_name_len = strlen(dir_name);
data/ganglia-3.7.2/lib/dotconf.c:920:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int pre_len = strlen(pre);
data/ganglia-3.7.2/lib/dotconf.c:921:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int ext_len = strlen(ext);
data/ganglia-3.7.2/lib/dotconf.c:948:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int dir_name_len = strlen(dir_name);
data/ganglia-3.7.2/lib/dotconf.c:949:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int pre_len = strlen(pre);
data/ganglia-3.7.2/lib/dotconf.c:950:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int ext_len = strlen(ext);
data/ganglia-3.7.2/lib/dotconf.c:999: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).
	pre_len = strlen(pre);
data/ganglia-3.7.2/lib/dotconf.c:1009: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).
				name_len = strlen(dirptr->d_name);
data/ganglia-3.7.2/lib/dotconf.c:1010: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).
				new_path_len = strlen(path) + name_len + strlen(ext) + 1;
data/ganglia-3.7.2/lib/dotconf.c:1010:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				new_path_len = strlen(path) + name_len + strlen(ext) + 1;
data/ganglia-3.7.2/lib/dotconf.c:1038:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(new_pre,dirptr->d_name,(name_len > pre_len)?(pre_len+1):pre_len);
data/ganglia-3.7.2/lib/dotconf.c:1142: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).
	pre_len = strlen(pre);
data/ganglia-3.7.2/lib/dotconf.c:1159:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new_ext,s_ext,t_ext_count);
data/ganglia-3.7.2/lib/dotconf.c:1173: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).
				name_len = strlen(dirptr->d_name);
data/ganglia-3.7.2/lib/dotconf.c:1174: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).
				new_path_len = strlen(path) + name_len + strlen(s_ext) + 1;
data/ganglia-3.7.2/lib/dotconf.c:1174:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				new_path_len = strlen(path) + name_len + strlen(s_ext) + 1;
data/ganglia-3.7.2/lib/dotconf.c:1218:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(new_pre,dirptr->d_name,(sub_count+t_ext_count));
data/ganglia-3.7.2/lib/dotconf.c:1316: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).
		inclen = strlen(cmd->configfile->includepath);
data/ganglia-3.7.2/lib/dotconf.c:1317:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (( len = (strlen(cmd->data.str) + inclen + 1)) == CFG_MAX_FILENAME)
data/ganglia-3.7.2/lib/error_msg.c:144: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).
   n = strlen (buf);
data/ganglia-3.7.2/lib/error_msg.c:150:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
   strcat (buf, "\n");
data/ganglia-3.7.2/lib/file.c:49:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read:
data/ganglia-3.7.2/lib/file.c:50:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   read_len = read(fd, db, buflen);
data/ganglia-3.7.2/lib/file.c:54:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            goto read;
data/ganglia-3.7.2/lib/file.c:69:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            goto read;
data/ganglia-3.7.2/lib/ganglia.c:27:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy( cluster->name, attr[1], 256 );
data/ganglia-3.7.2/lib/ganglia.c:57:22:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                     strncpy(cluster->host->name, attr[1], n);
data/ganglia-3.7.2/lib/ganglia.c:60:22:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                     strncpy(cluster->host->domain, p, GEXEC_HOST_STRING_LEN);
data/ganglia-3.7.2/lib/ganglia.c:65:22:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                     strncpy(cluster->host->name, attr[1], GEXEC_HOST_STRING_LEN);
data/ganglia-3.7.2/lib/ganglia.c:303:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         SYS_CALL( bytes_read, read(gmond_socket->sockfd, buff, BUFSIZ));
data/ganglia-3.7.2/lib/getopt.c:237:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# if (!defined __STDC__ || !__STDC__) && !defined strlen
data/ganglia-3.7.2/lib/getopt.c:240:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
extern int strlen (const char *);
data/ganglia-3.7.2/lib/getopt.c:431:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/ganglia-3.7.2/lib/getopt.c:659:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		== (unsigned int) strlen (p->name))
data/ganglia-3.7.2/lib/getopt.c:702:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/ganglia-3.7.2/lib/getopt.c:764:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/ganglia-3.7.2/lib/getopt.c:797:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/ganglia-3.7.2/lib/getopt.c:802:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nextchar += strlen (nextchar);
data/ganglia-3.7.2/lib/getopt.c:979:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/ganglia-3.7.2/lib/getopt.c:1018:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/ganglia-3.7.2/lib/getopt.c:1055:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/ganglia-3.7.2/lib/getopt.c:1086:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/ganglia-3.7.2/lib/getopt.c:1090:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/ganglia-3.7.2/lib/libgmond.c:620:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(tail)==0)
data/ganglia-3.7.2/lib/libgmond.c:803: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).
        size_t fname_len = strlen(fname);
data/ganglia-3.7.2/lib/libgmond.c:820: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 character.
            strncpy (path, ".", 1);
data/ganglia-3.7.2/lib/libgmond.c:824:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (path, fname, idx - fname);
data/ganglia-3.7.2/lib/llist.c:87: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).
   len = strlen(s1);
data/ganglia-3.7.2/lib/my_inet_ntop.c:18:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   return strncpy( dst, inet_ntoa( *(struct in_addr *)src ), cnt );
data/ganglia-3.7.2/lib/readdir.c:87: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).
    filespec = malloc(strlen(dir) + 2 + 1);
data/ganglia-3.7.2/lib/readdir.c:89: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).
    index = strlen(filespec) - 1;
data/ganglia-3.7.2/lib/readdir.c:124:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dp->dent.d_name, dp->fileinfo.name, _MAX_FNAME);
data/ganglia-3.7.2/lib/readdir.c:126: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).
    dp->dent.d_reclen = (unsigned short)strlen(dp->dent.d_name);
data/ganglia-3.7.2/lib/update_pidfile.c:49:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  prev_umask = umask (0112);
data/ganglia-3.7.2/lib/update_pidfile.c:61:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask (prev_umask);
data/ganglia-3.7.2/libmetrics/aix/metrics.c:244:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( val.str, c.description, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/aix/metrics.c:260:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( val.str, uts.sysname, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/aix/metrics.c:274:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, oslevel, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/cygwin/metrics.c:152:7:  [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(sys_osname, "unknown", MAX_G_STRING_SIZE);
data/ganglia-3.7.2/libmetrics/cygwin/metrics.c:153:7:  [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(sys_osrelease, "unknown", MAX_G_STRING_SIZE);
data/ganglia-3.7.2/libmetrics/cygwin/metrics.c:155:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(sys_osname, u.sysname, MAX_G_STRING_SIZE);
data/ganglia-3.7.2/libmetrics/cygwin/metrics.c:157:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(sys_osrelease, u.release, MAX_G_STRING_SIZE);
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:201:9:  [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( val.str, "PowerPC", MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:203:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, buf, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:222:9:  [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( val.str, "Darwin", MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:224:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, buf, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:243:9:  [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( val.str, "Unknown", MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:245:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, buf, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:1311:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(strptr, listptr[i], 32);
data/ganglia-3.7.2/libmetrics/darwin/metrics.c:1312: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).
                strptr += strlen(listptr[i]); 
data/ganglia-3.7.2/libmetrics/dragonfly/metrics.c:902: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).
		slen = strlen(listptr[i]) + 1;
data/ganglia-3.7.2/libmetrics/dragonfly/metrics.c:915: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).
		strptr += strlen(listptr[i]);
data/ganglia-3.7.2/libmetrics/freebsd/metrics.c:1081: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).
		slen += strlen(listptr[i]);
data/ganglia-3.7.2/libmetrics/freebsd/metrics.c:1098: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).
		strptr += strlen(listptr[i]);
data/ganglia-3.7.2/libmetrics/hpux/metrics.c:170:7:  [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( val.str, "unknown", MAX_G_STRING_SIZE);
data/ganglia-3.7.2/libmetrics/hpux/metrics.c:173:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( val.str, uts.machine , MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/hpux/metrics.c:187:7:  [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( val.str, "HP-UX", MAX_G_STRING_SIZE);
data/ganglia-3.7.2/libmetrics/hpux/metrics.c:190:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( val.str, uts.sysname , MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/hpux/metrics.c:204:7:  [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( val.str, "unknown", MAX_G_STRING_SIZE);
data/ganglia-3.7.2/libmetrics/hpux/metrics.c:208:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( val.str, uts.release , MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/hpux/metrics.c:209:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat ( val.str, "-");
data/ganglia-3.7.2/libmetrics/linux/metrics.c:32: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).
#define OSNAME_LEN strlen(OSNAME)
data/ganglia-3.7.2/libmetrics/linux/metrics.c:182:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(vlan_args.device1, if_name, sizeof(vlan_args.device1));
data/ganglia-3.7.2/libmetrics/linux/metrics.c:243:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                  strncpy(if_name,src,IFNAMSIZ);
data/ganglia-3.7.2/libmetrics/mingw/metrics.c:114:7:  [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(sys_osrelease, "unknown", MAX_G_STRING_SIZE);
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:233:9:  [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( val.str, "x86", MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:235:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, machine_type, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:251:9:  [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( val.str, "NetBSD", MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:253:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, osname, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:272:9:  [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( val.str, "Unknown", MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:274:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, buf, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:1060: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).
		slen = strlen(listptr[i]) + 1;
data/ganglia-3.7.2/libmetrics/netbsd/metrics.c:1073: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).
		strptr += strlen(listptr[i]);
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:219:9:  [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( val.str, "x86", MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:221:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, machine_type, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:237:9:  [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( val.str, "OpenBSD", MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:239:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, osname, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:258:9:  [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( val.str, "Unknown", MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:260:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, buf, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:881: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).
		slen = strlen(listptr[i]) + 1;
data/ganglia-3.7.2/libmetrics/openbsd/metrics.c:894: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).
		strptr += strlen(listptr[i]);
data/ganglia-3.7.2/libmetrics/osf/metrics.c:351:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, metriclist.machine_type, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/osf/metrics.c:362:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, metriclist.os_name, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/osf/metrics.c:373:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, metriclist.os_release, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:920:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, metriclist.machine_type, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:929:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, unamedata.sysname, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:938:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy( val.str, unamedata.release, MAX_G_STRING_SIZE );
data/ganglia-3.7.2/libmetrics/solaris/metrics.c:1055:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
     if (read (fd, &psinfo, sizeof(psinfo_t)) != sizeof(psinfo_t)) {

ANALYSIS SUMMARY:

Hits = 680
Lines analyzed = 42398 in approximately 1.14 seconds (37332 lines/second)
Physical Source Lines of Code (SLOC) = 31169
Hits@level = [0] 350 [1] 318 [2] 272 [3]  20 [4]  69 [5]   1
Hits@level+ = [0+] 1030 [1+] 680 [2+] 362 [3+]  90 [4+]  70 [5+]   1
Hits/KSLOC@level+ = [0+] 33.0457 [1+] 21.8165 [2+] 11.6141 [3+] 2.88748 [4+] 2.24582 [5+] 0.0320832
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.