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/mspdebug-0.22/drivers/bsl.c
Examining data/mspdebug-0.22/drivers/bsl.h
Examining data/mspdebug-0.22/drivers/device.c
Examining data/mspdebug-0.22/drivers/device.h
Examining data/mspdebug-0.22/drivers/devicelist.c
Examining data/mspdebug-0.22/drivers/devicelist.h
Examining data/mspdebug-0.22/drivers/fet.c
Examining data/mspdebug-0.22/drivers/fet.h
Examining data/mspdebug-0.22/drivers/fet_core.c
Examining data/mspdebug-0.22/drivers/fet_core.h
Examining data/mspdebug-0.22/drivers/fet_db.c
Examining data/mspdebug-0.22/drivers/fet_db.h
Examining data/mspdebug-0.22/drivers/fet_error.c
Examining data/mspdebug-0.22/drivers/fet_error.h
Examining data/mspdebug-0.22/drivers/fet_olimex_db.c
Examining data/mspdebug-0.22/drivers/fet_olimex_db.h
Examining data/mspdebug-0.22/drivers/fet_proto.c
Examining data/mspdebug-0.22/drivers/fet_proto.h
Examining data/mspdebug-0.22/drivers/flash_bsl.c
Examining data/mspdebug-0.22/drivers/flash_bsl.h
Examining data/mspdebug-0.22/drivers/gdbc.c
Examining data/mspdebug-0.22/drivers/gdbc.h
Examining data/mspdebug-0.22/drivers/goodfet.c
Examining data/mspdebug-0.22/drivers/goodfet.h
Examining data/mspdebug-0.22/drivers/jtaglib.c
Examining data/mspdebug-0.22/drivers/jtaglib.h
Examining data/mspdebug-0.22/drivers/jtdev.c
Examining data/mspdebug-0.22/drivers/jtdev.h
Examining data/mspdebug-0.22/drivers/obl.c
Examining data/mspdebug-0.22/drivers/obl.h
Examining data/mspdebug-0.22/drivers/pif.c
Examining data/mspdebug-0.22/drivers/pif.h
Examining data/mspdebug-0.22/drivers/sim.c
Examining data/mspdebug-0.22/drivers/sim.h
Examining data/mspdebug-0.22/drivers/tilib.c
Examining data/mspdebug-0.22/drivers/tilib.h
Examining data/mspdebug-0.22/drivers/tilib_defs.h
Examining data/mspdebug-0.22/formats/binfile.c
Examining data/mspdebug-0.22/formats/binfile.h
Examining data/mspdebug-0.22/formats/coff.c
Examining data/mspdebug-0.22/formats/coff.h
Examining data/mspdebug-0.22/formats/elf32.c
Examining data/mspdebug-0.22/formats/elf32.h
Examining data/mspdebug-0.22/formats/elf_format.h
Examining data/mspdebug-0.22/formats/ihex.c
Examining data/mspdebug-0.22/formats/ihex.h
Examining data/mspdebug-0.22/formats/srec.c
Examining data/mspdebug-0.22/formats/srec.h
Examining data/mspdebug-0.22/formats/symmap.c
Examining data/mspdebug-0.22/formats/symmap.h
Examining data/mspdebug-0.22/formats/titext.c
Examining data/mspdebug-0.22/formats/titext.h
Examining data/mspdebug-0.22/simio/simio.c
Examining data/mspdebug-0.22/simio/simio.h
Examining data/mspdebug-0.22/simio/simio_console.c
Examining data/mspdebug-0.22/simio/simio_console.h
Examining data/mspdebug-0.22/simio/simio_cpu.h
Examining data/mspdebug-0.22/simio/simio_device.h
Examining data/mspdebug-0.22/simio/simio_gpio.c
Examining data/mspdebug-0.22/simio/simio_gpio.h
Examining data/mspdebug-0.22/simio/simio_hwmult.c
Examining data/mspdebug-0.22/simio/simio_hwmult.h
Examining data/mspdebug-0.22/simio/simio_timer.c
Examining data/mspdebug-0.22/simio/simio_timer.h
Examining data/mspdebug-0.22/simio/simio_tracer.c
Examining data/mspdebug-0.22/simio/simio_tracer.h
Examining data/mspdebug-0.22/simio/simio_wdt.c
Examining data/mspdebug-0.22/simio/simio_wdt.h
Examining data/mspdebug-0.22/transport/cdc_acm.c
Examining data/mspdebug-0.22/transport/cdc_acm.h
Examining data/mspdebug-0.22/transport/comport.c
Examining data/mspdebug-0.22/transport/comport.h
Examining data/mspdebug-0.22/transport/cp210x.c
Examining data/mspdebug-0.22/transport/cp210x.h
Examining data/mspdebug-0.22/transport/ftdi.c
Examining data/mspdebug-0.22/transport/ftdi.h
Examining data/mspdebug-0.22/transport/rf2500.c
Examining data/mspdebug-0.22/transport/rf2500.h
Examining data/mspdebug-0.22/transport/ti3410.c
Examining data/mspdebug-0.22/transport/ti3410.h
Examining data/mspdebug-0.22/transport/transport.h
Examining data/mspdebug-0.22/ui/aliasdb.c
Examining data/mspdebug-0.22/ui/aliasdb.h
Examining data/mspdebug-0.22/ui/cmddb.c
Examining data/mspdebug-0.22/ui/cmddb.h
Examining data/mspdebug-0.22/ui/devcmd.c
Examining data/mspdebug-0.22/ui/devcmd.h
Examining data/mspdebug-0.22/ui/flatfile.c
Examining data/mspdebug-0.22/ui/flatfile.h
Examining data/mspdebug-0.22/ui/gdb.c
Examining data/mspdebug-0.22/ui/gdb.h
Examining data/mspdebug-0.22/ui/input.c
Examining data/mspdebug-0.22/ui/input.h
Examining data/mspdebug-0.22/ui/input_async.c
Examining data/mspdebug-0.22/ui/input_async.h
Examining data/mspdebug-0.22/ui/input_console.c
Examining data/mspdebug-0.22/ui/input_console.h
Examining data/mspdebug-0.22/ui/main.c
Examining data/mspdebug-0.22/ui/power.c
Examining data/mspdebug-0.22/ui/power.h
Examining data/mspdebug-0.22/ui/reader.c
Examining data/mspdebug-0.22/ui/reader.h
Examining data/mspdebug-0.22/ui/rtools.c
Examining data/mspdebug-0.22/ui/rtools.h
Examining data/mspdebug-0.22/ui/stdcmd.c
Examining data/mspdebug-0.22/ui/stdcmd.h
Examining data/mspdebug-0.22/ui/sym.c
Examining data/mspdebug-0.22/ui/sym.h
Examining data/mspdebug-0.22/util/btree.c
Examining data/mspdebug-0.22/util/btree.h
Examining data/mspdebug-0.22/util/ctrlc.c
Examining data/mspdebug-0.22/util/ctrlc.h
Examining data/mspdebug-0.22/util/demangle.c
Examining data/mspdebug-0.22/util/demangle.h
Examining data/mspdebug-0.22/util/dis.c
Examining data/mspdebug-0.22/util/dis.h
Examining data/mspdebug-0.22/util/dynload.c
Examining data/mspdebug-0.22/util/dynload.h
Examining data/mspdebug-0.22/util/expr.c
Examining data/mspdebug-0.22/util/expr.h
Examining data/mspdebug-0.22/util/gdb_proto.c
Examining data/mspdebug-0.22/util/gdb_proto.h
Examining data/mspdebug-0.22/util/list.c
Examining data/mspdebug-0.22/util/list.h
Examining data/mspdebug-0.22/util/opdb.c
Examining data/mspdebug-0.22/util/opdb.h
Examining data/mspdebug-0.22/util/output.c
Examining data/mspdebug-0.22/util/output.h
Examining data/mspdebug-0.22/util/output_util.c
Examining data/mspdebug-0.22/util/output_util.h
Examining data/mspdebug-0.22/util/powerbuf.c
Examining data/mspdebug-0.22/util/powerbuf.h
Examining data/mspdebug-0.22/util/prog.c
Examining data/mspdebug-0.22/util/prog.h
Examining data/mspdebug-0.22/util/sockets.c
Examining data/mspdebug-0.22/util/sockets.h
Examining data/mspdebug-0.22/util/sport.c
Examining data/mspdebug-0.22/util/sport.h
Examining data/mspdebug-0.22/util/stab.c
Examining data/mspdebug-0.22/util/stab.h
Examining data/mspdebug-0.22/util/thread.h
Examining data/mspdebug-0.22/util/usbutil.c
Examining data/mspdebug-0.22/util/usbutil.h
Examining data/mspdebug-0.22/util/util.c
Examining data/mspdebug-0.22/util/util.h
Examining data/mspdebug-0.22/util/vector.c
Examining data/mspdebug-0.22/util/vector.h

