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/gkrellm-2.3.10/server/win32-plugin.c
Examining data/gkrellm-2.3.10/server/utils.c
Examining data/gkrellm-2.3.10/server/sysdeps-unix.c
Examining data/gkrellm-2.3.10/server/win32-plugin.h
Examining data/gkrellm-2.3.10/server/win32-resource.h
Examining data/gkrellm-2.3.10/server/plugins.c
Examining data/gkrellm-2.3.10/server/win32-libgkrellmd.c
Examining data/gkrellm-2.3.10/server/main.c
Examining data/gkrellm-2.3.10/server/mail.c
Examining data/gkrellm-2.3.10/server/gkrellmd.h
Examining data/gkrellm-2.3.10/server/gkrellmd-private.h
Examining data/gkrellm-2.3.10/server/monitor.c
Examining data/gkrellm-2.3.10/src/panel.c
Examining data/gkrellm-2.3.10/src/mem.c
Examining data/gkrellm-2.3.10/src/battery.c
Examining data/gkrellm-2.3.10/src/gui.c
Examining data/gkrellm-2.3.10/src/main.c
Examining data/gkrellm-2.3.10/src/deprecated.c
Examining data/gkrellm-2.3.10/src/gkrellm.h
Examining data/gkrellm-2.3.10/src/clock.c
Examining data/gkrellm-2.3.10/src/alerts.c
Examining data/gkrellm-2.3.10/src/disk.c
Examining data/gkrellm-2.3.10/src/client.c
Examining data/gkrellm-2.3.10/src/plugins.c
Examining data/gkrellm-2.3.10/src/gkrellm-public-proto.h
Examining data/gkrellm-2.3.10/src/utils.c
Examining data/gkrellm-2.3.10/src/mail.c
Examining data/gkrellm-2.3.10/src/sysdeps/netbsd.c
Examining data/gkrellm-2.3.10/src/sysdeps/sensors-common.c
Examining data/gkrellm-2.3.10/src/sysdeps/solaris.c
Examining data/gkrellm-2.3.10/src/sysdeps/win32.c
Examining data/gkrellm-2.3.10/src/sysdeps/darwin.c
Examining data/gkrellm-2.3.10/src/sysdeps/freebsd.c
Examining data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c
Examining data/gkrellm-2.3.10/src/sysdeps/openbsd.c
Examining data/gkrellm-2.3.10/src/sysdeps/bsd-net-open.c
Examining data/gkrellm-2.3.10/src/sysdeps/bsd-common.c
Examining data/gkrellm-2.3.10/src/sysdeps/dragonfly.c
Examining data/gkrellm-2.3.10/src/sysdeps/gtop.c
Examining data/gkrellm-2.3.10/src/sysdeps/linux.c
Examining data/gkrellm-2.3.10/src/uptime.c
Examining data/gkrellm-2.3.10/src/hostname.c
Examining data/gkrellm-2.3.10/src/inet.c
Examining data/gkrellm-2.3.10/src/pixops.c
Examining data/gkrellm-2.3.10/src/win32-plugin.h
Examining data/gkrellm-2.3.10/src/winops-win32.c
Examining data/gkrellm-2.3.10/src/win32-resource.h
Examining data/gkrellm-2.3.10/src/gkrellm-sysdeps.h
Examining data/gkrellm-2.3.10/src/krell.c
Examining data/gkrellm-2.3.10/src/base64.c
Examining data/gkrellm-2.3.10/src/win32-plugin.c
Examining data/gkrellm-2.3.10/src/fs.c
Examining data/gkrellm-2.3.10/src/net.c
Examining data/gkrellm-2.3.10/src/winops-x11.c
Examining data/gkrellm-2.3.10/src/sysdeps-unix.c
Examining data/gkrellm-2.3.10/src/cpu.c
Examining data/gkrellm-2.3.10/src/proc.c
Examining data/gkrellm-2.3.10/src/win32-libgkrellm.c
Examining data/gkrellm-2.3.10/src/inet.h
Examining data/gkrellm-2.3.10/src/md5.h
Examining data/gkrellm-2.3.10/src/chart.c
Examining data/gkrellm-2.3.10/src/winops-gtk-mac.c
Examining data/gkrellm-2.3.10/src/config.c
Examining data/gkrellm-2.3.10/src/sensors.c
Examining data/gkrellm-2.3.10/src/gkrellm-private.h
Examining data/gkrellm-2.3.10/src/md5c.c
Examining data/gkrellm-2.3.10/shared/log-private.h
Examining data/gkrellm-2.3.10/shared/log.h
Examining data/gkrellm-2.3.10/shared/log.c

FINAL RESULTS:

