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/xosview-1.22/Host.cc
Examining data/xosview-1.22/Host.h
Examining data/xosview-1.22/Xrm.cc
Examining data/xosview-1.22/Xrm.h
Examining data/xosview-1.22/Xrmcommandline.h
Examining data/xosview-1.22/bitfieldmeter.cc
Examining data/xosview-1.22/bitfieldmeter.h
Examining data/xosview-1.22/bitmeter.cc
Examining data/xosview-1.22/bitmeter.h
Examining data/xosview-1.22/bsd/MeterMaker.cc
Examining data/xosview-1.22/bsd/MeterMaker.h
Examining data/xosview-1.22/bsd/btrymeter.cc
Examining data/xosview-1.22/bsd/btrymeter.h
Examining data/xosview-1.22/bsd/coretemp.cc
Examining data/xosview-1.22/bsd/coretemp.h
Examining data/xosview-1.22/bsd/cpumeter.cc
Examining data/xosview-1.22/bsd/cpumeter.h
Examining data/xosview-1.22/bsd/defines.h
Examining data/xosview-1.22/bsd/diskmeter.cc
Examining data/xosview-1.22/bsd/diskmeter.h
Examining data/xosview-1.22/bsd/intmeter.cc
Examining data/xosview-1.22/bsd/intmeter.h
Examining data/xosview-1.22/bsd/intratemeter.cc
Examining data/xosview-1.22/bsd/intratemeter.h
Examining data/xosview-1.22/bsd/kernel.cc
Examining data/xosview-1.22/bsd/kernel.h
Examining data/xosview-1.22/bsd/loadmeter.cc
Examining data/xosview-1.22/bsd/loadmeter.h
Examining data/xosview-1.22/bsd/memmeter.cc
Examining data/xosview-1.22/bsd/memmeter.h
Examining data/xosview-1.22/bsd/netmeter.cc
Examining data/xosview-1.22/bsd/netmeter.h
Examining data/xosview-1.22/bsd/pagemeter.cc
Examining data/xosview-1.22/bsd/pagemeter.h
Examining data/xosview-1.22/bsd/sensor.cc
Examining data/xosview-1.22/bsd/sensor.h
Examining data/xosview-1.22/bsd/swapmeter.cc
Examining data/xosview-1.22/bsd/swapmeter.h
Examining data/xosview-1.22/fieldmeter.cc
Examining data/xosview-1.22/fieldmeter.h
Examining data/xosview-1.22/fieldmeterdecay.cc
Examining data/xosview-1.22/fieldmeterdecay.h
Examining data/xosview-1.22/fieldmetergraph.cc
Examining data/xosview-1.22/fieldmetergraph.h
Examining data/xosview-1.22/gnu/MeterMaker.cc
Examining data/xosview-1.22/gnu/MeterMaker.h
Examining data/xosview-1.22/gnu/get_def_pager.c
Examining data/xosview-1.22/gnu/get_def_pager.h
Examining data/xosview-1.22/gnu/loadmeter.cc
Examining data/xosview-1.22/gnu/loadmeter.h
Examining data/xosview-1.22/gnu/memmeter.cc
Examining data/xosview-1.22/gnu/memmeter.h
Examining data/xosview-1.22/gnu/pagemeter.cc
Examining data/xosview-1.22/gnu/pagemeter.h
Examining data/xosview-1.22/gnu/swapmeter.cc
Examining data/xosview-1.22/gnu/swapmeter.h
Examining data/xosview-1.22/hpux/MeterMaker.cc
Examining data/xosview-1.22/hpux/MeterMaker.h
Examining data/xosview-1.22/hpux/cpumeter.cc
Examining data/xosview-1.22/hpux/cpumeter.h
Examining data/xosview-1.22/hpux/loadmeter.cc
Examining data/xosview-1.22/hpux/loadmeter.h
Examining data/xosview-1.22/hpux/memmeter.cc
Examining data/xosview-1.22/hpux/memmeter.h
Examining data/xosview-1.22/hpux/pagemeter.cc
Examining data/xosview-1.22/hpux/pagemeter.h
Examining data/xosview-1.22/hpux/swapmeter.cc
Examining data/xosview-1.22/hpux/swapmeter.h
Examining data/xosview-1.22/irix65/MeterMaker.cc
Examining data/xosview-1.22/irix65/MeterMaker.h
Examining data/xosview-1.22/irix65/cpumeter.cc
Examining data/xosview-1.22/irix65/cpumeter.h
Examining data/xosview-1.22/irix65/diskmeter.cc
Examining data/xosview-1.22/irix65/diskmeter.h
Examining data/xosview-1.22/irix65/gfxmeter.cc
Examining data/xosview-1.22/irix65/gfxmeter.h
Examining data/xosview-1.22/irix65/loadmeter.cc
Examining data/xosview-1.22/irix65/loadmeter.h
Examining data/xosview-1.22/irix65/memmeter.cc
Examining data/xosview-1.22/irix65/memmeter.h
Examining data/xosview-1.22/irix65/sarmeter.cc
Examining data/xosview-1.22/irix65/sarmeter.h
Examining data/xosview-1.22/linux/MeterMaker.cc
Examining data/xosview-1.22/linux/MeterMaker.h
Examining data/xosview-1.22/linux/acpitemp.cc
Examining data/xosview-1.22/linux/acpitemp.h
Examining data/xosview-1.22/linux/btrymeter.cc
Examining data/xosview-1.22/linux/btrymeter.h
Examining data/xosview-1.22/linux/coretemp.cc
Examining data/xosview-1.22/linux/coretemp.h
Examining data/xosview-1.22/linux/cpumeter.cc
Examining data/xosview-1.22/linux/cpumeter.h
Examining data/xosview-1.22/linux/diskmeter.cc
Examining data/xosview-1.22/linux/diskmeter.h
Examining data/xosview-1.22/linux/intmeter.cc
Examining data/xosview-1.22/linux/intmeter.h
Examining data/xosview-1.22/linux/intratemeter.cc
Examining data/xosview-1.22/linux/intratemeter.h
Examining data/xosview-1.22/linux/lmstemp.cc
Examining data/xosview-1.22/linux/lmstemp.h
Examining data/xosview-1.22/linux/loadmeter.cc
Examining data/xosview-1.22/linux/loadmeter.h
Examining data/xosview-1.22/linux/memmeter.cc
Examining data/xosview-1.22/linux/memmeter.h
Examining data/xosview-1.22/linux/netmeter.cc
Examining data/xosview-1.22/linux/netmeter.h
Examining data/xosview-1.22/linux/nfsmeter.cc
Examining data/xosview-1.22/linux/nfsmeter.h
Examining data/xosview-1.22/linux/pagemeter.cc
Examining data/xosview-1.22/linux/pagemeter.h
Examining data/xosview-1.22/linux/raidmeter.cc
Examining data/xosview-1.22/linux/raidmeter.h
Examining data/xosview-1.22/linux/serialmeter.cc
Examining data/xosview-1.22/linux/serialmeter.h
Examining data/xosview-1.22/linux/swapmeter.cc
Examining data/xosview-1.22/linux/swapmeter.h
Examining data/xosview-1.22/linux/wirelessmeter.cc
Examining data/xosview-1.22/linux/wirelessmeter.h
Examining data/xosview-1.22/llist.cc
Examining data/xosview-1.22/llist.h
Examining data/xosview-1.22/main.cc
Examining data/xosview-1.22/meter.cc
Examining data/xosview-1.22/meter.h
Examining data/xosview-1.22/pllist.h
Examining data/xosview-1.22/sensorfieldmeter.cc
Examining data/xosview-1.22/sensorfieldmeter.h
Examining data/xosview-1.22/sunos5/MeterMaker.cc
Examining data/xosview-1.22/sunos5/MeterMaker.h
Examining data/xosview-1.22/sunos5/cpumeter.cc
Examining data/xosview-1.22/sunos5/cpumeter.h
Examining data/xosview-1.22/sunos5/diskmeter.cc
Examining data/xosview-1.22/sunos5/diskmeter.h
Examining data/xosview-1.22/sunos5/intratemeter.cc
Examining data/xosview-1.22/sunos5/intratemeter.h
Examining data/xosview-1.22/sunos5/kstats.h
Examining data/xosview-1.22/sunos5/loadmeter.cc
Examining data/xosview-1.22/sunos5/loadmeter.h
Examining data/xosview-1.22/sunos5/memmeter.cc
Examining data/xosview-1.22/sunos5/memmeter.h
Examining data/xosview-1.22/sunos5/netmeter.cc
Examining data/xosview-1.22/sunos5/netmeter.h
Examining data/xosview-1.22/sunos5/pagemeter.cc
Examining data/xosview-1.22/sunos5/pagemeter.h
Examining data/xosview-1.22/sunos5/swapmeter.cc
Examining data/xosview-1.22/sunos5/swapmeter.h
Examining data/xosview-1.22/timer.h
Examining data/xosview-1.22/timeval.h
Examining data/xosview-1.22/xosview.cc
Examining data/xosview-1.22/xosview.h
Examining data/xosview-1.22/xwin.cc
Examining data/xosview-1.22/xwin.h