FINAL RESULTS:

data/mspdebug-0.22/ui/main.c:161:8:  [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(".mspdebug", F_OK)) {
data/mspdebug-0.22/ui/main.c:169: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(text, F_OK))
data/mspdebug-0.22/ui/reader.c:117:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(repeat_buf, sizeof(repeat_buf), fmt, ap);
data/mspdebug-0.22/util/gdb_proto.c:45:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(data->outbuf + data->outlen,
data/mspdebug-0.22/util/output.c:238:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, sizeof(buf), fmt, ap);
data/mspdebug-0.22/util/output.c:253:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, sizeof(buf), fmt, ap);
data/mspdebug-0.22/util/output.c:265:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, sizeof(buf), fmt, ap);
data/mspdebug-0.22/util/output.c:280:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, sizeof(buf), fmt, ap);
data/mspdebug-0.22/util/output.h:31:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format (printf, 1, 2)));
data/mspdebug-0.22/util/output.h:33:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format (printf, 1, 2)));
data/mspdebug-0.22/util/output.h:35:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format (printf, 1, 2)));
data/mspdebug-0.22/util/output.h:37:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format (printf, 1, 2)));
data/mspdebug-0.22/transport/ti3410.c:382: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.
	env = getenv("MSPDEBUG_TI3410_FW");