data/gkrellm-2.3.10/src/battery.c:923: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(item1, item);
data/gkrellm-2.3.10/src/client.c:164:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	sscanf(line, "%d %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64, &n, &user, &nice, &sys, &idle);
data/gkrellm-2.3.10/src/client.c:314:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	n = sscanf(line, "%s %31s %31s %31s", name, s1, s2, s3);
data/gkrellm-2.3.10/src/client.c:439:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	sscanf(line, "%31s %" PRIu64 " %" PRIu64, name, &rx, &tx);
data/gkrellm-2.3.10/src/client.c:506:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(line, "%s %d", name, &net_timer->up_time);
data/gkrellm-2.3.10/src/client.c:715:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	sscanf(line, "%" PRIu64 "%" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64,
data/gkrellm-2.3.10/src/client.c:822:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		sscanf(line,
data/gkrellm-2.3.10/src/config.c:1169: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(arg, style_name);
data/gkrellm-2.3.10/src/disk.c:993:12:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		else if (sscanf(item, "%s %[^\n]", name, item1) == 2)
data/gkrellm-2.3.10/src/fs.c:521:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, sizeof(buf), close_cdrom_command,
data/gkrellm-2.3.10/src/fs.c:558:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, sizeof(buf), eject_cdrom_command,
data/gkrellm-2.3.10/src/fs.c:606:31:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if ((fs->launch_mount.pipe = popen(buf, "r")) == NULL)
data/gkrellm-2.3.10/src/gui.c:1331: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(buf, s);
data/gkrellm-2.3.10/src/hostname.c:143: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(d, only_vowels ? s : s + 1);
data/gkrellm-2.3.10/src/mail.c:2751:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	n = sscanf(arg, "%s %s %s %s", parms[0], parms[1], parms[2], parms[3]);
data/gkrellm-2.3.10/src/net.c:210:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (sscanf(s, "%s", buf) == 1)
data/gkrellm-2.3.10/src/net.c:427: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(name, net->name);
data/gkrellm-2.3.10/src/sensors.c:468:11:  [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.
				len = snprintf(buf, size, fmt, sensor->value);
data/gkrellm-2.3.10/src/sensors.c:1259: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, sizeof(buf), fmt, v);
data/gkrellm-2.3.10/src/sysdeps/bsd-common.c:364:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	n = system("hdiutil info > /dev/null 2>&1");
data/gkrellm-2.3.10/src/sysdeps/bsd-common.c:387:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	n = system("cdcontrol quit > /dev/null 2>&1");
data/gkrellm-2.3.10/src/sysdeps/bsd-common.c:411:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	n = system("eject -n > /dev/null 2>&1");
data/gkrellm-2.3.10/src/sysdeps/darwin.c:715: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 (fname, dp->d_name);
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:1081:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(id_name, "%s%3s", "temp", dentry->d_name + 3);
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:1125:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(id_name, "%s%d", "fan", id);
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:1137:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(id_name, "%s%d", "in", id);
data/gkrellm-2.3.10/src/sysdeps/linux.c:171:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			n = sscanf(buf,
data/gkrellm-2.3.10/src/sysdeps/linux.c:524:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(name, "%s%c", dm->name, suffix);
data/gkrellm-2.3.10/src/sysdeps/linux.c:604: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(disk, partition);
data/gkrellm-2.3.10/src/sysdeps/linux.c:623:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(disk, "%s%c", dm->name, dm->suffix_base + unit);
data/gkrellm-2.3.10/src/sysdeps/linux.c:625:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(partition, "%s%d", disk, minor);
data/gkrellm-2.3.10/src/sysdeps/linux.c:746:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(sysfspath, "/sys/block/%s/stat", disk);
data/gkrellm-2.3.10/src/sysdeps/linux.c:748:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(sysfspath, "/sys/block/%s/%s/stat", disk, part);
data/gkrellm-2.3.10/src/sysdeps/linux.c:1147:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
					&& sscanf(s, "%" PRIu64, &ll) == 1
data/gkrellm-2.3.10/src/sysdeps/linux.c:1155:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
					&& sscanf(s, "%" PRIu64, &ll) == 1
data/gkrellm-2.3.10/src/sysdeps/linux.c:1291:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	sscanf(buf,"%" PRIu64, mint);
data/gkrellm-2.3.10/src/sysdeps/linux.c:1315:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
				sscanf(buf + 5,
data/gkrellm-2.3.10/src/sysdeps/linux.c:1332:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
				sscanf(buf + 6,"%" PRIu64 " %" PRIu64,
data/gkrellm-2.3.10/src/sysdeps/linux.c:1588:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	n = system("eject -d > /dev/null 2>&1");
data/gkrellm-2.3.10/src/sysdeps/linux.c:1636:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!access(path, F_OK))
data/gkrellm-2.3.10/src/sysdeps/linux.c:1652:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!access(info, F_OK))
data/gkrellm-2.3.10/src/sysdeps/linux.c:1978:2:  [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 (sysentry, sp->sysdir);
data/gkrellm-2.3.10/src/sysdeps/linux.c:2118:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!access (sysdir, F_OK | R_OK))
data/gkrellm-2.3.10/src/sysdeps/linux.c:4131:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(pbuf, sizeof(pbuf), WINDFARM_DIR, cnt++);
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:424:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(base_name, "%32s", info.desc);
data/gkrellm-2.3.10/src/sysdeps/openbsd.c:410:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "%s%c", _("Disk"), 'A' + i);
data/gkrellm-2.3.10/src/sysdeps/solaris.c:365:17:  [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(name_to_major->name, name);
data/gkrellm-2.3.10/src/sysdeps/solaris.c:382: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(name_to_major.name, devname);
data/gkrellm-2.3.10/src/sysdeps/solaris.c:397: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(devname, name_to_major.name);
data/gkrellm-2.3.10/src/sysdeps/solaris.c:460:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        if (sprintf(devices_path, "/devices%s:c,raw", phys_path) <= 0) {
data/gkrellm-2.3.10/src/sysdeps/solaris.c:539:14:  [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(drive->name, ksp->ks_name);
data/gkrellm-2.3.10/src/utils.c:285: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.
	return snprintf(buf, buflen, tbl[i].format, size / tbl[i].divisor);
data/gkrellm-2.3.10/server/mail.c:575:40:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
		mbox->path = g_strdup_printf("%s%s", g_get_home_dir(),
data/gkrellm-2.3.10/server/main.c:801:26:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
	_GK.homedir = (gchar *) g_get_home_dir();
data/gkrellm-2.3.10/src/mail.c:2842:12:  [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 ((s = getenv("MAIL")) == NULL)
data/gkrellm-2.3.10/src/mail.c:2843:13:  [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 ((s = getenv("USER")) != NULL)
data/gkrellm-2.3.10/src/plugins.c:1300:3:  [3] (random) srandom:
  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.
		srandom((unsigned int) time(0));
data/gkrellm-2.3.10/src/plugins.c:1305:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		i = (gint) random();
data/gkrellm-2.3.10/src/utils.c:217:22:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
	homedir = (gchar *) g_get_home_dir();
data/gkrellm-2.3.10/server/mail.c:142: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(separator,"--");
data/gkrellm-2.3.10/server/mail.c:144: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(&separator[seplen+2],"--");
data/gkrellm-2.3.10/server/mail.c:161:6:  [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(path, "r");
data/gkrellm-2.3.10/server/mail.c:202:6:  [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(path, "rb");
data/gkrellm-2.3.10/server/mail.c:451:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((f = fopen(mbox->path, "r")) == NULL)
data/gkrellm-2.3.10/server/main.c:151: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.
	const char *p_buf[1];
data/gkrellm-2.3.10/server/main.c:203:6:  [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(_GK.pidfile, "w");
data/gkrellm-2.3.10/server/main.c:299: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		addrbuf[NI_MAXHOST];
data/gkrellm-2.3.10/server/main.c:382:2:  [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(&ss, res->ai_addr, res->ai_addrlen);
data/gkrellm-2.3.10/server/main.c:447: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 hostbuf[NI_MAXHOST], addrbuf[NI_MAXHOST];
data/gkrellm-2.3.10/server/main.c:617: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).
		_GK.update_HZ = atoi(arg);
data/gkrellm-2.3.10/server/main.c:619:21:  [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).
		_GK.server_port = atoi(arg);
data/gkrellm-2.3.10/server/main.c:623:21:  [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).
		_GK.max_clients = atoi(arg);
data/gkrellm-2.3.10/server/main.c:632: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).
		_GK.io_timeout = atoi(arg);
data/gkrellm-2.3.10/server/main.c:634:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		_GK.reconnect_timeout = atoi(arg);
data/gkrellm-2.3.10/server/main.c:636:21:  [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).
		_GK.fs_interval = atoi(arg);
data/gkrellm-2.3.10/server/main.c:638:22:  [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).
		_GK.nfs_interval = atoi(arg);
data/gkrellm-2.3.10/server/main.c:640: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).
		_GK.inet_interval = atoi(arg);
data/gkrellm-2.3.10/server/main.c:642: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).
		_GK.mbmon_port = atoi(arg);
data/gkrellm-2.3.10/server/main.c:1098:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1)
data/gkrellm-2.3.10/server/monitor.c:746: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		addrbuf[NI_MAXHOST];
data/gkrellm-2.3.10/server/monitor.c:769: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(&sin6.sin6_addr, &tcp->remote_addr6,
data/gkrellm-2.3.10/server/monitor.c:810: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(&sin6.sin6_addr, &tcp->remote_addr6,
data/gkrellm-2.3.10/server/sysdeps-unix.c:98:3:  [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(buf, "unknown");
data/gkrellm-2.3.10/server/sysdeps-unix.c:199: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(&s.sin_addr.s_addr, he->h_addr, he->h_length);
data/gkrellm-2.3.10/src/client.c:615: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(&tcp.remote_addr6,
data/gkrellm-2.3.10/src/client.c:1699:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			server_time.tm_sec = atoi(line + 2);
data/gkrellm-2.3.10/src/client.c:1897: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(&s.sin_addr.s_addr, addr->h_addr, addr->h_length);
data/gkrellm-2.3.10/src/config.c:415: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).
		style->krell_yoff = atoi(value);
data/gkrellm-2.3.10/src/config.c:421:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		style->krell_x_hot = atoi(value);
data/gkrellm-2.3.10/src/config.c:423:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		style->krell_ema_period = atoi(value);
data/gkrellm-2.3.10/src/config.c:425:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		style->krell_depth = atoi(value);
data/gkrellm-2.3.10/src/config.c:427: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).
		style->krell_left_margin = atoi(value);
data/gkrellm-2.3.10/src/config.c:429:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		style->krell_right_margin = atoi(value);
data/gkrellm-2.3.10/src/config.c:435: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).
			style->label_position = atoi(value);
data/gkrellm-2.3.10/src/config.c:440: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).
		style->label_yoff = atoi(value) * _GK.theme_scale / 100;
data/gkrellm-2.3.10/src/config.c:443:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		style->margin.left = atoi(value) * _GK.theme_scale / 100;
data/gkrellm-2.3.10/src/config.c:448: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).
		style->margin.top = atoi(value)  * _GK.theme_scale / 100;
data/gkrellm-2.3.10/src/config.c:453:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		style->margin.bottom = atoi(value) * _GK.theme_scale / 100;
data/gkrellm-2.3.10/src/config.c:457:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		style->margin.left = atoi(value) * _GK.theme_scale / 100;
data/gkrellm-2.3.10/src/config.c:459:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		style->margin.right = atoi(value) * _GK.theme_scale / 100;
data/gkrellm-2.3.10/src/config.c:461:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		style->transparency = atoi(value);
data/gkrellm-2.3.10/src/config.c:1179: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).
			_GK.spacer_top_height_chart = atoi(s);
data/gkrellm-2.3.10/src/config.c:1181: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).
			_GK.spacer_top_height_meter = atoi(s);
data/gkrellm-2.3.10/src/config.c:1184: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).
			_GK.spacer_top_height_chart = atoi(s);
data/gkrellm-2.3.10/src/config.c:1188:37:  [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).
			mon->privat->top_spacer.height = atoi(s);
data/gkrellm-2.3.10/src/config.c:1193:37:  [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).
			_GK.spacer_bottom_height_chart = atoi(s);
data/gkrellm-2.3.10/src/config.c:1195:37:  [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).
			_GK.spacer_bottom_height_meter = atoi(s);
data/gkrellm-2.3.10/src/config.c:1198:37:  [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).
			_GK.spacer_bottom_height_chart = atoi(s);
data/gkrellm-2.3.10/src/config.c:1202:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			mon->privat->bottom_spacer.height = atoi(s);
data/gkrellm-2.3.10/src/config.c:1759:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				val = atoi(s);
data/gkrellm-2.3.10/src/gui.c:1684:12:  [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).
					alt = atoi(s);
data/gkrellm-2.3.10/src/inet.c:679:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&ss.sin.sin_addr, &tcp->remote_addr, salen);
data/gkrellm-2.3.10/src/inet.c:687: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(&ss.sin6.sin6_addr, &tcp->remote_addr6, salen);
data/gkrellm-2.3.10/src/inet.c:1511:16:  [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).
	in->port0_0 = atoi(ports[0]);
data/gkrellm-2.3.10/src/inet.c:1512:16:  [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).
	in->port0_1 = atoi(ports[1]);
data/gkrellm-2.3.10/src/inet.c:1513:16:  [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).
	in->port1_0 = atoi(ports[2]);
data/gkrellm-2.3.10/src/inet.c:1514:16:  [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).
	in->port1_1 = atoi(ports[3]);
data/gkrellm-2.3.10/src/inet.c:1713:17:  [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).
		in->port0_0 = atoi(gkrellm_gtk_entry_get_text(&port0_0_entry));
data/gkrellm-2.3.10/src/inet.c:1714:17:  [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).
		in->port0_1 = atoi(gkrellm_gtk_entry_get_text(&port0_1_entry));
data/gkrellm-2.3.10/src/inet.c:1719:17:  [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).
		in->port1_0 = atoi(gkrellm_gtk_entry_get_text(&port1_0_entry));
data/gkrellm-2.3.10/src/inet.c:1720:17:  [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).
		in->port1_1 = atoi(gkrellm_gtk_entry_get_text(&port1_1_entry));
data/gkrellm-2.3.10/src/mail.c:582: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(separator,"--");
data/gkrellm-2.3.10/src/mail.c:584: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(&separator[seplen+2],"--");
data/gkrellm-2.3.10/src/mail.c:881:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ipad[64];
data/gkrellm-2.3.10/src/mail.c:882:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char opad[64];
data/gkrellm-2.3.10/src/mail.c:883:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char hash_passwd[16];
data/gkrellm-2.3.10/src/mail.c:901:2:  [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(ipad, password, pass_len);
data/gkrellm-2.3.10/src/mail.c:902:2:  [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(opad, password, pass_len);
data/gkrellm-2.3.10/src/mail.c:993:2:  [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(buf1 + len, "\r\n");
data/gkrellm-2.3.10/src/mail.c:1023:2:  [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(msgbuf + len, "\r\n");
data/gkrellm-2.3.10/src/mail.c:1049:2:  [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(msgbuf + len, "\r\n");
data/gkrellm-2.3.10/src/mail.c:1763: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).
				content_len = atoi(buf + 16);
data/gkrellm-2.3.10/src/mail.c:2768: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).
			account->port = (p && *p) ? atoi(p) : atoi(DEFAULT_POP3_PORT);
data/gkrellm-2.3.10/src/mail.c:2768: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).
			account->port = (p && *p) ? atoi(p) : atoi(DEFAULT_POP3_PORT);
data/gkrellm-2.3.10/src/mail.c:2797: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).
			account->port = (p && *p) ? atoi(p) : atoi(DEFAULT_IMAP_PORT);
data/gkrellm-2.3.10/src/mail.c:2797: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).
			account->port = (p && *p) ? atoi(p) : atoi(DEFAULT_IMAP_PORT);
data/gkrellm-2.3.10/src/mail.c:3067: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).
			account->port = atoi(s);
data/gkrellm-2.3.10/src/mail.c:3234:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (account->port != atoi(default_port))
data/gkrellm-2.3.10/src/mail.c:3462: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).
		default_port = atoi(default_port_of_proto(account->protocol,
data/gkrellm-2.3.10/src/mail.c:3556:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			new_account->port = atoi(gkrellm_gtk_entry_get_text(&port_entry));
data/gkrellm-2.3.10/src/mail.c:3564: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).
		default_port = atoi(default_port_of_proto(
data/gkrellm-2.3.10/src/main.c:2183:17:  [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).
				_GK.debug = atoi(s + 5);
data/gkrellm-2.3.10/src/md5.h:14:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char in[64];
data/gkrellm-2.3.10/src/md5.h:20:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void MD5Final(unsigned char digest[16], struct MD5Context *context);
data/gkrellm-2.3.10/src/md5c.c:104:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void MD5Final(unsigned char digest[16], struct MD5Context *ctx)
data/gkrellm-2.3.10/src/net.c:185:7:  [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).
	n1 = atoi(s);
data/gkrellm-2.3.10/src/net.c:190:8:  [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).
		n2 = atoi(net2->name + len);
data/gkrellm-2.3.10/src/net.c:2585: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(config, "enables");
data/gkrellm-2.3.10/src/sensors.c:1859:17:  [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).
				so->value = atoi(item1);
data/gkrellm-2.3.10/src/sensors.c:2641:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			port = atoi(str);
data/gkrellm-2.3.10/src/sysdeps-unix.c:102:3:  [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(buf, "unknown");
data/gkrellm-2.3.10/src/sysdeps/bsd-common.c:237: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).
	if ((f = fopen("/etc/fstab", "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/bsd-common.c:332:14:  [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 ((d = open(device, O_RDONLY)) >= 0)
data/gkrellm-2.3.10/src/sysdeps/bsd-common.c:344:11:  [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 ((d = open(device, O_RDONLY)) >= 0)
data/gkrellm-2.3.10/src/sysdeps/darwin.c:46: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	errbuf[_POSIX2_LINE_MAX];
data/gkrellm-2.3.10/src/sysdeps/darwin.c:623: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(&(tcp.remote_addr6),&(inp->in6p_faddr),sizeof(struct in6_addr));
data/gkrellm-2.3.10/src/sysdeps/darwin.c:711: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 fname [MAXNAMLEN];
data/gkrellm-2.3.10/src/sysdeps/darwin.c:714:3:  [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 (fname, "/private/var/vm/");
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:28: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	errbuf[_POSIX2_LINE_MAX];
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:220:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ut = fopen(_PATH_UTMP, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:381: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(&tcp.remote_addr6,
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:595:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((f = fopen(PROC_MEMINFO_FILE, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:719:11:  [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 ((f = open(APMDEV, O_RDONLY)) == -1)
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:1079:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((iodev = open(temp_file, O_RDWR)) == -1)
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:1100: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 ((iodev = open(temp_file, O_RDWR)) == -1)
data/gkrellm-2.3.10/src/sysdeps/freebsd.c:44: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	errbuf[_POSIX2_LINE_MAX];
data/gkrellm-2.3.10/src/sysdeps/freebsd.c:385:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((ut = fopen(_PATH_UTMP, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/freebsd.c:661: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(&tcp.remote_addr6, &in6pcb.in6p_faddr,
data/gkrellm-2.3.10/src/sysdeps/freebsd.c:724: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(&tcp.remote_addr6,
data/gkrellm-2.3.10/src/sysdeps/freebsd.c:1285:11:  [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 ((f = open(APMDEV, O_RDONLY)) == -1)
data/gkrellm-2.3.10/src/sysdeps/freebsd.c:1676:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((iodev = open(temp_file, O_RDWR)) == -1)
data/gkrellm-2.3.10/src/sysdeps/freebsd.c:1698: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 ((iodev = open(temp_file, O_RDWR)) == -1)
data/gkrellm-2.3.10/src/sysdeps/gtop.c:320: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).
	if ((f = fopen("/etc/fstab", "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:80: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).
	if ((f = fopen("/proc/sys/kernel/osrelease", "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:91: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).
	if ((f = fopen("/proc/mounts", "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:160:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f && (f = fopen(PROC_STAT_FILE, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:245: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(name, "fd%d", i_disk);
data/gkrellm-2.3.10/src/sysdeps/linux.c:247: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(name, "scd%d", i_disk);
data/gkrellm-2.3.10/src/sysdeps/linux.c:284: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).
	if ((f = fopen(PROC_STAT_FILE, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:478: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).
	if ((f = fopen(PROC_DEVICES_FILE, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:527:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(name, "(%d,%d)", device_number, unit_number);
data/gkrellm-2.3.10/src/sysdeps/linux.c:648:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f && (f = fopen(PROC_DISKSTATS_FILE, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:715: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).
	if ((f = fopen(PROC_PARTITIONS_FILE, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:749:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if ((sf = fopen(sysfspath, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:796:32:  [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 (os_release(2,6,0) && (f = fopen(PROC_DISKSTATS_FILE, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:798:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	else if ((f = fopen(PROC_PARTITIONS_FILE, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:840: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).
	if ((f = fopen(PROC_LOADAVG_FILE, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:910: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).
	if ((f = fopen(fname, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:937: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).
	if ((f = fopen(fname, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1016:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (f || (f = fopen(PROC_NET_ROUTE_FILE, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1046:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (f6 || (f6 = fopen(PROC_NET_IPV6ROUTE_FILE, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1108:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f && (f = fopen(PROC_NET_DEV_FILE, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1182:14:  [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 (   (f = open("/dev/isdninfo", O_RDONLY)) == -1
data/gkrellm-2.3.10/src/sysdeps/linux.c:1183:11:  [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).
		&& (f = open("/dev/isdn/isdninfo", O_RDONLY)) == -1
data/gkrellm-2.3.10/src/sysdeps/linux.c:1235: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).
	if ((f = fopen(PROC_NET_DEV_FILE, "r")))
data/gkrellm-2.3.10/src/sysdeps/linux.c:1308: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).
	if ((f = fopen(PROC_MEMINFO_FILE, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1367:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(PROC_VMSTAT_FILE, "r");
data/gkrellm-2.3.10/src/sysdeps/linux.c:1465: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).
	if ((f = fopen("/etc/fstab", "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1521: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).
	if ((f = fopen(PROC_MOUNTS_FILE, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1571:11:  [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 ((d = open(device, O_RDONLY|O_NONBLOCK)) >= 0)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1753:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((f = fopen(bf->info, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1790: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).
		&& (f = fopen(acpi_ac_state_file, "r")) != NULL
data/gkrellm-2.3.10/src/sysdeps/linux.c:1807: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).
	if ((f = fopen(bf->state, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1937: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).
	if ((f = fopen (sysentry, "r")))
data/gkrellm-2.3.10/src/sysdeps/linux.c:1986:3:  [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 (sysentry, "/online");
data/gkrellm-2.3.10/src/sysdeps/linux.c:2001:2:  [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 (sysentry, "/present");
data/gkrellm-2.3.10/src/sysdeps/linux.c:2040:3:  [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 (sysentry, "/status");
data/gkrellm-2.3.10/src/sysdeps/linux.c:2277: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).
	if ((f = fopen(PROC_APM_FILE, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:2358: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).
	if ((f = fopen("/proc/uptime", "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:2521:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i = atoi(name + 2);
data/gkrellm-2.3.10/src/sysdeps/linux.c:2523:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		i = atoi(name + 3);
data/gkrellm-2.3.10/src/sysdeps/linux.c:2550:6:  [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("/etc/sensors.conf", "r");
data/gkrellm-2.3.10/src/sysdeps/linux.c:3212:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sensor_path, "r");
data/gkrellm-2.3.10/src/sysdeps/linux.c:3234:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sensor_path, "r");
data/gkrellm-2.3.10/src/sysdeps/linux.c:3256:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sensor_path, "r");
data/gkrellm-2.3.10/src/sysdeps/linux.c:3372:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((f = fopen(sensor_path, "r")))
data/gkrellm-2.3.10/src/sysdeps/linux.c:3386: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).
	if ((f = fopen(sensor_path, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:3420:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sensor_path, "r");
data/gkrellm-2.3.10/src/sysdeps/linux.c:3441:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sensor_path, "r");
data/gkrellm-2.3.10/src/sysdeps/linux.c:3457: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).
	if ((f = fopen(sensor_path, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:3491:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(sensor_path, "r");
data/gkrellm-2.3.10/src/sysdeps/linux.c:3506: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).
	if ((f = fopen(sensor_path, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:3613:6:  [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(name, "r");
data/gkrellm-2.3.10/src/sysdeps/linux.c:3710:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			id = atoi(s);
data/gkrellm-2.3.10/src/sysdeps/linux.c:3985: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).
	if ((f = fopen(IBM_ACPI_THERMAL, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/linux.c:4021: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).
	if ((f = fopen(IBM_ACPI_FAN_FILE, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:40: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	errbuf[_POSIX2_LINE_MAX];
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:171:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((ut = fopen(_PATH_UTMP, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:396: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, base_name[33];
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:400: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(SENSORS_DIR, O_RDONLY); /* never closed */ 
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:490:15:  [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(APMDEV, O_RDONLY)) == -1) return;
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:508: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(SENSORS_DIR, O_RDONLY);
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:571: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 fake[2];
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:580: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(APMDEV, O_RDONLY)) == -1) break;
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:596: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(SENSORS_DIR, O_RDONLY);
data/gkrellm-2.3.10/src/sysdeps/netbsd.c:821: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(&tcp.remote_addr6, &sin->sin6_addr,
data/gkrellm-2.3.10/src/sysdeps/openbsd.c:39: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	errbuf[_POSIX2_LINE_MAX];
data/gkrellm-2.3.10/src/sysdeps/openbsd.c:162:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((ut = fopen(_PATH_UTMP, "r")) != NULL)
data/gkrellm-2.3.10/src/sysdeps/openbsd.c:321:11:  [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 ((f = open(APMDEV, O_RDONLY)) == -1) return;
data/gkrellm-2.3.10/src/sysdeps/openbsd.c:397: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[20];
data/gkrellm-2.3.10/src/sysdeps/sensors-common.c:340: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(buf, "%c%c", sep, sep);
data/gkrellm-2.3.10/src/sysdeps/solaris.c:265: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[8];
data/gkrellm-2.3.10/src/sysdeps/solaris.c:325: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 line[80];
data/gkrellm-2.3.10/src/sysdeps/solaris.c:342:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen("/etc/name_to_major", "r")) == NULL) {
data/gkrellm-2.3.10/src/sysdeps/solaris.c:355:25:  [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).
        majnum = (gint) atol(maj); 
data/gkrellm-2.3.10/src/sysdeps/solaris.c:433: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 *phys_path, devices_path[256]; /* or OBP_MAXPATHLEN? */
data/gkrellm-2.3.10/src/sysdeps/solaris.c:464:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fd = open(devices_path, O_RDONLY)) == -1) {
data/gkrellm-2.3.10/src/sysdeps/solaris.c:568:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/gkrellm-2.3.10/src/sysdeps/solaris.c:577: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 ((tcpfd = open("/dev/tcp", O_RDWR)) == -1) {
data/gkrellm-2.3.10/src/sysdeps/solaris.c:665: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(&tcp.remote_addr6, &tp6->tcp6ConnRemAddress, 
data/gkrellm-2.3.10/src/sysdeps/solaris.c:930:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(VFSTAB, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/solaris.c:951:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(MNTTAB, "r")) == NULL)
data/gkrellm-2.3.10/src/sysdeps/solaris.c:984:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((d = open(device, O_RDONLY)) >= 0) {
data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c:154:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ssName[12]; // name of sensor
data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c:155: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 sspadding1[3];       // padding of 3 byte
data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c:160: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 sspadding2[4];       // padding of 4 byte
data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c:162: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 sspadding3[6];       // padding of 6 byte
data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c:174:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char siSMB_Name[41]; // Nice name for SMBus
data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c:187:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sdStart[41]; // start time
data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c:188:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sdCurrent[41]; // current time
data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c:189:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sdPath[256]; // MBM path
data/gkrellm-2.3.10/src/sysdeps/win32-sensors.c:455: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          sCPUName[100];
data/gkrellm-2.3.10/src/sysdeps/win32.c:304:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t		obj_name[PDH_MAX_COUNTER_NAME];
data/gkrellm-2.3.10/src/sysdeps/win32.c:305:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t		c1_name[PDH_MAX_COUNTER_NAME];
data/gkrellm-2.3.10/src/sysdeps/win32.c:306:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t		c2_name[PDH_MAX_COUNTER_NAME];
data/gkrellm-2.3.10/src/sysdeps/win32.c:311:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t		counter_path[PDH_MAX_COUNTER_PATH];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1077:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t acc_name[256];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1078:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t acc_dom[256];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1157:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t system_name[PDH_MAX_COUNTER_NAME];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1158:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t counter_name[PDH_MAX_COUNTER_NAME];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1159:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t counter_path[128+128+3];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1510: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 device_path[MAX_PATH];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1581:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t drive_list[4*26];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1618:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t drive_list[4*26];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1850:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t system_name[PDH_MAX_COUNTER_NAME];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1851:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t uptime_name[PDH_MAX_COUNTER_NAME];
data/gkrellm-2.3.10/src/sysdeps/win32.c:1852:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t counter_path[PDH_MAX_COUNTER_PATH];
data/gkrellm-2.3.10/src/winops-gtk-mac.c:69: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).
	f_lock = fopen(lock_file, "w+");	/* buffering does not apply here */
data/gkrellm-2.3.10/src/winops-win32.c:118:10:  [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).
		newX = atoi(part);
data/gkrellm-2.3.10/src/winops-win32.c:130:10:  [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).
		newY = atoi(part);
data/gkrellm-2.3.10/src/winops-x11.c:160: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(pid_str, "%i", getpid());
data/gkrellm-2.3.10/src/winops-x11.c:294: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).
	f_lock = fopen(lock_file, "w+");	/* buffering does not apply here */
data/gkrellm-2.3.10/server/mail.c:91:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(buf, "%*s %511s %*s %*s %d", sender, &dayofmonth) != 2)
data/gkrellm-2.3.10/server/mail.c:143:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(&separator[2],sepstart,seplen);
data/gkrellm-2.3.10/server/mail.c:464: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).
				if (strncmp(buf,mpart_sep,strlen(mpart_sep))==0)
data/gkrellm-2.3.10/server/main.c:249: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).
	n = send(client->fd, buf, strlen(buf), MSG_NOSIGNAL);
data/gkrellm-2.3.10/server/main.c:251: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).
	n = send(client->fd, buf, strlen(buf), 0);
data/gkrellm-2.3.10/server/main.c:280:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (result <= 0 || read(fd, s, 1) != 1)
data/gkrellm-2.3.10/server/main.c:549:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if (   sscanf(buf, "%31s %d.%d.%d", name, &client->major_version,
data/gkrellm-2.3.10/server/main.c:729:4:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			sscanf(buf, "%31s %127s", config, arg);
data/gkrellm-2.3.10/server/main.c:933: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 (!_GK.server_address || strlen(_GK.server_address) == 0)
data/gkrellm-2.3.10/server/main.c:955: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 (!_GK.server_address || strlen(_GK.server_address) == 0)
data/gkrellm-2.3.10/server/monitor.c:539: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).
		s = subdisk_name + strlen(disk_name);
data/gkrellm-2.3.10/server/monitor.c:999: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 (name && !strncmp(_GK.net_timer, name, strlen(name) - 1))
data/gkrellm-2.3.10/server/monitor.c:1008: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 (name && !strncmp(_GK.net_timer, name, strlen(name) - 1))
data/gkrellm-2.3.10/server/monitor.c:2366: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).
				n = strlen(mp->serve_name);
data/gkrellm-2.3.10/server/plugins.c:177:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(check);
data/gkrellm-2.3.10/server/sysdeps-unix.c:134: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).
	len = strlen(id_name) + 1;
data/gkrellm-2.3.10/server/sysdeps-unix.c:143: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).
		memmove(s + 2, s + 4, strlen(s + 4) + 1);
data/gkrellm-2.3.10/server/utils.c:148:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(line, gstr->str, n);
data/gkrellm-2.3.10/src/alerts.c:1467:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(config_line, "%31s %[^\n]", config, item);
data/gkrellm-2.3.10/src/alerts.c:1510:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(item, "%63s %[^\n]", name, item1) == 2)
data/gkrellm-2.3.10/src/battery.c:882:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if (sscanf(arg, "%31s %[^\n]", config, item) == 2)
data/gkrellm-2.3.10/src/battery.c:921:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
				sscanf(item, "%32s %[^\n]", name, item1);
data/gkrellm-2.3.10/src/chart.c:1142: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).
			text_length = strlen(s);
data/gkrellm-2.3.10/src/chart.c:1149: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(tr->text) != text_length
data/gkrellm-2.3.10/src/chart.c:1184:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(buf, s, text_length);
data/gkrellm-2.3.10/src/chart.c:1233: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).
	gkrellm_text_extents(ts->font, s, strlen(s), &w, &h, NULL, &y_ink);
data/gkrellm-2.3.10/src/chart.c:2529: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).
                                           strlen(auto_res_control_items), &error);
data/gkrellm-2.3.10/src/client.c:311: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).
	name = g_malloc(strlen(line) * sizeof(gchar));
data/gkrellm-2.3.10/src/client.c:471:2:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	sscanf(line, "%31s %d", name, &routed);
data/gkrellm-2.3.10/src/client.c:563:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(line, "%*s %31s\n", buf);
data/gkrellm-2.3.10/src/client.c:791:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(line, "%127s %63s %63s", dir, dev, type);
data/gkrellm-2.3.10/src/client.c:841:2:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	sscanf(line, "%127s %63s %lu %lu %lu %lu", dir, dev,
data/gkrellm-2.3.10/src/client.c:953:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if (sscanf(line, "%255s %d %d", path, &total, &new) < 3)
data/gkrellm-2.3.10/src/client.c:1377: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).
		n = strlen(key_name);
data/gkrellm-2.3.10/src/client.c:1524: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).
		n = strlen(plug->key_name);
data/gkrellm-2.3.10/src/client.c:1585: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).
	n = send(client_fd, buf, strlen(buf), MSG_NOSIGNAL);
data/gkrellm-2.3.10/src/client.c:1587: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).
	n = send(client_fd, buf, strlen(buf), 0);
data/gkrellm-2.3.10/src/client.c:1610: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 (line[strlen(line) - 1] != '\n')
data/gkrellm-2.3.10/src/client.c:1751:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(10000);
data/gkrellm-2.3.10/src/client.c:1775:11:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        		usleep(10000);
data/gkrellm-2.3.10/src/client.c:1831: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).
		buf_index = strlen(line);
data/gkrellm-2.3.10/src/client.c:1938: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).
	send(client_fd, buf, strlen(buf), 0);
data/gkrellm-2.3.10/src/clock.c:126: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(chime->command))
data/gkrellm-2.3.10/src/clock.c:325: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).
			cal_string, strlen(cal_string), &w, &h, NULL, &d_cal->y_ink);
data/gkrellm-2.3.10/src/clock.c:425: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).
				clock_string, strlen(clock_string),
data/gkrellm-2.3.10/src/clock.c:544:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(arg, "%31s %[^\n]", config, item);
data/gkrellm-2.3.10/src/config.c:1166:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if ((n = sscanf(string, "%31s %31[^\n]", style_name, arg)) < 1)
data/gkrellm-2.3.10/src/config.c:1560:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(s, "%63s %31s", name, border_string);
data/gkrellm-2.3.10/src/config.c:1589:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(s, "%63s %31s", name, border_string);
data/gkrellm-2.3.10/src/config.c:1617:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(s, "%63s %63s", name, string);
data/gkrellm-2.3.10/src/config.c:1638:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(s, "%63s %[^\n]", name, string);
data/gkrellm-2.3.10/src/config.c:1692:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, line, CFG_BUFSIZE);	/* strtok() is destructive */
data/gkrellm-2.3.10/src/config.c:1746:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(conf->option);
data/gkrellm-2.3.10/src/cpu.c:1047:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(arg, "%31s %[^\n]", config, item);
data/gkrellm-2.3.10/src/cpu.c:1068:4:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			sscanf(item, "%31s %[^\n]", cpu_name, command);
data/gkrellm-2.3.10/src/cpu.c:1079:4:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			sscanf(item, "%31s %[^\n]", cpu_name, command);
data/gkrellm-2.3.10/src/cpu.c:1096:4:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			sscanf(item, "%31s %[^\n]", cpu_name, command);
data/gkrellm-2.3.10/src/cpu.c:1106:4:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			sscanf(item, "%31s %[^\n]", cpu_name, command);
data/gkrellm-2.3.10/src/cpu.c:1116:4:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			sscanf(item, "%31s %[^\n]", cpu_name, command);
data/gkrellm-2.3.10/src/deprecated.c:65: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).
	return gdk_text_width(font_desc, string, strlen(string));
data/gkrellm-2.3.10/src/deprecated.c:74: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).
	gkrellm_text_extents(font_desc, string, strlen(string),
data/gkrellm-2.3.10/src/disk.c:370: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).
		s = subdisk_name + strlen(disk_name);
data/gkrellm-2.3.10/src/disk.c:525: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).
	len = strlen(disk_name);
data/gkrellm-2.3.10/src/disk.c:584: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).
	len = strlen(disk_name);
data/gkrellm-2.3.10/src/disk.c:986:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(arg, "%31s %[^\n]", config, item);
data/gkrellm-2.3.10/src/disk.c:1223:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gboolean	read, write;
data/gkrellm-2.3.10/src/disk.c:1227:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read && !write)
data/gkrellm-2.3.10/src/fs.c:1422:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if ((n = sscanf(arg, "%31s %[^\n]", config, item)) != 2)
data/gkrellm-2.3.10/src/fs.c:2161: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).
			gkrellm_text_markup_extents(d->text_style.font, buf, strlen(buf),
data/gkrellm-2.3.10/src/gui.c:2533:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                               strlen(ui_items_no_config), &error);
data/gkrellm-2.3.10/src/gui.c:2536:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                               strlen(ui_items), &error);
data/gkrellm-2.3.10/src/hostname.c:130: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).
	dst = g_new(gchar, strlen(s) + 1);
data/gkrellm-2.3.10/src/hostname.c:196:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, hostname, sizeof(buf) - 1);
data/gkrellm-2.3.10/src/hostname.c:542:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if ((n = sscanf(arg, "%31s %[^\n]", config, item)) != 2)
data/gkrellm-2.3.10/src/inet.c:1143:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if ((n = sscanf(arg, "%31s %31s %[^\n]", config, name, item)) != 3)
data/gkrellm-2.3.10/src/inet.c:1164:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(item, "%15s %lu %lu %15s %lu %lu %d %d %d",
data/gkrellm-2.3.10/src/krell.c:222: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).
					pango_layout_set_markup(layout, tx->text,strlen(tx->text));
data/gkrellm-2.3.10/src/krell.c:224: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).
					pango_layout_set_text(layout, tx->text, strlen(tx->text));
data/gkrellm-2.3.10/src/krell.c:619: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).
		pango_layout_set_markup(layout, text, strlen(text));
data/gkrellm-2.3.10/src/krell.c:621: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).
		pango_layout_set_text(layout, text, strlen(text));
data/gkrellm-2.3.10/src/krell.c:1319: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).
					string, strlen(string),
data/gkrellm-2.3.10/src/krell.c:1323: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).
					string, strlen(string),
data/gkrellm-2.3.10/src/mail.c:531:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(buf, "%*s %511s %*s %*s %d", sender, &dayofmonth) != 2)
data/gkrellm-2.3.10/src/mail.c:583:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(&separator[2],sepstart,seplen);
data/gkrellm-2.3.10/src/mail.c:598: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).
	n = strlen(pass);
data/gkrellm-2.3.10/src/mail.c:622:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, buf, size);
data/gkrellm-2.3.10/src/mail.c:684: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).
		n = SSL_write(conn->ssl, line, strlen(line));
data/gkrellm-2.3.10/src/mail.c:689: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).
		n = send(conn->fd, line, strlen(line), 0);
data/gkrellm-2.3.10/src/mail.c:691: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).
		n = write(conn->fd, line, strlen(line));
data/gkrellm-2.3.10/src/mail.c:705:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (!strncmp(match, mbox->tcp_in->str, strlen(match)) ? TRUE : FALSE);
data/gkrellm-2.3.10/src/mail.c:719: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).
		return (!strncmp(tag, mbox->tcp_in->str, strlen(tag)) ? TRUE : FALSE);
data/gkrellm-2.3.10/src/mail.c:950: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).
	len = strlen(respdata);
data/gkrellm-2.3.10/src/mail.c:955: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).
	if (strip && strncmp(respdata, strip, strlen(strip)) == 0)
data/gkrellm-2.3.10/src/mail.c:956: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).
		respdata += strlen(strip);
data/gkrellm-2.3.10/src/mail.c:977: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).
	hmac_md5((guchar *) account->password, strlen(account->password),
data/gkrellm-2.3.10/src/mail.c:978:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		 (guchar *) msg_id, strlen(msg_id), response, sizeof(response));
data/gkrellm-2.3.10/src/mail.c:988: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).
	to64frombits((guchar *) buf1, (guchar *) reply, strlen(reply));
data/gkrellm-2.3.10/src/mail.c:990: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).
	len = strlen(buf1);
data/gkrellm-2.3.10/src/mail.c:1020: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).
	len = strlen(msgbuf);
data/gkrellm-2.3.10/src/mail.c:1046: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).
	len = strlen(msgbuf);
data/gkrellm-2.3.10/src/mail.c:1072: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(mbox->tcp_in->str) < 3 ||
data/gkrellm-2.3.10/src/mail.c:1122: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).
		MD5Update(&ctx, line, strlen(line));
data/gkrellm-2.3.10/src/mail.c:1188:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (   sscanf(mbox->tcp_in->str, "+OK %*d %127s", line) == 1
data/gkrellm-2.3.10/src/mail.c:1206: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).
	dst = g_malloc (strlen(source) * 2 + 1);
data/gkrellm-2.3.10/src/mail.c:1317: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).
			hide_password(line, 15 + strlen(user_escaped), pass_escaped);
data/gkrellm-2.3.10/src/mail.c:1720: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).
				if (strncmp(buf,mpart_sep,strlen(mpart_sep))==0)
data/gkrellm-2.3.10/src/mail.c:1852:5:  [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(buf, "-");
data/gkrellm-2.3.10/src/mail.c:1859:5:  [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(nbuf, "-");
data/gkrellm-2.3.10/src/mail.c:1863:5:  [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(tbuf, "-");
data/gkrellm-2.3.10/src/mail.c:2001:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(mp->pipe, buf, min(sizeof(buf) - 1, bytesAvailable));
data/gkrellm-2.3.10/src/mail.c:2003:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(mp->pipe, buf, sizeof(buf) - 1);
data/gkrellm-2.3.10/src/mail.c:2021: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).
		return strlen(line);
data/gkrellm-2.3.10/src/mail.c:2168:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(line, "%63s", buf);
data/gkrellm-2.3.10/src/mail.c:2173:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(s + 5, "%63s", buf);
data/gkrellm-2.3.10/src/mail.c:2177:4:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			sscanf(s + 4, "%63s", buf);
data/gkrellm-2.3.10/src/mail.c:3032:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(arg, "%31s %[^\n]", mail_config, item);
data/gkrellm-2.3.10/src/mail.c:3187:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(xbuf, s, sizeof(xbuf));
data/gkrellm-2.3.10/src/mem.c:1045:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(arg, "%31s %[^\n]", config, item);
data/gkrellm-2.3.10/src/mem.c:1083:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			if (sscanf(item, "%15s %[^\n]", name, item1) == 2)
data/gkrellm-2.3.10/src/net.c:1602: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(net->name) > 5)
data/gkrellm-2.3.10/src/net.c:2298: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).
		if (!strncmp(timer_button_iface, tt->name, strlen(tt->name) - 1))
data/gkrellm-2.3.10/src/net.c:2549:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(arg, "%31s %[^\n]", config, item);
data/gkrellm-2.3.10/src/net.c:2580:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	else if (sscanf(item, "%31s %[^\n]", name, item1) == 2)
data/gkrellm-2.3.10/src/net.c:2798:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gboolean	read, write;
data/gkrellm-2.3.10/src/net.c:2802:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!read && !write)
data/gkrellm-2.3.10/src/panel.c:159: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).
						lbl->string, strlen(lbl->string));
data/gkrellm-2.3.10/src/panel.c:162: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).
						lbl->string, strlen(lbl->string));
data/gkrellm-2.3.10/src/panel.c:669: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).
					pango_layout_set_markup(layout, s, strlen(s));
data/gkrellm-2.3.10/src/panel.c:671: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).
					pango_layout_set_text(layout, s, strlen(s));
data/gkrellm-2.3.10/src/panel.c:681: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).
					pango_layout_set_markup(layout, s, strlen(s));
data/gkrellm-2.3.10/src/panel.c:683: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).
					pango_layout_set_text(layout, s, strlen(s));
data/gkrellm-2.3.10/src/panel.c:689: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).
					pango_layout_set_markup(layout, tx->text,strlen(tx->text));
data/gkrellm-2.3.10/src/panel.c:691: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).
					pango_layout_set_text(layout, tx->text, strlen(tx->text));
data/gkrellm-2.3.10/src/panel.c:697: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).
				pango_layout_set_markup(layout, tx->text, strlen(tx->text));
data/gkrellm-2.3.10/src/panel.c:699:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				pango_layout_set_text(layout, tx->text, strlen(tx->text));
data/gkrellm-2.3.10/src/plugins.c:214:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, name, sizeof(buf));
data/gkrellm-2.3.10/src/proc.c:718:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(arg, "%31s %[^\n]", config, item);
data/gkrellm-2.3.10/src/proc.c:738:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			if (sscanf(item, "%15s %[^\n]", name, item1) == 2)
data/gkrellm-2.3.10/src/sensors.c:1132:5:  [1] (buffer) strlen:
  Does not handle 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(s->name_locale), &w0, NULL, NULL, &y_ink0);
data/gkrellm-2.3.10/src/sensors.c:1135:5:  [1] (buffer) strlen:
  Does not handle 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(string), &w1, &h0, NULL, &y_ink1);
data/gkrellm-2.3.10/src/sensors.c:1143: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).
					strlen(string), &w1, &h1, NULL, &y_ink1);
data/gkrellm-2.3.10/src/sensors.c:1819:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(arg, "%31s %[^\n]", config, item);
data/gkrellm-2.3.10/src/sensors.c:1847:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(item, "%63s %[^\n]", id_name, item1) == 2)
data/gkrellm-2.3.10/src/sensors.c:1940:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			load_sensors_config(buf + strlen(SENSOR_CONFIG_KEYWORD) + 1);
data/gkrellm-2.3.10/src/sysdeps/bsd-common.c:135:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(s, sdl->sdl_data, sdl->sdl_nlen);
data/gkrellm-2.3.10/src/sysdeps/bsd-common.c:247:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(s, "%64s %128s %64s %128s", dev, dir, type, opt);
data/gkrellm-2.3.10/src/sysdeps/darwin.c:157: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).
		   (void *)name, strlen(name)) < 0)
data/gkrellm-2.3.10/src/sysdeps/darwin.c:160: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).
		   (void *)vname, strlen(vname)) < 0)
data/gkrellm-2.3.10/src/sysdeps/darwin.c:163: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).
		   (void *)rname, strlen(rname)) < 0)
data/gkrellm-2.3.10/src/sysdeps/darwin.c:378: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(vendor_str) > 0)
data/gkrellm-2.3.10/src/sysdeps/dragonfly.c:73: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).
		   (void *)name, strlen(name)) < 0)
data/gkrellm-2.3.10/src/sysdeps/freebsd.c:89: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).
		   (void *)name, strlen(name)) < 0)