FINAL RESULTS:

data/xosview-1.22/Xrm.cc:176:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access (xappfile, R_OK))
data/xosview-1.22/bsd/kernel.cc:915: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 ( sscanf(name, "%s%d", dummy, &nbr) == 2 && nbr > count )
data/xosview-1.22/bsd/kernel.cc:1034: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 ( sscanf(name, "%s%d", dummy, &nbr) == 2 ) {
data/xosview-1.22/irix65/sarmeter.cc:202:13:  [4] (shell) execlp:
  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 (execlp (sarPath, sarPath, "1", "31536000", 0) == -1)
data/xosview-1.22/linux/lmstemp.cc:248: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 ( sscanf(basename.c_str(), "%[a-z]%d_%s", type, &n, subtype) == 3 ) {
data/xosview-1.22/linux/lmstemp.cc:279: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 ( sscanf(basename.c_str(), "%[a-z]%d_%s", type, &n, subtype) == 3 ) {
data/xosview-1.22/linux/memmeter.cc:83:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, MEMFILENAME ": parse error, ':' expected at '%s'\n", line);
data/xosview-1.22/linux/memmeter.cc:92:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, MEMFILENAME ": parse error, '%s' is out of range\n", c);
data/xosview-1.22/linux/nfsmeter.cc:84:4:  [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(buf, "%s %lu %lu %lu %lu\n", name,
data/xosview-1.22/linux/nfsmeter.cc:89:4:  [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(buf, "%s %lu %lu\n", name, &calls, &badcalls);
data/xosview-1.22/linux/nfsmeter.cc:172: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.
		sscanf(buf, "%s %lu %lu %lu\n", name, &calls, &retrns, &authrefresh);
data/xosview-1.22/linux/raidmeter.cc:103:13:  [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).
    if(val) strcpy(state,val);
data/xosview-1.22/linux/raidmeter.cc:106:13:  [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).
    if(val) strcpy(type,val);
data/xosview-1.22/linux/raidmeter.cc:112:13:  [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).
    if(val) strcpy(working_map,val);
data/xosview-1.22/linux/raidmeter.cc:115:13:  [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).
    if(val) strcpy(resync_state,val);
data/xosview-1.22/xosview.h:81:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stderr, __VA_ARGS__); \
data/xosview-1.22/Xrm.cc:169:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char* xappdir = getenv ("XAPPLRESDIR");
data/xosview-1.22/Xrm.cc:200:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ( getenv( "HOME" ) != NULL ){
data/xosview-1.22/Xrm.cc:202:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *home = getenv("HOME");
data/xosview-1.22/Xrm.cc:211:19:  [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 ((xenvfile = getenv ("XENVIRONMENT")) != NULL)
data/xosview-1.22/Host.cc:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    _hent.h_aliases = new char *[_numAliases + 1];
data/xosview-1.22/Host.cc:91:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    _hent.h_addr_list = new char *[_numAddresses + 1];
data/xosview-1.22/Host.cc:94:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(_hent.h_addr_list[j], hent->h_addr_list[j], sizeof(in_addr));
data/xosview-1.22/Xrm.cc:65: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 frn[1024], fcn[1024];
data/xosview-1.22/Xrm.cc:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fcn_lower[1024];
data/xosview-1.22/Xrm.cc:137: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 rfilename[2048];
data/xosview-1.22/Xrm.cc:172: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 xappfile[1024];
data/xosview-1.22/Xrm.cc:201: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 userrfilename[1024];
data/xosview-1.22/Xrm.cc:225: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 className[256];
data/xosview-1.22/bitfieldmeter.cc:170: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 *tmp1, *tmp2, buff[100];
data/xosview-1.22/bitfieldmeter.cc:208:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[10];
data/xosview-1.22/bitfieldmeter.cc:214: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 scale[2];
data/xosview-1.22/bsd/MeterMaker.cc:97: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 caption[32];
data/xosview-1.22/bsd/MeterMaker.cc:102:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char name[5];
data/xosview-1.22/bsd/MeterMaker.cc:120: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 caption[16], l[8], s[16];
data/xosview-1.22/bsd/btrymeter.cc:37:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource("batteryPriority") );
data/xosview-1.22/bsd/coretemp.cc:43:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource( "coretempPriority" ) );
data/xosview-1.22/bsd/coretemp.cc:45: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).
	total_ = atoi( highest );
data/xosview-1.22/bsd/coretemp.cc:61: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 l[32];
data/xosview-1.22/bsd/coretemp.cc:67: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).
		high_ = atoi( high );
data/xosview-1.22/bsd/cpumeter.cc:30: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 t[8] = "CPU";
data/xosview-1.22/bsd/cpumeter.cc:47:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource("cpuPriority") );
data/xosview-1.22/bsd/diskmeter.cc:52:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource("diskPriority") );
data/xosview-1.22/bsd/intmeter.cc:54:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource( "intPriority" ) );
data/xosview-1.22/bsd/intratemeter.cc:39:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource("irqratePriority") );
data/xosview-1.22/bsd/kernel.cc:158:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char kernelFileName[_POSIX2_LINE_MAX];
data/xosview-1.22/bsd/kernel.cc:212: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 errstring[_POSIX2_LINE_MAX];
data/xosview-1.22/bsd/kernel.cc:257:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[25];
data/xosview-1.22/bsd/kernel.cc:639: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 da[3] = "da";
data/xosview-1.22/bsd/kernel.cc:904: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 dummy[30];
data/xosview-1.22/bsd/kernel.cc:1023: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 dummy[30];
data/xosview-1.22/bsd/kernel.cc:1144: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 dummy[20];
data/xosview-1.22/bsd/kernel.cc:1150:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( (fd = open(_PATH_SYSMON, O_RDONLY)) == -1 ) {
data/xosview-1.22/bsd/kernel.cc:1204: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 dummy[10];
data/xosview-1.22/bsd/kernel.cc:1238:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[25];
data/xosview-1.22/bsd/kernel.cc:1281: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 type[20];
data/xosview-1.22/bsd/kernel.cc:1286:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( (fd = open(_PATH_SYSMON, O_RDONLY)) == -1 ) {
data/xosview-1.22/bsd/kernel.cc:1321:5:  [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(unit, "\260C");
data/xosview-1.22/bsd/kernel.cc:1326:5:  [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(unit, "RPM");
data/xosview-1.22/bsd/kernel.cc:1338:5:  [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(unit, "Ah");
data/xosview-1.22/bsd/kernel.cc:1348:5:  [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(unit, "Wh");
data/xosview-1.22/bsd/kernel.cc:1358:5:  [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(unit, "Ohm");
data/xosview-1.22/bsd/kernel.cc:1365: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 dummy[50];
data/xosview-1.22/bsd/kernel.cc:1378: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(unit, "\260C");
data/xosview-1.22/bsd/kernel.cc:1425:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(unit, "\260C");
data/xosview-1.22/bsd/kernel.cc:1430:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(unit, "RPM");
data/xosview-1.22/bsd/kernel.cc:1441:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(unit, "Ohm");
data/xosview-1.22/bsd/kernel.cc:1456:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(unit, "Wh");
data/xosview-1.22/bsd/kernel.cc:1461:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(unit, "Ah");
data/xosview-1.22/bsd/kernel.cc:1471:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(unit, "lx");
data/xosview-1.22/bsd/kernel.cc:1487:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(unit, "Hz");
data/xosview-1.22/bsd/kernel.cc:1503:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(unit, "Pa");
data/xosview-1.22/bsd/kernel.cc:1508:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(unit, "m\\/s\262"); // m/s²
data/xosview-1.22/bsd/kernel.cc:1536:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( (fd = open(_PATH_SYSMON, O_RDONLY)) == -1 )
data/xosview-1.22/bsd/kernel.cc:1558:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( (fd = open(ACPIDEV, O_RDONLY)) == -1 ) {
data/xosview-1.22/bsd/kernel.cc:1560: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 ( (fd = open(APMDEV, O_RDONLY)) == -1 )
data/xosview-1.22/bsd/kernel.cc:1602:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( (fd = open(_PATH_SYSMON, O_RDONLY)) == -1 ) {
data/xosview-1.22/bsd/kernel.cc:1678: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 battery[16];
data/xosview-1.22/bsd/kernel.cc:1717:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( (fd = open(ACPIDEV, O_RDONLY)) == -1 ) {
data/xosview-1.22/bsd/kernel.cc:1719: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 ( (fd = open(APMDEV, O_RDONLY)) == -1 )
data/xosview-1.22/bsd/loadmeter.cc:41:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource("loadPriority") );
data/xosview-1.22/bsd/loadmeter.cc:51: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).
		warnThreshold_ = atoi(warn);
data/xosview-1.22/bsd/loadmeter.cc:57: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).
		critThreshold_ = atoi(crit);
data/xosview-1.22/bsd/loadmeter.cc:83: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 l[25];
data/xosview-1.22/bsd/memmeter.cc:50:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource("memPriority") );
data/xosview-1.22/bsd/netmeter.cc:48:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource("netPriority") );
data/xosview-1.22/bsd/pagemeter.cc:38:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource("pagePriority") );
data/xosview-1.22/bsd/sensor.cc:66:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource( "bsdsensorPriority" ) );
data/xosview-1.22/bsd/sensor.cc:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[32];
data/xosview-1.22/bsd/sensor.h:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name_[NAMESIZE], highname_[NAMESIZE], lowname_[NAMESIZE];
data/xosview-1.22/bsd/sensor.h:35: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 val_[NAMESIZE], highval_[NAMESIZE], lowval_[NAMESIZE];
data/xosview-1.22/bsd/swapmeter.cc:34:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi( parent_->getResource("swapPriority") );
data/xosview-1.22/fieldmeter.cc:137: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 *tmp1, *tmp2, buff[100];
data/xosview-1.22/fieldmeter.cc:181:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[10];
data/xosview-1.22/fieldmeter.cc:187: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 scale[2];
data/xosview-1.22/gnu/loadmeter.cc:40:15:  [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).
  priority_ = atoi (parent_->getResource( "loadPriority" ) );
data/xosview-1.22/gnu/loadmeter.cc:45: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).
  warnThreshold = atoi (parent_->getResource("loadWarnThreshold"));
data/xosview-1.22/gnu/loadmeter.cc:46: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).
  critThreshold = atoi (parent_->getResource("loadCritThreshold"));
data/xosview-1.22/gnu/memmeter.cc:34:15:  [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).
  priority_ = atoi (parent_->getResource( "memPriority" ) );
data/xosview-1.22/gnu/pagemeter.cc:41:15:  [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).
  priority_ = atoi (parent_->getResource( "pagePriority" ) );
data/xosview-1.22/gnu/swapmeter.cc:35:15:  [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).
  priority_ = atoi (parent_->getResource( "swapPriority" ) );
data/xosview-1.22/hpux/cpumeter.cc:31:15:  [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).
  priority_ = atoi (parent_->getResource( "cpuPriority" ) );
data/xosview-1.22/hpux/loadmeter.cc:27:15:  [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).
  priority_ = atoi (parent_->getResource( "loadPriority" ) );
data/xosview-1.22/hpux/loadmeter.cc:31: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).
  alarmThreshold = atoi (parent_->getResource("loadAlarmThreshold"));