data/mspdebug-0.22/ui/main.c:164:23:  [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.
			const char *home = getenv("HOME");
data/mspdebug-0.22/ui/main.c:258:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "d:jv:nU:s:qC:",
data/mspdebug-0.22/util/ctrlc.c:42:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&ctrlc_cs);
data/mspdebug-0.22/util/ctrlc.c:57:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ctrlc_cs);
data/mspdebug-0.22/util/ctrlc.c:66:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ctrlc_cs);
data/mspdebug-0.22/util/ctrlc.c:74:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&ctrlc_cs);
data/mspdebug-0.22/util/dynload.c:26:9:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	return LoadLibrary(filename);
data/mspdebug-0.22/util/thread.h:59:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(lock);
data/mspdebug-0.22/util/thread.h:69:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(lock);
data/mspdebug-0.22/util/util.c:240:10:  [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.
		home = getenv("HOME");
data/mspdebug-0.22/drivers/bsl.c:113:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pktbuf + 8, data, len);
data/mspdebug-0.22/drivers/bsl.c:311:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(mem, dev->reply_buf + 4, count);
data/mspdebug-0.22/drivers/device.h:89: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).
	device_t (*open)(const struct device_args *args);
data/mspdebug-0.22/drivers/fet_core.c:146: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 idtext[64];
data/mspdebug-0.22/drivers/fet_core.c:156:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(idtext, dev->proto.data + 4, 32);
data/mspdebug-0.22/drivers/fet_core.c:465: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 text[256];
data/mspdebug-0.22/drivers/fet_core.c:827:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buffer, dev->proto.data, plen);
data/mspdebug-0.22/drivers/fet_proto.c:104:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pbuf + 4, data, plen);
data/mspdebug-0.22/drivers/fet_proto.c:293:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(datapkt + len, extra, exlen);
data/mspdebug-0.22/drivers/flash_bsl.c:123:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd_buf + 3, data, len);
data/mspdebug-0.22/drivers/flash_bsl.c:312:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(mem, recv_buf + 1, ret - 1);
data/mspdebug-0.22/drivers/flash_bsl.c:515:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&send_buf[4], mem, write_size);
data/mspdebug-0.22/drivers/gdbc.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[GDB_BUF_SIZE];
data/mspdebug-0.22/drivers/gdbc.c:83: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[GDB_BUF_SIZE];
data/mspdebug-0.22/drivers/gdbc.c:150: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[GDB_BUF_SIZE];
data/mspdebug-0.22/drivers/gdbc.c:196: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[GDB_BUF_SIZE];
data/mspdebug-0.22/drivers/gdbc.c:321: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[GDB_BUF_SIZE];
data/mspdebug-0.22/drivers/gdbc.c:346: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[GDB_BUF_SIZE];
data/mspdebug-0.22/drivers/gdbc.c:379:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[128];
data/mspdebug-0.22/drivers/gdbc.c:391:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(port_text + 1);
data/mspdebug-0.22/drivers/gdbc.c:399:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(hostname, spec, hn_len);
data/mspdebug-0.22/drivers/goodfet.c:128:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(raw + 4, data, len);
data/mspdebug-0.22/drivers/goodfet.c:182: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 text[MAX_LEN + 1];
data/mspdebug-0.22/drivers/goodfet.c:184:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(text, pkt->data, pkt->len);
data/mspdebug-0.22/drivers/goodfet.c:229:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data, pkt.data, pkt.len);
data/mspdebug-0.22/drivers/goodfet.c:267:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(req + 4, data, len);
data/mspdebug-0.22/drivers/jtdev.c:95: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).
	p->port = open(device, O_RDWR);