data/gkrellm-2.3.10/src/sysdeps/gtop.c:330:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(s, "%64s %128s %64s %128s", dev, dir, type, opt);
data/gkrellm-2.3.10/src/sysdeps/linux.c:482:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			if (sscanf(buf, "%d %31s", &m, name_buf) != 2)
data/gkrellm-2.3.10/src/sysdeps/linux.c:543:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(dm->name);
data/gkrellm-2.3.10/src/sysdeps/linux.c:661:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		n = sscanf(buf, "%d %d %127s %*d %lu %lu %lu %*d %*d %lu",
data/gkrellm-2.3.10/src/sysdeps/linux.c:730:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
				n = sscanf(buf, "%d %d %lu %127s %*d %*d %lu %*d %*d %*d %lu",
data/gkrellm-2.3.10/src/sysdeps/linux.c:739:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
				n = sscanf(buf, "%d %d %lu %127s",
data/gkrellm-2.3.10/src/sysdeps/linux.c:1192:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(f, buffer, BUFSIZ) <= 0)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1475:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(s, "%511s %511s %127s %255s", dev, dir, type, opt);
data/gkrellm-2.3.10/src/sysdeps/linux.c:1526:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(buf, "%512s %512s %127s", dev, dir, type);
data/gkrellm-2.3.10/src/sysdeps/linux.c:1797:15:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			if (   (   sscanf (buf, "state: %31s", s1) == 1
data/gkrellm-2.3.10/src/sysdeps/linux.c:1798:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
					|| sscanf (buf, "status: %31s", s1) == 1
data/gkrellm-2.3.10/src/sysdeps/linux.c:1821:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(buf, "charging state: %31s", s1) == 1)
data/gkrellm-2.3.10/src/sysdeps/linux.c:1839:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (   sscanf(buf, "present: %31s", s1) == 1
data/gkrellm-2.3.10/src/sysdeps/linux.c:1944: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).
			nl = buf + strlen (buf) - 1;
data/gkrellm-2.3.10/src/sysdeps/linux.c:1979: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).
	syszap = sysentry + strlen (sysentry);
data/gkrellm-2.3.10/src/sysdeps/linux.c:2281:2:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	sscanf(buf, "%*s %d.%d %*x %x %x %x %d%% %d %31s\n",
data/gkrellm-2.3.10/src/sysdeps/linux.c:2301:4:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			sscanf(buf, "%d %x %x %d%% %d %31s\n", &id,
data/gkrellm-2.3.10/src/sysdeps/linux.c:2519: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).
	len = strlen(name);
data/gkrellm-2.3.10/src/sysdeps/linux.c:2751:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(label);
data/gkrellm-2.3.10/src/sysdeps/linux.c:2772:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						memmove(label, label + 4, strlen (label + 4) + 1);
data/gkrellm-2.3.10/src/sysdeps/linux.c:3154:12:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
				if (   sscanf(str, " %63s", id) != 1
data/gkrellm-2.3.10/src/sysdeps/linux.c:3241:14:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
				if ((n = sscanf(buf, "temperature: %f %31s", &T, units)) > 0)
data/gkrellm-2.3.10/src/sysdeps/linux.c:3885: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).
	len = strlen(id_name) + 1;
data/gkrellm-2.3.10/src/sysdeps/linux.c:3894: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).
		memmove(s + 2, s + 4, strlen(s + 4) + 1);
data/gkrellm-2.3.10/src/sysdeps/linux.c:3899: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).
		memmove(s + 2, s + 4, strlen(s + 4) + 1);
data/gkrellm-2.3.10/src/sysdeps/sensors-common.c:154:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(fd, buf, sizeof(buf) - 1)) > 0)
data/gkrellm-2.3.10/src/sysdeps/sensors-common.c:167:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (   sscanf(buf, "%31s : %f", name, &value) != 2
data/gkrellm-2.3.10/src/sysdeps/sensors-common.c:327:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(fd, buf, sizeof(buf) - 1)) > 0)
data/gkrellm-2.3.10/src/sysdeps/solaris.c:789:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifr.ifr_name, ifrp->ifr_name, sizeof(ifr.ifr_name));
data/gkrellm-2.3.10/src/sysdeps/win32.c:368:46:  [1] (buffer) wcslen:
  Does not handle 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 (inst = inst_list; *inst != 0; inst += wcslen(inst) + 1)