data/xosview-1.22/hpux/memmeter.cc:30:15:  [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).
  priority_ = atoi (parent_->getResource( "memPriority" ) );
data/xosview-1.22/hpux/pagemeter.cc:31:15:  [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).
  priority_ = atoi (parent_->getResource( "pagePriority" ) );
data/xosview-1.22/hpux/swapmeter.cc:26:15:  [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).
  priority_ = atoi(parent_->getResource( "swapPriority" ) );
data/xosview-1.22/irix65/MeterMaker.cc:67: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).
        push(new GfxMeter( _xos, atoi( _xos->getResource( "gfxWarnThreshold" ))));
data/xosview-1.22/irix65/cpumeter.cc:42: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).
    priority_ = atoi(parent_->getResource("cpuPriority"));
data/xosview-1.22/irix65/cpumeter.cc:85:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[256];
data/xosview-1.22/irix65/cpumeter.cc:95:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[32];
data/xosview-1.22/irix65/diskmeter.cc:30: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).
    priority_ = atoi (parent_->getResource( "diskPriority" ) );
data/xosview-1.22/irix65/gfxmeter.cc:60: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).
    priority_ = atoi (parent_->getResource("gfxPriority"));
data/xosview-1.22/irix65/gfxmeter.cc:65: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).
    warnThreshold = atoi (parent_->getResource("gfxWarnThreshold")) * _nPipes;