data/mspdebug-0.22/drivers/obl.c:136:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *in = fopen(filename, "rb");
data/mspdebug-0.22/drivers/obl.c:218:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd + 9, data, size);
data/mspdebug-0.22/drivers/obl.c:248:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(partial, data + i, size - i);
data/mspdebug-0.22/drivers/sim.c:625:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mem, dev->memory + addr, len);
data/mspdebug-0.22/drivers/sim.c:656:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dev->memory + addr, mem, len);
data/mspdebug-0.22/drivers/tilib.c:49: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			uifPath[1024];
data/mspdebug-0.22/formats/coff.c:372: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 namebuf[9];
data/mspdebug-0.22/formats/coff.c:376:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(namebuf, entry, 8);
data/mspdebug-0.22/formats/elf32.c:54:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(e->e_ident, data, EI_NIDENT);
data/mspdebug-0.22/formats/elf_format.h:67: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.
  unsigned char	e_ident[EI_NIDENT];	/* Magic number and other info */
data/mspdebug-0.22/formats/elf_format.h: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.
  unsigned char	e_ident[EI_NIDENT];	/* Magic number and other info */
data/mspdebug-0.22/formats/ihex.c:105: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[128];
data/mspdebug-0.22/formats/srec.c:27: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[128];
data/mspdebug-0.22/formats/srec.c:50: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[128];
data/mspdebug-0.22/formats/symmap.c:26: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[128];
data/mspdebug-0.22/formats/symmap.c:51: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[128];
data/mspdebug-0.22/formats/titext.c:62: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[64];
data/mspdebug-0.22/formats/titext.c:139: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[128];
data/mspdebug-0.22/simio/simio_console.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			buffer[256];
data/mspdebug-0.22/simio/simio_device.h:60: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[64];
data/mspdebug-0.22/simio/simio_tracer.c:71: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[128];
data/mspdebug-0.22/transport/cdc_acm.c:45: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			rbuf[READ_BUFFER_SIZE];
data/mspdebug-0.22/transport/cdc_acm.c:108:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(databuf, tr->rbuf + tr->rbuf_ptr, len);
data/mspdebug-0.22/transport/cdc_acm.c:126: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[64];
data/mspdebug-0.22/transport/cdc_acm.c:218: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 drName[256];
data/mspdebug-0.22/transport/cp210x.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char drName[256];
data/mspdebug-0.22/transport/cp210x.c:265: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[64];
data/mspdebug-0.22/transport/ftdi.c:111: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 drv_name[128];
data/mspdebug-0.22/transport/ftdi.c:171: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 tmpbuf[FTDI_PACKET_SIZE];
data/mspdebug-0.22/transport/ftdi.c:188:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(databuf, tmpbuf + 2, r - 2);
data/mspdebug-0.22/transport/rf2500.c:121:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pbuf + 1, data, plen);
data/mspdebug-0.22/transport/rf2500.c:176:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(databuf, tr->buf + tr->offset, rlen);
data/mspdebug-0.22/transport/rf2500.c:196: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[64];
data/mspdebug-0.22/transport/ti3410.c:376:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256];
data/mspdebug-0.22/transport/ti3410.c:386:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		in = fopen(path, "r");
data/mspdebug-0.22/transport/ti3410.c:394: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).
	in = fopen(path, "r");