data/gkrellm-2.3.10/src/sysdeps/win32.c:414: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(clean_name) > MAX_DEV_NAME)
data/gkrellm-2.3.10/src/sysdeps/win32.c:768: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).
			net->name[strlen(net->name) - 1] = unique++;
data/gkrellm-2.3.10/src/sysdeps/win32.c:824:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gulong read;
data/gkrellm-2.3.10/src/sysdeps/win32.c:886:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		gkrellm_disk_assign_data_by_device(i, 0, disk->read, disk->write, FALSE);
data/gkrellm-2.3.10/src/sysdeps/win32.c:891:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void gkrellm_sys_disk_add_cb(wchar_t *name, PDH_HCOUNTER *read, PDH_HCOUNTER *write)
data/gkrellm-2.3.10/src/sysdeps/win32.c:908: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).
			disk->name[strlen(disk->name) - 1] = unique++;
data/gkrellm-2.3.10/src/sysdeps/win32.c:912:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	disk->read_pdh_counter = *read;
data/gkrellm-2.3.10/src/sysdeps/win32.c:1599:54:  [1] (buffer) wcslen:
  Does not handle 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 (drive = drive_list; (*drive) != '\0'; drive += wcslen(drive) + 1)
data/gkrellm-2.3.10/src/sysdeps/win32.c:1636:54:  [1] (buffer) wcslen:
  Does not handle 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 (drive = drive_list; (*drive) != '\0'; drive += wcslen(drive) + 1)