data/xosview-1.22/irix65/gfxmeter.cc:66: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).
    critThreshold = atoi (parent_->getResource("gfxCritThreshold")) * _nPipes;
data/xosview-1.22/irix65/loadmeter.cc:50: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).
    priority_ = atoi (parent_->getResource("loadPriority"));
data/xosview-1.22/irix65/loadmeter.cc:55: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).
    warnThreshold = atoi (parent_->getResource("loadWarnThreshold"));
data/xosview-1.22/irix65/loadmeter.cc:56: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).
    critThreshold = atoi (parent_->getResource("loadCritThreshold"));
data/xosview-1.22/irix65/loadmeter.h:26: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 hostname[256];
data/xosview-1.22/irix65/memmeter.cc:41: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).
    priority_ = atoi (parent_->getResource("memPriority"));
data/xosview-1.22/irix65/sarmeter.cc:98:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy( &_gi.current, ptr, sizeof( gfxinfo ));
data/xosview-1.22/irix65/sarmeter.cc:113:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy( &num, ptr, 4 );
data/xosview-1.22/irix65/sarmeter.cc:127: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( &_di.current[i], ptr, sizeof( diskinfo ));
data/xosview-1.22/irix65/sarmeter.h:21: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[12];
data/xosview-1.22/irix65/sarmeter.h:22: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           pad1[68];
data/xosview-1.22/irix65/sarmeter.h:24: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           pad2[4];
data/xosview-1.22/irix65/sarmeter.h:79:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char   _buf[BUFSIZE];
data/xosview-1.22/linux/MeterMaker.cc:80: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).
    int RAIDCount = atoi(_xos->getResource("RAIDdevicecount"));
data/xosview-1.22/linux/MeterMaker.cc:163: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 caption[32], name[8] = "CPU";
data/xosview-1.22/linux/MeterMaker.cc:212: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 caption[16], s[16];
data/xosview-1.22/linux/MeterMaker.cc:235: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 caption[32];
data/xosview-1.22/linux/MeterMaker.cc:239:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[16];
data/xosview-1.22/linux/acpitemp.cc:52: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 temp[PATH_SIZE], high[PATH_SIZE];
data/xosview-1.22/linux/acpitemp.cc:106: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).
  total_ = atoi( parent_->getResourceOrUseDefault( "acpitempHighest", "100" ) );
data/xosview-1.22/linux/acpitemp.cc:107:15:  [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).
  priority_ = atoi( parent_->getResource( "acpitempPriority" ) );
data/xosview-1.22/linux/acpitemp.cc:147: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 l[16];
data/xosview-1.22/linux/acpitemp.h:35: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 _tempfile[PATH_SIZE];
data/xosview-1.22/linux/acpitemp.h:36: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 _highfile[PATH_SIZE];
data/xosview-1.22/linux/btrymeter.cc:71:6:  [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(APMFILENAME,O_RDONLY);
data/xosview-1.22/linux/btrymeter.cc:114: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 dirname[80], f[80];
data/xosview-1.22/linux/btrymeter.cc:131: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).
      type.open(f);