data/mspdebug-0.22/transport/ti3410.c:400: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).
	in = fopen(path, "r");
data/mspdebug-0.22/transport/ti3410.c:423:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(f->buf + f->size, ch->data, ch->len);
data/mspdebug-0.22/ui/aliasdb.c:29: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	src[256];
data/mspdebug-0.22/ui/aliasdb.c: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	dst[256];
data/mspdebug-0.22/ui/aliasdb.c:83: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 tmp_buf[1024];
data/mspdebug-0.22/ui/aliasdb.c:152:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(a, end, sizeof(*a));
data/mspdebug-0.22/ui/cmddb.c:382:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret, found, sizeof(*ret));
data/mspdebug-0.22/ui/devcmd.c:400:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	hexout->file = fopen(path, "w");
data/mspdebug-0.22/ui/devcmd.c:499:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(hexout->buf + hexout->len, buf, count);
data/mspdebug-0.22/ui/devcmd.c:590: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).
	in = fopen(path, "rb");
data/mspdebug-0.22/ui/devcmd.c:747: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[128];
data/mspdebug-0.22/ui/flatfile.c:47: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).
	in = fopen(fullpath, "rb");
data/mspdebug-0.22/ui/flatfile.c:92:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out = fopen(fullpath, "wb");
data/mspdebug-0.22/ui/gdb.c: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    buf[GDB_MAX_XFER];
data/mspdebug-0.22/ui/gdb.c:80:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mb->buf + mb->len, text, len);
data/mspdebug-0.22/ui/gdb.c:87: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 cmd[128];
data/mspdebug-0.22/ui/gdb.c:312: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 *parts[2];
data/mspdebug-0.22/ui/gdb.c:327:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	switch (atoi(parts[0])) {
data/mspdebug-0.22/ui/gdb.c:455: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[GDB_BUF_SIZE];
data/mspdebug-0.22/ui/input_async.c:57: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			text[MAX_LINE_LENGTH];
data/mspdebug-0.22/ui/input_async.c:85: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[MAX_LINE_LENGTH];
data/mspdebug-0.22/ui/input_console.c:100: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[32];
data/mspdebug-0.22/ui/main.c:158: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 text[256];
data/mspdebug-0.22/ui/main.c:328:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			args->devarg.vcc_mv = atoi(optarg);
data/mspdebug-0.22/ui/main.c:387:36:  [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).
	device_default = driver_table[i]->open(&args->devarg);
data/mspdebug-0.22/ui/power.c: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 addr[128];
data/mspdebug-0.22/ui/power.c:110:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		request = atoi(text);
data/mspdebug-0.22/ui/power.c:151:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	sess = atoi(sess_text);
data/mspdebug-0.22/ui/power.c:179:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	sess = atoi(sess_text);
data/mspdebug-0.22/ui/power.c:187:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out = fopen(filename, "w");
data/mspdebug-0.22/ui/power.c:219: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[64];
data/mspdebug-0.22/ui/reader.c:41: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 repeat_buf[MAX_READER_LINE];
data/mspdebug-0.22/ui/reader.c:73: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 translated[1024];
data/mspdebug-0.22/ui/reader.c:137:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tmpbuf[MAX_READER_LINE];
data/mspdebug-0.22/ui/reader.c:170: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[1024], *path;
data/mspdebug-0.22/ui/reader.c:177: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).
	in = fopen(path, "r");