data/gkrellm-2.3.10/src/uptime.c:223:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	n = sscanf(arg, "%31s %[^\n]", config, item);
data/gkrellm-2.3.10/src/utils.c:150:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(line, gstr->str, n);
data/gkrellm-2.3.10/src/utils.c:331: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).
	pango_layout_set_text(layout, string, strlen(string));
data/gkrellm-2.3.10/src/utils.c:345: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).
	pango_layout_set_markup(layout, string, strlen(string));
data/gkrellm-2.3.10/src/utils.c:432: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).
	pango_layout_set_text(layout, string, strlen(string));
data/gkrellm-2.3.10/src/utils.c:446: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).
	pango_layout_set_markup(layout, string, strlen(string));
data/gkrellm-2.3.10/src/winops-win32.c:75: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).
	gint stringSize = strlen(geom);
data/gkrellm-2.3.10/src/winops-x11.c:154: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).
	userid_val.length = strlen(userid_string);
data/gkrellm-2.3.10/src/winops-x11.c:162: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).
	pid_val.length = strlen(pid_str);
data/gkrellm-2.3.10/src/winops-x11.c:171: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).
			restart.vals[j++].length = strlen(argv[i]);
data/gkrellm-2.3.10/src/winops-x11.c:176: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).
	restart.vals[j++].length = strlen("--sm-client-id");
data/gkrellm-2.3.10/src/winops-x11.c:178: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).
	restart.vals[j++].length = strlen(client_id);

ANALYSIS SUMMARY:

Hits = 485
Lines analyzed = 73009 in approximately 1.63 seconds (44816 lines/second)
Physical Source Lines of Code (SLOC) = 58358
Hits@level = [0] 622 [1] 203 [2] 223 [3]   7 [4]  52 [5]   0
Hits@level+ = [0+] 1107 [1+] 485 [2+] 282 [3+]  59 [4+]  52 [5+]   0
Hits/KSLOC@level+ = [0+] 18.9691 [1+] 8.31077 [2+] 4.83224 [3+] 1.011 [4+] 0.891052 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.