data/xosview-1.22/linux/btrymeter.cc:154:15:  [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).
  priority_ = atoi (parent_->getResource( "batteryPriority" ) );
data/xosview-1.22/linux/btrymeter.cc:335:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buff[256];
data/xosview-1.22/linux/btrymeter.cc:507: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).
  loadinfo.open(filename.c_str() );
data/xosview-1.22/linux/btrymeter.cc:516: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).
		battery.alarm = atoi(argval.c_str());
data/xosview-1.22/linux/btrymeter.cc:523: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).
  loadinfo.open(filename.c_str() );
data/xosview-1.22/linux/btrymeter.cc:535: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).
		battery.design_capacity=atoi(argval.c_str() );
data/xosview-1.22/linux/btrymeter.cc:538: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).
		battery.last_full_capacity=atoi(argval.c_str() );
data/xosview-1.22/linux/btrymeter.cc:541: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).
		battery.last_full_capacity=atoi(argval.c_str() );
data/xosview-1.22/linux/btrymeter.cc:548: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).
  loadinfo.open(filename.c_str() );
data/xosview-1.22/linux/btrymeter.cc:576: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).
		battery.last_full_capacity=atoi(argval.c_str() );
data/xosview-1.22/linux/btrymeter.cc:579: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).
		battery.last_full_capacity=atoi(argval.c_str() );
data/xosview-1.22/linux/btrymeter.cc:582: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).
		battery.remaining_capacity=atoi(argval.c_str() );
data/xosview-1.22/linux/btrymeter.cc:617: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).
  loadinfo.open(filename.c_str() );
data/xosview-1.22/linux/btrymeter.cc:622: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).
    battery.alarm = atoi(value.c_str());
data/xosview-1.22/linux/btrymeter.cc:631: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).
  loadinfo.open(filename.c_str() );
data/xosview-1.22/linux/btrymeter.cc:636: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).
    battery.design_capacity = atoi(value.c_str());
data/xosview-1.22/linux/btrymeter.cc:645: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).
  loadinfo.open(filename.c_str() );
data/xosview-1.22/linux/btrymeter.cc:650: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).
	loadinfo.open(filename.c_str());
data/xosview-1.22/linux/btrymeter.cc:657: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).
    battery.last_full_capacity = atoi(value.c_str());
data/xosview-1.22/linux/btrymeter.cc:666: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).
  loadinfo.open(filename.c_str() );
data/xosview-1.22/linux/btrymeter.cc:671: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).
    battery.remaining_capacity = atoi(value.c_str());
data/xosview-1.22/linux/btrymeter.cc:678: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).
  loadinfo.open(filename.c_str() );
data/xosview-1.22/linux/coretemp.cc:51:15:  [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).
  priority_ = atoi( parent_->getResource( "coretempPriority" ) );
data/xosview-1.22/linux/coretemp.cc:65:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file.open(dummy.c_str());
data/xosview-1.22/linux/coretemp.cc:72:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    total_ = atoi( parent_->getResourceOrUseDefault("coretempHighest", "100") );
data/xosview-1.22/linux/coretemp.cc:77:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char l[32];
data/xosview-1.22/linux/coretemp.cc:80:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file.open(dummy.c_str());
data/xosview-1.22/linux/coretemp.cc:94:15:  [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).
      _high = atoi(high);
data/xosview-1.22/linux/coretemp.cc:107:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[PATH_SIZE];
data/xosview-1.22/linux/coretemp.cc:126:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(gbuf.gl_pathv[i]);
data/xosview-1.22/linux/coretemp.cc:130:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(strrchr(gbuf.gl_pathv[i], '_'), "_input");
data/xosview-1.22/linux/coretemp.cc:151:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(name);
data/xosview-1.22/linux/coretemp.cc:155: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).
      file.open(name);
data/xosview-1.22/linux/coretemp.cc:202:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(_cpus.back().c_str());
data/xosview-1.22/linux/coretemp.cc:213: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).
      file.open(_cpus[i].c_str());
data/xosview-1.22/linux/coretemp.cc:227: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).
      file.open(_cpus[i].c_str());
data/xosview-1.22/linux/coretemp.cc:274:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[PATH_SIZE];
data/xosview-1.22/linux/coretemp.cc:294:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(gbuf.gl_pathv[i]);
data/xosview-1.22/linux/coretemp.cc:317:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(s);
data/xosview-1.22/linux/coretemp.cc:342:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[PATH_SIZE];
data/xosview-1.22/linux/coretemp.cc:371:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(s);
data/xosview-1.22/linux/cpumeter.cc:59:15:  [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).
  priority_ = atoi(parent_->getResource( "cpuPriority" ) );
data/xosview-1.22/linux/cpumeter.cc:318:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[32];
data/xosview-1.22/linux/cpumeter.cc:323:5:  [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(buffer, "cpu");
data/xosview-1.22/linux/cpumeter.cc:329:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[MAX_PROCSTAT_LENGTH];
data/xosview-1.22/linux/diskmeter.cc:69: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).
    priority_ = atoi (parent_->getResource( "diskPriority" ) );
data/xosview-1.22/linux/diskmeter.cc:137: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[MAX_PROCSTAT_LENGTH];
data/xosview-1.22/linux/diskmeter.cc:175: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[MAX_PROCSTAT_LENGTH];
data/xosview-1.22/linux/diskmeter.cc:281:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[128];
data/xosview-1.22/linux/diskmeter.cc:312: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).
      diskstat.open(disk.c_str());
data/xosview-1.22/linux/intmeter.cc:48:15:  [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).
  priority_ = atoi( parent_->getResource( "intPriority" ) );
data/xosview-1.22/linux/intratemeter.cc:35:15:  [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).
  priority_ = atoi( parent_->getResource("irqratePriority") );