data/mspdebug-0.22/ui/rtools.c:638:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(l + 1, n, sizeof(*l));
data/mspdebug-0.22/ui/rtools.c:665:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(l + 1, e, sizeof(*l));
data/mspdebug-0.22/ui/rtools.c:793: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[64];
data/mspdebug-0.22/ui/rtools.c:826: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[64];
data/mspdebug-0.22/ui/sym.c:40: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[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/ui/sym.c:65: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).
	in = fopen(path, "rb");
data/mspdebug-0.22/ui/sym.c:111:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	savemap_out = fopen(fname, "w");
data/mspdebug-0.22/ui/sym.c:136: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 demangled[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/ui/sym.c:149: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 demangled[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/ui/sym.c:184: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    old_name[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/ui/sym.c:201: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 new_name[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/ui/sym.c:208:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_name, r->old_name, len);
data/mspdebug-0.22/util/btree.c:178:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(PAGE_KEY(np, 0), PAGE_KEY(op, halfsize),
data/mspdebug-0.22/util/btree.c:182:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(PAGE_PTR(np, 0), PAGE_PTR(op, halfsize),
data/mspdebug-0.22/util/btree.c:185:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(PAGE_DATA(np, 0), PAGE_DATA(op, halfsize),
data/mspdebug-0.22/util/btree.c:215:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(PAGE_KEY(p, s), key, def->key_size);
data/mspdebug-0.22/util/btree.c:216:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(PAGE_DATA(p, s), data, def->data_size);
data/mspdebug-0.22/util/btree.c:248:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(PAGE_KEY(p, s), key, def->key_size);
data/mspdebug-0.22/util/btree.c:313:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(PAGE_KEY(lower, lower->num_children),
data/mspdebug-0.22/util/btree.c:318:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(PAGE_PTR(lower, lower->num_children),
data/mspdebug-0.22/util/btree.c:322:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(PAGE_DATA(lower, lower->num_children),
data/mspdebug-0.22/util/btree.c:514:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(PAGE_DATA(bt->path[0], bt->slot[0]), data,
data/mspdebug-0.22/util/btree.c:524:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(PAGE_DATA(path_old[0], slot_old[0]), data,
data/mspdebug-0.22/util/btree.c:605:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(PAGE_KEY(new_root, 0), def->zero, def->key_size);
data/mspdebug-0.22/util/btree.c:607:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(PAGE_KEY(new_root, 1), PAGE_KEY(path_new[h - 1], 0),
data/mspdebug-0.22/util/btree.c:670:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(PAGE_KEY(p, s), PAGE_KEY(c, 0),
data/mspdebug-0.22/util/btree.c:684:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(PAGE_KEY(p, s + 1),
data/mspdebug-0.22/util/btree.c:730:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data, PAGE_DATA(p, s), def->data_size);
data/mspdebug-0.22/util/btree.c:772:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(key_ret,
data/mspdebug-0.22/util/btree.c:776:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data_ret,
data/mspdebug-0.22/util/dis.c:1019:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	i = atoi(name);
data/mspdebug-0.22/util/expr.c:58: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).
		value = atoi(text + 2);
data/mspdebug-0.22/util/expr.c:237: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 token_buf[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/util/gdb_proto.h:29: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            xbuf[1024];
data/mspdebug-0.22/util/gdb_proto.h:33: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            outbuf[GDB_BUF_SIZE];
data/mspdebug-0.22/util/opdb.c:133:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(value, &key->defval, sizeof(*value));
data/mspdebug-0.22/util/opdb.c:162:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key, &keys[i], sizeof(*key));
data/mspdebug-0.22/util/opdb.c:164:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(value, &values[i], sizeof(*value));
data/mspdebug-0.22/util/opdb.c:179:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(v, value, sizeof(values[i]));
data/mspdebug-0.22/util/opdb.h:31: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            string[128];
data/mspdebug-0.22/util/output.c:40: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[LINEBUF_SIZE];
data/mspdebug-0.22/util/output.c:145: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 cap_buf[LINEBUF_SIZE];
data/mspdebug-0.22/util/output.c:164:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(cap_buf + cap_len, text, r);
data/mspdebug-0.22/util/output.c:234: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];
data/mspdebug-0.22/util/output.c:246: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];
data/mspdebug-0.22/util/output.c:261: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];
data/mspdebug-0.22/util/output.c:273: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];
data/mspdebug-0.22/util/output_util.c:32: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[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/util/output_util.c:175: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 obname[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/util/output_util.c:180:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/util/output_util.c:291: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[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/util/output_util.c:295: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 demangled[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/util/powerbuf.c:265:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pb->current_ua + pb->current_head, current_ua,
data/mspdebug-0.22/util/powerbuf.c:267:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pb->mab + pb->current_head, mab,
data/mspdebug-0.22/util/prog.c:114:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(prog->buf + prog->len, data, count);
data/mspdebug-0.22/util/prog.h:27: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		section[64];
data/mspdebug-0.22/util/sport.c:116: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).
	int fd = open(device, O_RDWR | O_NOCTTY);
data/mspdebug-0.22/util/stab.c:36: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[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/util/stab.c:56:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key->name, text, len);
data/mspdebug-0.22/util/stab.c:62: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[MAX_SYMBOL_LENGTH];
data/mspdebug-0.22/util/stab.c:92:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key->name, text, len);
data/mspdebug-0.22/util/usbutil.c:74: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).
		int busnum = atoi(bus->dirname);
data/mspdebug-0.22/util/usbutil.c:79: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).
			int devnum = atoi(dev->filename);
data/mspdebug-0.22/util/usbutil.c:80: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 serial[128];
data/mspdebug-0.22/util/usbutil.c:107: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[128];
data/mspdebug-0.22/util/usbutil.c:130: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[64];
data/mspdebug-0.22/util/usbutil.c:149: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).
	target_bus = atoi(bus_text);
data/mspdebug-0.22/util/usbutil.c:150: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).
	target_dev = atoi(dev_text);
data/mspdebug-0.22/util/usbutil.c:154: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).
		int busnum = atoi(bus->dirname);
data/mspdebug-0.22/util/usbutil.c:160: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).
			int devnum = atoi(dev->filename);
data/mspdebug-0.22/util/util.c:204: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 msg_buf[128];
data/mspdebug-0.22/util/vector.c:94:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)v->ptr + v->size * v->elemsize,
data/mspdebug-0.22/drivers/gdbc.c:394: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).
		hn_len = strlen(spec);
data/mspdebug-0.22/drivers/tilib.c:714:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dev->uifPath, name, sizeof(dev->uifPath));
data/mspdebug-0.22/drivers/tilib.c:760:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dev->uifPath, args->path, sizeof(dev->uifPath));
data/mspdebug-0.22/formats/elf32.c:352:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (fgetc(in) != elf32_id[i])
data/mspdebug-0.22/formats/ihex.c:28:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return fgetc(in) == ':';
data/mspdebug-0.22/formats/ihex.c:111: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(buf);
data/mspdebug-0.22/simio/simio.c:132:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dev->name, name_text, sizeof(dev->name));
data/mspdebug-0.22/simio/simio.c:347:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
IO_REQUEST_FUNC(simio_read, read, uint16_t *)
data/mspdebug-0.22/simio/simio_device.h:89:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (*read)(struct simio_device *dev,
data/mspdebug-0.22/ui/aliasdb.c:160:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(a->dst, dst, sizeof(a->dst));
data/mspdebug-0.22/ui/aliasdb.c:166:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(na.src, src, sizeof(na.src));
data/mspdebug-0.22/ui/aliasdb.c:168:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(na.dst, dst, sizeof(na.dst));
data/mspdebug-0.22/ui/cmddb.c:353:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(name);
data/mspdebug-0.22/ui/gdb.c:69:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(text);
data/mspdebug-0.22/ui/gdb.c:76:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(text);
data/mspdebug-0.22/ui/gdb.c:125: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(buf) < DEVICE_NUM_REGS * 4)
data/mspdebug-0.22/ui/input_async.c:74:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(linebox.text, text, sizeof(linebox.text));
data/mspdebug-0.22/ui/input_async.c:90: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(buf);
data/mspdebug-0.22/ui/input_async.c:160:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, linebox.text, max_len);
data/mspdebug-0.22/ui/input_console.c:50:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int len = strlen(buf);
data/mspdebug-0.22/ui/input_console.c:91:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(out, buf, max_len);
data/mspdebug-0.22/ui/power.c:230:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(rec.name, name, sizeof(rec.name));
data/mspdebug-0.22/ui/reader.c:65:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(arg);
data/mspdebug-0.22/ui/stdcmd.c:135:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(value->string, word, sizeof(value->string));
data/mspdebug-0.22/ui/sym.c:246:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(r.old_name, name, sizeof(r.old_name));
data/mspdebug-0.22/util/ctrlc.c:136:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(1);
data/mspdebug-0.22/util/output_util.c:338: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(text);
data/mspdebug-0.22/util/output_util.c:361: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).
			for (k = strlen(text); k < max_len; k++)
data/mspdebug-0.22/util/prog.c:97:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(prog->section, section, sizeof(prog->section));
data/mspdebug-0.22/util/sport.c:177:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			r = read(s, data, len);
data/mspdebug-0.22/util/stab.c:51:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(text);
data/mspdebug-0.22/util/stab.c:86:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(text);
data/mspdebug-0.22/util/stab.c:165:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ret_name, akey.name, max_len);
data/mspdebug-0.22/util/usbutil.c:137:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, loc, sizeof(buf));
data/mspdebug-0.22/util/util.c:211:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(msg_buf);
data/mspdebug-0.22/util/util.c:244:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(home) + strlen(path);
data/mspdebug-0.22/util/util.c:244:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(home) + strlen(path);

ANALYSIS SUMMARY:

Hits = 231
Lines analyzed = 42059 in approximately 1.26 seconds (33249 lines/second)
Physical Source Lines of Code (SLOC) = 32125
Hits@level = [0]  45 [1]  37 [2] 171 [3]  11 [4]  12 [5]   0
Hits@level+ = [0+] 276 [1+] 231 [2+] 194 [3+]  23 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 8.59144 [1+] 7.19066 [2+] 6.03891 [3+] 0.715953 [4+] 0.373541 [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.