data/xosview-1.22/linux/lmstemp.cc:245:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char type[16], subtype[32];
data/xosview-1.22/linux/lmstemp.cc:276:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char type[16], subtype[32];
data/xosview-1.22/linux/lmstemp.cc:281:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(unit_, "\260C");
data/xosview-1.22/linux/lmstemp.cc:286:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(unit_, "RPM");
data/xosview-1.22/linux/lmstemp.cc:305:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[32];
data/xosview-1.22/linux/lmstemp.cc:316:15:  [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).
  priority_ = atoi( parent_->getResource( "lmstempPriority" ) );
data/xosview-1.22/linux/loadmeter.cc:44:15:  [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).
  priority_ = atoi (parent_->getResource( "loadPriority" ) );
data/xosview-1.22/linux/loadmeter.cc:53: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).
      warnThreshold = atoi(warn);
data/xosview-1.22/linux/loadmeter.cc:60: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).
      critThreshold = atoi(crit);
data/xosview-1.22/linux/loadmeter.cc:85:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char l[32];
data/xosview-1.22/linux/loadmeter.cc:148: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).
      total_cpu += atoi(val.c_str());
data/xosview-1.22/linux/memmeter.cc:31:15:  [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).
  priority_ = atoi (parent_->getResource( "memPriority" ) );
data/xosview-1.22/linux/memmeter.cc:45: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(MEMFILENAME, "r");
data/xosview-1.22/linux/memmeter.cc:67: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[128];
data/xosview-1.22/linux/netmeter.cc:37: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(filename, "r");
data/xosview-1.22/linux/netmeter.cc:71:15:  [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).
  priority_ = atoi( parent_->getResource( "netPriority" ) );
data/xosview-1.22/linux/netmeter.cc:122: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 filename[128];
data/xosview-1.22/linux/nfsmeter.cc:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096], name[64];
data/xosview-1.22/linux/nfsmeter.cc:153:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096], name[64];
data/xosview-1.22/linux/pagemeter.cc:46:15:  [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).
  priority_ = atoi (parent_->getResource( "pagePriority" ) );
data/xosview-1.22/linux/pagemeter.cc:88: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[MAX_PROCSTAT_LENGTH];
data/xosview-1.22/linux/pagemeter.cc:115:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAX_PROCSTAT_LENGTH];
data/xosview-1.22/linux/raidmeter.cc:65: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).
  priority_  = atoi(parent_->getResource("RAIDPriority"));
data/xosview-1.22/linux/raidmeter.cc:74:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[80];
data/xosview-1.22/linux/raidmeter.cc:86:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[80];
data/xosview-1.22/linux/raidmeter.cc:109: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).
    if(val) disknum=atoi(val);
data/xosview-1.22/linux/raidmeter.cc:122: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 l[256];
data/xosview-1.22/linux/raidmeter.h:31: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 state[20],
data/xosview-1.22/linux/serialmeter.cc:66:15:  [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).
  priority_ = atoi (parent_->getResource( "serialPriority" ) );
data/xosview-1.22/linux/serialmeter.cc:131: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(deviceFile[dev], O_RDONLY|O_NONBLOCK)) < 0) {
data/xosview-1.22/linux/swapmeter.cc:25:15:  [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).
  priority_ = atoi (parent_->getResource( "swapPriority" ) );
data/xosview-1.22/linux/wirelessmeter.cc:34:15:  [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).
  priority_ = atoi(parent_->getResource( "wirelessPriority" ) );
data/xosview-1.22/linux/wirelessmeter.cc:53: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 buff[16];
data/xosview-1.22/linux/wirelessmeter.cc:128:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[8] = "WL";
data/xosview-1.22/sensorfieldmeter.cc:30: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 l[32], lscale[2], tscale[2];
data/xosview-1.22/sensorfieldmeter.h:26: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 unit_[8];
data/xosview-1.22/sunos5/cpumeter.cc:41:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi(parent_->getResource("cpuPriority"));
data/xosview-1.22/sunos5/cpumeter.cc:96:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[8] = "CPU";
data/xosview-1.22/sunos5/diskmeter.cc:30: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).
    priority_ = atoi( parent_->getResource("diskPriority") );
data/xosview-1.22/sunos5/intratemeter.cc:32:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi(parent_->getResource("irqratePriority"));
data/xosview-1.22/sunos5/loadmeter.cc:51:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi (parent_->getResource("loadPriority"));
data/xosview-1.22/sunos5/loadmeter.cc:61: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).
		warnThreshold = atoi(warn);
data/xosview-1.22/sunos5/loadmeter.cc:67: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).
		critThreshold = atoi(crit);
data/xosview-1.22/sunos5/loadmeter.cc:94: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 l[32];
data/xosview-1.22/sunos5/memmeter.cc:36:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi(parent_->getResource("memPriority"));
data/xosview-1.22/sunos5/netmeter.cc:44:15:  [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).
  priority_ = atoi( parent_->getResource("netPriority") );
data/xosview-1.22/sunos5/pagemeter.cc:35:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi(parent_->getResource("pagePriority"));
data/xosview-1.22/sunos5/swapmeter.cc:29:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	priority_ = atoi(parent_->getResource("swapPriority"));
data/xosview-1.22/xosview.cc:93:15:  [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).
  hmargin_  = atoi(getResource("horizontalMargin"));
data/xosview-1.22/xosview.cc:94:15:  [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).
  vmargin_  = atoi(getResource("verticalMargin"));
data/xosview-1.22/xosview.cc:95:15:  [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).
  vspacing_ = atoi(getResource("verticalSpacing"));
data/xosview-1.22/xosview.cc:256: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 host[100];
data/xosview-1.22/xosview.cc:258:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char name[101];	/*  We return a pointer to this,
data/xosview-1.22/xwin.cc:89: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).
  borderwidth_ = atoi(getResourceOrUseDefault("borderwidth", "1"));
data/xosview-1.22/xwin.cc:257: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                 default_geometry[80];
data/xosview-1.22/xwin.h:133: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		display_name_[256];  //  Display name string.
data/xosview-1.22/Host.cc:66: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).
    int hnamelen = strlen(hent->h_name) + 1;
data/xosview-1.22/Host.cc:68:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy((char *)_hent.h_name, hent->h_name, hnamelen);
data/xosview-1.22/Host.cc:73:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int len = strlen(hent->h_aliases[i]) + 1;
data/xosview-1.22/Host.cc:75:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(_hent.h_aliases[i], hent->h_aliases[i], len);
data/xosview-1.22/Xrm.cc:82:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fcn_lower, className(), 1024);
data/xosview-1.22/Xrm.cc:226:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(className, name, 255);  //  Avoid evil people out there...
data/xosview-1.22/bitfieldmeter.cc:178: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).
        memmove( tmp2, tmp2 + 1, strlen(tmp2) );
data/xosview-1.22/bitfieldmeter.cc:183:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( buff, tmp1, n );
data/xosview-1.22/bitfieldmeter.cc:243: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).
  parent_->drawString( x_ - (strlen( buf ) + 1 ) * onechar + 2,
data/xosview-1.22/bitfieldmeter.cc:365:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(fieldlegend);
data/xosview-1.22/bitfieldmeter.cc:367:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( fieldLegend_, fieldlegend, len );
data/xosview-1.22/bsd/kernel.cc:204: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(kernelName) >= _POSIX2_LINE_MAX)
data/xosview-1.22/bsd/kernel.cc:207:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(kernelFileName, kernelName, _POSIX2_LINE_MAX);
data/xosview-1.22/bsd/kernel.cc:238: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 ( strncmp(nlp->n_name, DUMMY_SYM, strlen(DUMMY_SYM))) {
data/xosview-1.22/bsd/kernel.cc:898: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).
		intrnames += strlen(intrnames) + 1;
data/xosview-1.22/bsd/kernel.cc:966: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).
		intrnames += strlen(intrnames) + 1;
data/xosview-1.22/bsd/kernel.cc:1016: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).
		kvm_intrnames += strlen(kvm_intrnames) + 1;
data/xosview-1.22/bsd/kernel.cc:1096:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		intrs += strlen(intrs) + 1;
data/xosview-1.22/bsd/kernel.cc:1333: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(unit, "V");
data/xosview-1.22/bsd/kernel.cc:1343: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(unit, "A");
data/xosview-1.22/bsd/kernel.cc:1353: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(unit, "W");
data/xosview-1.22/bsd/kernel.cc:1407: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 ( strncmp(sensor_type_s[t], valname, strlen(sensor_type_s[t])) )
data/xosview-1.22/bsd/kernel.cc:1436:7:  [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(unit, "V");
data/xosview-1.22/bsd/kernel.cc:1446:7:  [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(unit, "W");
data/xosview-1.22/bsd/kernel.cc:1451:7:  [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(unit, "A");
data/xosview-1.22/bsd/kernel.cc:1466:7:  [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(unit, "%");
data/xosview-1.22/bsd/kernel.cc:1476:7:  [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(unit, "s");
data/xosview-1.22/bsd/kernel.cc:1482:7:  [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(unit, "%");
data/xosview-1.22/bsd/kernel.cc:1492:7:  [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(unit, "\260");
data/xosview-1.22/bsd/kernel.cc:1498:7:  [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(unit, "m");
data/xosview-1.22/bsd/sensor.cc:29:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(name_, tmp.c_str(), NAMESIZE);
data/xosview-1.22/bsd/sensor.cc:31:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(val_, tmp.c_str(), NAMESIZE);
data/xosview-1.22/bsd/sensor.cc:37:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(highname_, tmp.c_str(), NAMESIZE);
data/xosview-1.22/bsd/sensor.cc:39:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(highval_, tmp.c_str(), NAMESIZE);
data/xosview-1.22/bsd/sensor.cc:47:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(lowname_, tmp.c_str(), NAMESIZE);
data/xosview-1.22/bsd/sensor.cc:49:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(lowval_, tmp.c_str(), NAMESIZE);
data/xosview-1.22/bsd/sensor.cc:95:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( strlen(highname_) )
data/xosview-1.22/bsd/sensor.cc:97:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( strlen(lowname_) )
data/xosview-1.22/fieldmeter.cc:151: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).
        memmove( tmp2, tmp2 + 1, strlen(tmp2) );
data/xosview-1.22/fieldmeter.cc:156:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( buff, tmp1, n );
data/xosview-1.22/fieldmeter.cc:216: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).
  parent_->drawString( x_ - (strlen( buf ) + 1 ) * onechar + 2,
data/xosview-1.22/irix65/cpumeter.cc:86:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, str, 256);
data/xosview-1.22/irix65/sarmeter.cc:33:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        _di.info.read[i] = 0;
data/xosview-1.22/irix65/sarmeter.cc:42:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int ret = read( _input, &_buf[_bufSize], 100);
data/xosview-1.22/irix65/sarmeter.cc:155:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        _di.info.read[i]  = 
data/xosview-1.22/irix65/sarmeter.cc:162:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        _di.info.read[i] *= 512;
data/xosview-1.22/irix65/sarmeter.h:44:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        unsigned int read[MAX_DISKS];
data/xosview-1.22/linux/acpitemp.cc:69:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_tempfile, tempfile, PATH_SIZE);
data/xosview-1.22/linux/acpitemp.cc:70:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_highfile, highfile, PATH_SIZE);
data/xosview-1.22/linux/acpitemp.cc:79:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_tempfile, temp, PATH_SIZE);
data/xosview-1.22/linux/acpitemp.cc:80:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_highfile, high, PATH_SIZE);
data/xosview-1.22/linux/acpitemp.cc:91:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_tempfile, temp, PATH_SIZE);
data/xosview-1.22/linux/acpitemp.cc:92:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_highfile, high, PATH_SIZE);
data/xosview-1.22/linux/cpumeter.cc:291:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (!strncmp(cpuID, buf.data(), strlen(cpuID))
data/xosview-1.22/linux/cpumeter.cc:292: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).
        && buf[strlen(cpuID)] == ' ')
data/xosview-1.22/linux/cpumeter.cc:330:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buffer, str, MAX_PROCSTAT_LENGTH);
data/xosview-1.22/linux/lmstemp.cc:249:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (( !strncmp(type, "in", strlen(type)) &&
data/xosview-1.22/linux/lmstemp.cc:250:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          !strncmp(subtype, "input", strlen(subtype)) ) ||
data/xosview-1.22/linux/lmstemp.cc:251: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).
        ( !strncmp(type, "temp", strlen(type)) &&
data/xosview-1.22/linux/lmstemp.cc:252:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          !strncmp(subtype, "input", strlen(subtype)) ) ||
data/xosview-1.22/linux/lmstemp.cc:253: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).
        ( !strncmp(type, "temp", strlen(type)) &&
data/xosview-1.22/linux/lmstemp.cc:254: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).
          !strncmp(subtype, "offset", strlen(subtype)) ) ||
data/xosview-1.22/linux/lmstemp.cc:255: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).
        ( !strncmp(type, "curr", strlen(type)) &&
data/xosview-1.22/linux/lmstemp.cc:256:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          !strncmp(subtype, "input", strlen(subtype)) ) ||
data/xosview-1.22/linux/lmstemp.cc:257:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ( !strncmp(type, "power", strlen(type)) &&
data/xosview-1.22/linux/lmstemp.cc:258:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          !strncmp(subtype, "average_interval", strlen(subtype)) ) ||
data/xosview-1.22/linux/lmstemp.cc:259: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).
        ( !strncmp(type, "cpu", strlen(type)) &&
data/xosview-1.22/linux/lmstemp.cc:260: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).
          !strncmp(subtype, "vid", strlen(subtype)) )) {
data/xosview-1.22/linux/lmstemp.cc:264:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (( !strncmp(type, "power", strlen(type)) &&
data/xosview-1.22/linux/lmstemp.cc:265: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).
          !strncmp(subtype, "average", strlen(subtype)) ) ||
data/xosview-1.22/linux/lmstemp.cc:266: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).
        ( !strncmp(type, "energy", strlen(type)) &&
data/xosview-1.22/linux/lmstemp.cc:267:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          !strncmp(subtype, "input", strlen(subtype)) )) {
data/xosview-1.22/linux/lmstemp.cc:280:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ( !strncmp(type, "temp", strlen(type)) )
data/xosview-1.22/linux/lmstemp.cc:282: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).
    else if ( !strncmp(type, "in", strlen(type)) ||
data/xosview-1.22/linux/lmstemp.cc:283: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).
              !strncmp(subtype, "vid", strlen(type)) )
data/xosview-1.22/linux/lmstemp.cc:284:7:  [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(unit_, "V");
data/xosview-1.22/linux/lmstemp.cc:285:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if ( !strncmp(type, "fan", strlen(type)) )
data/xosview-1.22/linux/lmstemp.cc:287: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).
    else if ( !strncmp(type, "power", strlen(type)) ) {
data/xosview-1.22/linux/lmstemp.cc:288:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ( strncmp(subtype, "average_interval", strlen(type)) )
data/xosview-1.22/linux/lmstemp.cc:289:9:  [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(unit_, "s");
data/xosview-1.22/linux/lmstemp.cc:291:9:  [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(unit_, "W");
data/xosview-1.22/linux/lmstemp.cc:293: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).
    else if ( !strncmp(type, "energy", strlen(type)) )
data/xosview-1.22/linux/lmstemp.cc:294:7:  [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(unit_, "J");
data/xosview-1.22/linux/lmstemp.cc:295:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if ( !strncmp(type, "curr", strlen(type)) )
data/xosview-1.22/linux/lmstemp.cc:296:7:  [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(unit_, "A");
data/xosview-1.22/linux/lmstemp.cc:297: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).
    else if ( !strncmp(type, "humidity", strlen(type)) )
data/xosview-1.22/linux/lmstemp.cc:298:7:  [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(unit_, "%");
data/xosview-1.22/linux/nfsmeter.cc:83:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp("net", buf, strlen("net")) == 0) {
data/xosview-1.22/linux/nfsmeter.cc:88:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp("rpc", buf, strlen("rpc")) == 0) {
data/xosview-1.22/linux/nfsmeter.cc:170:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp("rpc", buf, strlen("rpc")))
data/xosview-1.22/linux/raidmeter.cc:78:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, os.str().c_str(), 80);
data/xosview-1.22/linux/raidmeter.cc:90:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, os.str().c_str(), 80);
data/xosview-1.22/meter.cc:42:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(title);
data/xosview-1.22/meter.cc:44:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( title_, title, len );
data/xosview-1.22/meter.cc:53:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int len = strlen(legend);
data/xosview-1.22/meter.cc:55:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( legend_, legend, len );
data/xosview-1.22/sensorfieldmeter.cc:36:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ( strlen(unit_) )
data/xosview-1.22/sensorfieldmeter.cc:43:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ( strlen(unit_) )
data/xosview-1.22/sensorfieldmeter.cc:50:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ( strlen(unit_) )
data/xosview-1.22/sensorfieldmeter.cc:59:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ( strlen(unit_) )
data/xosview-1.22/sensorfieldmeter.cc:66:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ( strlen(unit_) )
data/xosview-1.22/sensorfieldmeter.cc:72:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ( strlen(unit_) )
data/xosview-1.22/sunos5/netmeter.cc:89:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(_lfr.lifr_name, ksp->ks_name, sizeof(_lfr.lifr_name));
data/xosview-1.22/sunos5/netmeter.cc:115:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(_lfr.lifr_name, ksp->ks_name, sizeof(_lfr.lifr_name));
data/xosview-1.22/xosview.cc:350:22:  [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.
    if (usleeptime_) usleep( (unsigned int)usleeptime_);
data/xosview-1.22/xosview.cc:389: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).
      case 'N': if (strlen(argv[0]) > 2)
data/xosview-1.22/xwin.h:70:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    { XDrawString( display_, window_, gc_, x, y, str, strlen( str ) ); }
data/xosview-1.22/xwin.h:76: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).
    { return textWidth( str, strlen( str ) ); }
data/xosview-1.22/xwin.h:142:56:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  void setDisplayName (const char* new_display_name) { strncpy

ANALYSIS SUMMARY:

Hits = 358
Lines analyzed = 16563 in approximately 0.43 seconds (38112 lines/second)
Physical Source Lines of Code (SLOC) = 11984
Hits@level = [0] 138 [1] 109 [2] 229 [3]   4 [4]  16 [5]   0
Hits@level+ = [0+] 496 [1+] 358 [2+] 249 [3+]  20 [4+]  16 [5+]   0
Hits/KSLOC@level+ = [0+] 41.3885 [1+] 29.8732 [2+] 20.7777 [3+] 1.66889 [4+] 1.33511 [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.